Ethereal-dev: [Ethereal-dev] RE: [Ethereal-users] Segmentation Fault on v0.8.13-1 for Linux

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

From: "Wiley, Rob" <WileyR@xxxxxxxxxxxxxx>
Date: Wed, 8 Nov 2000 13:50:52 -0500
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) run
Starting program: /usr/local/bin/ethereal
Kernel filter, protocol ALL, raw packet socket
Kernel filter, protocol ALL, raw packet socket
 
Program received signal SIGSEGV, Segmentation fault.
0x40183569 in g_mem_chunk_destroy () from /usr/lib/libglib-1.2.so.0
(gdb) bt
#0  0x40183569 in g_mem_chunk_destroy () from /usr/lib/libglib-1.2.so.0
#1  0x80c5fb4 in close_cap_file (cf=0x816a880, w=0x81c8ab8) at file.c:213
#2  0x80c5e2d in open_cap_file (fname=0x81e7128 "/tmp/etherXXXXQkFcmN",
is_tempfile=1, cf=0x816a880) at file.c:136
#3  0x80c6466 in start_tail_cap_file (fname=0x81e7128
"/tmp/etherXXXXQkFcmN", is_tempfile=1, cf=0x816a880) at file.c:388
#4  0x80c4bca in do_capture (capfile_name=0x0) at capture.c:246
#5  0x80e7d9b in capture_prep_ok_cb (ok_bt=0x81e4e18, parent_w=0x81e3a40) at
capture_dlg.c:387
#6  0x400a8efd in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#7  0x400d65fd in gtk_handlers_run () from /usr/lib/libgtk-1.2.so.0
#8  0x400d5a42 in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#9  0x400d3b95 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#10 0x400488c8 in gtk_button_clicked () from /usr/lib/libgtk-1.2.so.0
#11 0x40049eb8 in gtk_real_button_released () from /usr/lib/libgtk-1.2.so.0
#12 0x400a8efd in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#13 0x400d58fb in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#14 0x400d3b95 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#15 0x40048808 in gtk_button_released () from /usr/lib/libgtk-1.2.so.0
#16 0x40049872 in gtk_button_button_release () from /usr/lib/libgtk-1.2.so.0
#17 0x400a8ac9 in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
#18 0x400d5a7b in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#19 0x400d3b95 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#20 0x40108a3c in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
#21 0x400a8a22 in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0
#22 0x400a7c7a in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0
#23 0x401524db in gdk_event_dispatch () from /usr/lib/libgdk-1.2.so.0
#24 0x40182186 in g_main_dispatch () from /usr/lib/libglib-1.2.so.0
#25 0x40182751 in g_main_iterate () from /usr/lib/libglib-1.2.so.0
#26 0x401828f1 in g_main_run () from /usr/lib/libglib-1.2.so.0
#27 0x400a75b9 in gtk_main () from /usr/lib/libgtk-1.2.so.0
#28 0x80e0b56 in main (argc=1, argv=0xbffffb14) at main.c:1545
(gdb)

		-----Original Message-----
		From:	Gilbert Ramirez [mailto:gram@xxxxxxxxxx]
		Sent:	Wednesday, November 08, 2000 11:25 AM
		To:	Wiley, Rob; ethereal-users@xxxxxxxxxxxx
		Subject:	Re: [Ethereal-users] Segmentation Fault on
v0.8.13-1 for Linux

		On Wed, Nov 08, 2000 at 11:14:13AM -0500, Wiley, Rob wrote:
		> When I run v.0.8.13-1 from Linux,  it runs fine for the
first capture.   If
		> I choose to restart a new capture, without closing out
ethereal,  I get a
		> segmentation fault.    I can restart ethereal and it runs
fine again, but
		> the second attempt to capture dies. 
		> 
		> When I run it under GDB,   here's the output.
		> 
		> Program received signal SIGSEGV, Segmentation fault.
		> 0x40183569 in g_mem_chunk_destroy () from
/usr/lib/libglib-1.2.so.0

		I can't replicate it on my system.

		Can you type 'bt' in gdb to get a backtrace, and send us
that
		output, too? g_mem_chunk_destroy() is called from many
places in
		the Ethereal code, so we need more info. This should be sent
to
		ethereal-dev instead of ethereal-users.

		--gilbert