Wireshark-bugs: [Wireshark-bugs] [Bug 6549] New: Crash in gtk/menus.c update_menu_recent_capture
Date: Tue, 8 Nov 2011 07:02:57 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6549

           Summary: Crash in gtk/menus.c update_menu_recent_capture_file
                    if no recent files
           Product: Wireshark
           Version: 1.6.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Low
         Component: Wireshark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: bugs-wireshark@xxxxxxxxxxxxxxxxxxxxxxxxx


Build Information:
Version 1.6.3 (SVN Rev 39702 from /trunk-1.6)

Copyright 1998-2011 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 (32-bit) with GTK+ 2.22.1, with GLib 2.26.1, with libpcap 1.1.1, with
libz 1.2.5, with POSIX capabilities (Linux), with libpcre (version unknown),
with SMI 0.4.8, with c-ares 1.7.5, with Lua 5.1, without Python, with GnuTLS
2.10.5, with Gcrypt 1.4.6, without Kerberos, without GeoIP, without PortAudio,
without AirPcap.

--
In branch 1.6 (but not trunk as far as I can tell from looking at the code),
wireshark will crash at startup for users without a ~/.wireshark dir, or with
no recently used files. We didn't try defining MAIN_MENU_USE_UIMANAGER to see
if it would work.

gtk_menu_get_attach_widget(GTK_MENU(menu_item)) is NULL, so it crashes in
gtk_widget_set_sensitive.

#0  0x00933597 in gtk_widget_get_sensitive ()
   from /opt/TWWfsw/libgtk+222/lib/libgtk-x11-2.0.so.0
#1  0x080979d2 in update_menu_recent_capture_file ()
#2  0x0809bb4a in main_menu_new ()
#3  0x08093644 in main ()

The attached patch works for us.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.