Ethereal-dev: [Ethereal-dev] 'Segmentation Fault' when trying to save a file in 0.10.5.

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

From: Marco van den Bovenkamp <marco@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Jul 2004 01:22:39 +0200
L.S.

I just compiled 0.10.5 on my Linux box, and it segfaults every time I try to save a file, be it a capture or something like the output of 'Follow TCP stream'.

Output of 'ethereal -v':

ethereal 0.10.5
Compiled with GTK+ 1.2.6, with GLib 1.2.6, with libpcap 0.7.2, with libz 1.1.3,
with libpcre 4.3, without UCD-SNMP or Net-SNMP, without ADNS.

Running with libpcap (version unknown) on Linux 2.2.13-NANO.

A backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x40bb7529 in __morecore () from /lib/libc.so.6
(gdb) backtrace
#0  0x40bb7529 in __morecore () from /lib/libc.so.6
#1  0x40b1d4ce in vfprintf () from /lib/libc.so.6
#2  0x40b189a6 in vfprintf () from /lib/libc.so.6
#3  0x40b209a3 in fprintf () from /lib/libc.so.6
#4  0x409b2464 in gdk_x_error (display=0x8143a38, error=0xbfffe67c)
    at gdk.c:1055
#5  0x40a3f559 in _XError () from /usr/X11R6/lib/libX11.so.6
#6  0x40a3ddde in _XReply () from /usr/X11R6/lib/libX11.so.6
#7  0x40a28d1f in XGetGeometry () from /usr/X11R6/lib/libX11.so.6
#8 0x409cf465 in gdk_window_get_root_origin (window=0x82dc280, x=0xbfffe7f4,
    y=0xbfffe7f8) at gdkwindow.c:1615
#9  0x8084662 in window_get_geometry (widget=0x82ced08, geom=0xbfffe7ec)
    at ui_util.c:328
#10 0x80849d9 in window_destroy (win=0x82ced08) at ui_util.c:516
#11 0x806c2d2 in file_save_as_destroy () at file_dlg.c:1428
#12 0x8062d93 in cf_close (cf=0x812b900) at file.c:230
#13 0x8062c26 in cf_open (fname=0x82dd638 "/home/mbovenka/test.cap",
    is_tempfile=0, cf=0x812b900) at file.c:167
#14 0x8065b91 in cf_save (fname=0x82dd638 "/home/mbovenka/test.cap",
    cf=0x812b900, range=0x8126d20, save_format=2) at file.c:2800
#15 0x806c1cc in file_save_as_ok_cb (w=0x82c2a68, fs=0x82ced08)
    at file_dlg.c:1371
#16 0x4091b50b in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#17 0x409466f4 in gtk_handlers_run () from /usr/lib/libgtk-1.2.so.0
#18 0x40945bee in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#19 0x40943f25 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#20 0x408bf964 in gtk_button_clicked () from /usr/lib/libgtk-1.2.so.0
#21 0x4091b50b in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#22 0x409466f4 in gtk_handlers_run () from /usr/lib/libgtk-1.2.so.0
#23 0x40945bee in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#24 0x40943f25 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#25 0x40976a34 in gtk_widget_activate () from /usr/lib/libgtk-1.2.so.0
#26 0x408f3f29 in gtk_entry_key_press () from /usr/lib/libgtk-1.2.so.0
#27 0x4091b1ed in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
#28 0x40945c27 in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#29 0x40943f25 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#30 0x40976908 in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
#31 0x4097d84c in gtk_window_key_press_event () from /usr/lib/libgtk-1.2.so.0
#32 0x4091b1ed in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
#33 0x40945c27 in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#34 0x40943f25 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#35 0x40976908 in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
#36 0x4091b0f6 in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0
#37 0x4091a4ca in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0
#38 0x409bf08b in gdk_event_dispatch (source_data=0x0,
    current_time=0xbffff808, user_data=0x0) at gdkevents.c:2129
#39 0x409ed37f in g_main_dispatch () from /usr/lib/libglib-1.2.so.0
#40 0x409ed92b in g_main_iterate () from /usr/lib/libglib-1.2.so.0
#41 0x409edaa9 in g_main_run () from /usr/lib/libglib-1.2.so.0
#42 0x40919e49 in gtk_main () from /usr/lib/libgtk-1.2.so.0
#43 0x8071c07 in main (argc=0, argv=0xbffffa98) at main.c:2534


If any more info is needed, let me know.

--

		Regards,

			Marco.