Ethereal-dev: [Ethereal-dev] Re: [Ethereal-users] Segfault in 0.8.12 / 0.8.14

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "John J. LeMay Jr." <jlemay@xxxxxxxx>
Date: Thu, 4 Jan 2001 23:29:26 -0500
** Reply to message from Guy Harris <gharris@xxxxxxxxxxxx> on Thu, 4 Jan 2001
17:36:34 -0800

> Try applying the following patch to "gtk/main.c" and rebuilding.  Then
> try running the resulting version of Ethereal from an xterm or other
> terminal window.  Report what messages it prints.

Well, this isn't going to help much. After patching gtk/main.c (which would
have been easier if my Mandrake install had included patch) and recompiling, the
font problem seems to have disappeared. Still segfaulting if I try to bring up
the prefs dialog, though.

[jlemay@logan jlemay]$ ethereal 
Loading -*-fixed-medium-r-semicondensed-*-*-120-*-*-*-*-iso8859-1 as the Roman
font succeeded
Loading -*-fixed-bold-r-semicondensed-*-*-120-*-*-*-*-iso8859-1 as the Bold
font succeeded
Loading -*-fixed-medium-r-semicondensed-*-*-120-*-*-*-*-iso8859-1 as the Roman
font succeeded
Loading -*-fixed-bold-r-semicondensed-*-*-120-*-*-*-*-iso8859-1 as the Bold
font succeeded
Segmentation fault

After a bit more poking around, I noticed this only happens when I run as MY
user id. (regardless if /usr/local/bin/ethereal is chmod 4755 or not) I did not
have a problem bringing up the prefs dialog under another user account nor as
root, nor did I have a problem under any account with any other dialog. Another
gdb bt follows. Not sure if anything changed, but it didn't take much space!

(gdb) run
Starting program: /usr/local/src/ethereal-0.8.14/./ethereal 
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Loading -*-fixed-medium-r-semicondensed-*-*-120-*-*-*-*-iso8859-1 as the Roman
font succeeded
Loading -*-fixed-bold-r-semicondensed-*-*-120-*-*-*-*-iso8859-1 as the Bold
font succeeded

Program received signal SIGSEGV, Segmentation fault.
0x4042e04d in ?? ()
(gdb) bt
#0  0x4042e04d in ?? ()
#1  0x400dcaca in gtk_marshal_NONE__POINTER () from /usr/lib/libgtk-1.2.so.0
#2  0x401099cc in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
Cannot access memory at address 0xb

John LeMay Jr.
Senior Enterprise Consultant
NJMC, LLC.