Wireshark-bugs: [Wireshark-bugs] [Bug 2549] New: Wireshark 1.0 crashes on enabling/disabling pro
Date: Fri, 16 May 2008 06:46:54 -0700 (PDT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2549

           Summary: Wireshark 1.0 crashes on enabling/disabling protocols
           Product: Wireshark
           Version: 1.0.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: High
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: vivek2.gupta@xxxxxxxxxxx
                CC: vivek2.gupta@xxxxxxxxxxx


Created an attachment (id=1796)
 --> (http://bugs.wireshark.org/bugzilla/attachment.cgi?id=1796)
sample_bug.pcap

Build Information:
wireshark 1.0

Copyright 1998-2007 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GTK+ 2.4.13, with GLib 2.4.7, with libpcap 0.8.3, with libz
1.2.1.2, without libpcre, without SMI, without ADNS, without Lua, without
GnuTLS, without Gcrypt, with MIT Kerberos, without PortAudio, without AirPcap.
NOTE: this build doesn't support the "matches" operator for Wireshark filter
syntax.

Running on Linux 2.6.9-5.ELsmp, with libpcap version 0.8.3.

Built using gcc 3.4.3 20041212 (Red Hat 3.4.3-9.EL4).

--
I did the following steps, and then wireshark crashed:

1) Open a capture file in wireshark (sample file is attached in the bug report:
sample_bug.pcap)
2) Disbled All protocols from the menu->Apply->ok
3) Enabled All protocols from the menu ->Apply->ok
4) Wireshark-1.0 crashes at this point, and shows the follwing error:

Err  file packet.c: line 336 (dissect_packet): should not be reached

Backtrace is shown below:

Program received signal SIGABRT, Aborted.
[Switching to Thread -1207990592 (LWP 27791)]
0x005be7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) bt
#0  0x005be7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00394955 in raise () from /lib/tls/libc.so.6
#2  0x00396319 in abort () from /lib/tls/libc.so.6
#3  0x0030bebe in g_logv () from /usr/lib/libglib-2.0.so.0
#4  0x0030bef0 in g_log () from /usr/lib/libglib-2.0.so.0
#5  0x009d7c4a in dissect_packet (edt=0x8e49ef8, pseudo_header=0x0,
pd=0x81a37e8 "", 
    fd=0x8cf2c50, cinfo=0xbff0fe58) at packet.c:336
#6  0x009ce46e in epan_dissect_run (edt=0x0, pseudo_header=0x0, data=0x0,
fd=0x0, cinfo=0x0)
    at epan.c:161
#7  0x0806fd8e in add_packet_to_packet_list (fdata=0x8cf2c50, cf=0x81a36e0,
dfcode=0x8e9d1a8, 
    pseudo_header=0x0, buf=0x0, refilter=1) at file.c:966
#8  0x0807333f in rescan_packets (cf=0x81a36e0, action=0x812e9e7
"Reprocessing", 
    action_item=0x8142a9d "all packets", refilter=1, redissect=1) at
file.c:1620
#9  0x080736bc in cf_redissect_packets (cf=0x0) at file.c:1431 #10 0x002c50ae
in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#11 0x002ad347 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#12 0x002c294e in g_signal_has_handler_pending () from
/usr/lib/libgobject-2.0.so.0
#13 0x002c49bc in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#14 0x002c4c5a in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#15 0x0558e2b4 in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x0558fd34 in gtk_button_get_alignment () from /usr/lib/libgtk-x11-2.0.so.0
#17 0x002c50ae in g_cclosure_marshal_VOID__VOID () from
/usr/lib/libgobject-2.0.so.0
#18 0x002ad6b2 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#19 0x002ad347 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #20
0x002c2616 in g_signal_has_handler_pending () from /usr/lib/libgobject-2.0.so.0
#21 0x002c49bc in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#22 0x002c4c5a in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#23 0x0558e1fc in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#24 0x0558f2a7 in gtk_button_set_relief () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x05645e67 in gtk_marshal_VOID__UINT_STRING () from
/usr/lib/libgtk-x11-2.0.so.0
#26 0x002ad6b2 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#27 0x002ad347 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#28 0x002c3576 in g_signal_has_handler_pending () from
/usr/lib/libgobject-2.0.so.0
#29 0x002c4613 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #30
0x002c4c5a in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#31 0x05739a75 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#32 0x0564412b in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#33 0x05644430 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#34 0x00170082 in gdk_event_get_graphics_expose () from
/usr/lib/libgdk-x11-2.0.so.0
#35 0x0030374b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#36 0x003051d2 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
#37 0x0030547f in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#38 0x0564378e in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#39 0x08089df2 in main (argc=0, argv=0xbff11388) at main.c:3194
(gdb) Quit


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.