Ethereal-dev: Re: [ethereal-dev] Core dumps

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

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Sun, 14 Nov 1999 06:06:13 -0600
On Sun, Nov 14, 1999 at 12:02:00PM +0100, Laurent Deniel wrote:
> 
> Hi,
> 
> It seems that the current CVS version is less stable than the previous
> ones: I've got several segmentation violations and stack overflows while
> loading multiple captured files in the same session. I'll try to figure
> out what's going wrong ...
> 
> Laurent.

By loading/closing/loading/closing files I was able to get a core dump.
The stack trace is:

#0  0x805ecf4 in conversation_init () at conversation.c:182
#1  0x8062d17 in open_cap_file (fname=0x81fac78 "/home/gram/prj/sniff/trmac.pcap", cf=0x811fce0) at file.c:147
#2  0x80cafde in file_open_ok_cb (w=0x81faf20, fs=0x83af0e0) at file_dlg.c:133
#3  0x400ee481 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#4  0x4011cadc in gtk_signal_remove_emission_hook () from /usr/lib/libgtk-1.2.so.0
#5  0x4011bf45 in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0
#6  0x4011a073 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#7  0x4008b9a8 in gtk_button_clicked () from /usr/lib/libgtk-1.2.so.0
#8  0x4008cfbd in gtk_button_get_relief () from /usr/lib/libgtk-1.2.so.0
#9  0x400ee481 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#10 0x4011bddf in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0
#11 0x4011a073 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#12 0x4008b8e8 in gtk_button_released () from /usr/lib/libgtk-1.2.so.0
#13 0x4008c928 in gtk_button_get_relief () from /usr/lib/libgtk-1.2.so.0
#14 0x400ee10b in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
#15 0x4011bf83 in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0
#16 0x4011a073 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#17 0x4015021b in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
#18 0x400ee075 in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0
#19 0x400ed29e in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0
#20 0x40199de7 in gdk_wm_protocols_filter () from /usr/lib/libgdk-1.2.so.0
#21 0x401c8d29 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#22 0x401c9333 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#23 0x401c94cc in g_main_run () from /usr/lib/libglib-1.2.so.0
#24 0x400ecba7 in gtk_main () from /usr/lib/libgtk-1.2.so.0
#25 0x80c575a in main (argc=4, argv=0xbffffcb4) at main.c:1127
(gdb) 

There's nothing wrong with trmac.pcap, the file I loaded. I wish
I remembered which file it was I had closed before opening this one.

A few days ago I put in some fixes to how wiretap's wth structs are
cleared and freed (so as to not leak memory). Even though those changes
don't appear to have influenced this core dump, those changes are
suspect as well.

--gilbert