Ethereal-dev: [ethereal-dev] ethereal segfault

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

From: "Stefan Gödel" <stefan.goedel@xxxxxxxxx>
Date: Fri, 10 Dec 1999 14:15:47 +0100 (CET)
Hi!

I experience a segfault with my ethereal. It is very easy to reproduce
the error and I will enclose all information to do so.

My Kernel is version 2.2.13.

I'm using the unstable branch of Debian (e.g. Debian 2.2 or "potato")
with the following packages:

     ethereal_0.7.7-1.deb
     libgtk1.2_1.2.6-1.deb

The full ldd-output is:

    $ ldd /usr/bin/ethereal
        libz.so.1 => /usr/lib/libz.so.1 (0x40018000)
        libpcap.so.0 => /usr/lib/libpcap.so.0 (0x40027000)
        libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x40039000)
        libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x4015d000)
        libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x40190000)
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x40193000)
        libdl.so.2 => /lib/libdl.so.2 (0x401b6000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x401ba000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x401c2000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x401ce000)
        libm.so.6 => /lib/libm.so.6 (0x4026d000)
        libc.so.6 => /lib/libc.so.6 (0x4028a000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I have captured the following dump:

Attachment: printer.dump
Description: Dumpfile

If I load this file into ethereal and click on packet nr. 4 (LPD
response) the segfault is triggered.

Here is the backtrace of the resulting core dump:

     #0  0x402c5ffb in vfprintf () from /lib/libc.so.6
     #1  0x402d3e73 in vsnprintf () from /lib/libc.so.6
     #2  0x8065be0 in proto_tree_add_text ()
     #3  0x80659f5 in proto_tree_add_text ()
     #4  0x8080097 in dissect_lpd ()
     #5  0x809c52b in dissect_tcp ()
     #6  0x807b025 in dissect_ip ()
     #7  0x8060dd0 in ethertype ()
     #8  0x8075317 in dissect_eth ()
     #9  0x8064686 in dissect_packet ()
     #10 0x80630ae in select_packet ()
     #11 0x80b7bad in packet_list_select_cb ()
     #12 0x400c85e9 in gtk_marshal_NONE__INT_INT_POINTER ()
     	from /usr/lib/libgtk-1.2.so.0
     #13 0x400f6ecc in gtk_signal_remove_emission_hook ()
     	from /usr/lib/libgtk-1.2.so.0
     #14 0x400f6335 in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0
     #15 0x400f4463 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
     #16 0x80ad8f8 in gtk_clist_undo_selection ()
     #17 0x80b14e6 in gtk_clist_undo_selection ()
     #18 0x400c829b in gtk_marshal_BOOL__POINTER ()
        from /usr/lib/libgtk-1.2.so.0
     #19 0x400f6373 in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0
     #20 0x400f4463 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
     #21 0x4012a67b in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
     #22 0x400c8205 in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0
     #23 0x400c742e in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0
     #24 0x40173de7 in gdk_wm_protocols_filter () from /usr/lib/libgdk-1.2.so.0
     #25 0x401a2d29 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
     #26 0x401a3333 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
     #27 0x401a34cc in g_main_run () from /usr/lib/libglib-1.2.so.0
     #28 0x400c6d37 in gtk_main () from /usr/lib/libgtk-1.2.so.0
     #29 0x80b927a in main ()
     #30 0x402a27a2 in __libc_start_main () from /lib/libc.so.6

I hope this will help you. By the way: thanks for providing us with
this great package!

Bye,

	Stefan.