Wireshark-bugs: [Wireshark-bugs] [Bug 2015] New: Crash if a Cancelled action in preferences is a
Date: Fri, 23 Nov 2007 08:56:31 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2015

           Summary: Crash if a Cancelled action in preferences is applied
           Product: Wireshark
           Version: 0.99.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Medium
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: florent.drouin@xxxxxxxxxx


Build Information:
 ./wireshark -v
wireshark 0.99.7pre1

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.9.8, with libz
1.2.1.2, without libpcre, without SMI, without ADNS, without Lua, with GnuTLS
1.0.20, with Gcrypt 1.2.0, without Kerberos, without PortAudio, without
AirPcap.
NOTE: this build doesn't support the "matches" operator for Wireshark filter
syntax.

Running on Linux 2.6.9-22.ELsmp, with libpcap version 0.9.8.

Built using gcc 3.4.4 20050721 (Red Hat 3.4.4-2).
-sh-3.00$ uname -a
Linux MCP2 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64
x86_64 GNU/Linux
-sh-3.00$ 
--
On a 64 bits system (I do have the problem on a linux 32bits system), when I
open the preferences (no file loaded)
I go to DLT_USER (or K12xx)
EDIT -> New -> CANCEL 
And in the user DLTs table, make APPLY (instead of CANCEL)
You have a crash, after few seconds ..

gdb ./testshark 
GNU gdb Red Hat Linux (6.3.0.0-1.63rh)
Copyright 2004 Free Software Foundation, Inc.
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 "x86_64-redhat-linux-gnu"...Using host libthread_db
library "/lib64/tls/libthread_db.so.1".

(gdb) run
Starting program: /hp/src/wireshark-0.99.7pre1/testshark 
[Thread debugging using libthread_db enabled]
[New Thread 182936258176 (LWP 7263)]
09:36:18          Warn radius: Could not find the radius directory
Detaching after fork from child process 7282.
There are no interfaces on which a capture can be doneNo capture interfaces
available (maybe lack of privileges?).Detaching after fork from child process
7312.
There are no interfaces on which a capture can be doneNo capture interfaces
available (maybe lack of privileges?).Detaching after fork from child process
7358.
There are no interfaces on which a capture can be doneNo capture interfaces
available (maybe lack of privileges?).
(testshark:7263): GLib-GObject-WARNING **: invalid uninstantiatable type
`<invalid>' in cast to `GObject'

(testshark:7263): GLib-GObject-WARNING **: instance of invalid
non-instantiatable type `<invalid>'

(testshark:7263): GLib-GObject-CRITICAL **: file gsignal.c: line 1925
(g_signal_handlers_disconnect_matched): assertion `G_TYPE_CHECK_INSTANCE
(instance)' failed

(testshark:7263): GLib-GObject-WARNING **: invalid uninstantiatable type
`<invalid>' in cast to `GObject'

(testshark:7263): GLib-GObject-WARNING **: instance of invalid
non-instantiatable type `<invalid>'

(testshark:7263): GLib-GObject-CRITICAL **: file gsignal.c: line 1925
(g_signal_handlers_disconnect_matched): assertion `G_TYPE_CHECK_INSTANCE
(instance)' failed

(testshark:7263): Gtk-CRITICAL **: file gtkwidget.c: line 1911
(gtk_widget_destroy): assertion `GTK_IS_WIDGET (widget)' failed

(testshark:7263): GLib-GObject-CRITICAL **: file gobject.c: line 1597
(g_object_get_qdata): assertion `G_IS_OBJECT (object)' failed

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182936258176 (LWP 7263)]
0x000000381dd03303 in gtk_widget_get_toplevel () from
/usr/lib64/libgtk-x11-2.0.so.0
(gdb) where
#0  0x000000381dd03303 in gtk_widget_get_toplevel () from
/usr/lib64/libgtk-x11-2.0.so.0
#1  0x000000381dc17d3b in gtk_false () from /usr/lib64/libgtk-x11-2.0.so.0
#2  0x000000381dc18f1e in gtk_main_do_event () from
/usr/lib64/libgtk-x11-2.0.so.0
#3  0x000000381d9334a1 in gdk_window_clear_area_e () from
/usr/lib64/libgdk-x11-2.0.so.0
#4  0x000000381d933538 in gdk_window_process_all_updates () from
/usr/lib64/libgdk-x11-2.0.so.0
#5  0x000000381d9335b8 in gdk_window_process_all_updates () from
/usr/lib64/libgdk-x11-2.0.so.0
#6  0x000000348c4266bd in g_main_context_dispatch () from
/usr/lib64/libglib-2.0.so.0
#7  0x000000348c428397 in g_main_context_acquire () from
/usr/lib64/libglib-2.0.so.0
#8  0x000000348c428735 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#9  0x000000381dc18471 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#10 0x00000000004465f2 in main (argc=0, argv=0x7fbffffa60) at main.c:3069
(gdb)


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