Wireshark-bugs: [Wireshark-bugs] [Bug 1553] New: Crash when opening the preferences while captur
Date: Mon, 23 Apr 2007 11:30:44 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1553

           Summary: Crash when opening the preferences while capturing
           Product: Wireshark
           Version: SVN
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: stig@xxxxxxxxxxxxx


Build Information:
wireshark 0.99.6 (SVN Rev 21523)

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.9, with GLib 2.4.6, with libpcap 0.8.3, with libz 1.2.3,
with libpcre 4.2, with Net-SNMP 5.2.1, without ADNS, without Lua, with GnuTLS
1.0.21, with Gcrypt 1.2.0, with MIT Kerberos, without PortAudio, without
AirPcap.

Running on Darwin 8.8.0, with libpcap version 0.8.3.

Built using gcc 4.0.1 (Apple Computer, Inc. build 5341).

--
When opening the preferences while capturing I get two different crashes with
and without "Hide capture info dialog".  This is observed on OSX.



1. Start a capture with "Update list of packets in real time".
2. Open the "preferences"
3. Wait until some packets are captured
4. Press "OK" in preferences
5. Stop the capture


Err file file.c: line 293 (cf_reset_state): assertion failed: (cf- >state !=
FILE_READ_IN_PROGRESS)

Program received signal SIGABRT, Aborted.
0x9003d59c in kill ()
(gdb) where
#0  0x9003d59c in kill ()
#1  0x9010f8bf in raise ()
#2  0x9010e412 in abort ()
#3  0x0678e3eb in g_logv ()
#4  0x0678e453 in g_log ()
#5  0x0678e4ba in g_assert_warning ()
#6  0x00010f8e in cf_reset_state (cf=0x12cc40) at file.c:293
#7 0x00011247 in cf_open (cf=0x12cc40, fname=0x8731eb0 "/var/tmp/
etherSa1jzA7Dub", is_tempfile=1, err=0xbfffe778) at file.c:219 
#8 0x000095ff in capture_input_closed (capture_opts=0x13ce20) at capture.c:159 
#9 0x0000b30b in sync_pipe_input_cb (source=9, user_data=0x13ce20) at
capture_sync.c:649 
#10 0x0001af7e in pipe_input_cb (data=0x128980, source=9,
condition=GDK_INPUT_READ) at gui_utils.c:715
#11 0x006d8d1d in gdk_io_invoke ()
#12 0x06786eb4 in g_main_context_dispatch ()
#13 0x067876c7 in g_main_context_iterate ()
#14 0x06787a4e in g_main_loop_run ()
#15 0x06316850 in gtk_main ()
#16 0x0001968c in main (argc=0, argv=0xbffffbf4) at main.c:3036




1. Start a capture with "Update list of packets in real time" and "Hide capture
info dialog".
2. Open the "preferences"
3. Wait until some packets are captured
4. Press "OK" in preferences

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x000000d8

wtap_read (wth=0x0, err=0xbfffe72c, err_info=0xbfffe728,
data_offset=0xbfffe720) at wtap.c:514

514             wth->phdr.pkt_encap = wth->file_encap;
(gdb) where
#0 wtap_read (wth=0x0, err=0xbfffe72c, err_info=0xbfffe728,
data_offset=0xbfffe720) at wtap.c:514 
#1 0x00009e60 in capture_info_new_packets (to_read=1) at capture_info.c:238 
#2 0x00009130 in capture_input_new_packets (capture_opts=0x13ce20, to_read=1)
at capture.c:352 
#3 0x0000b40b in sync_pipe_input_cb (source=8, user_data=0x13ce20) at
capture_sync.c:674 
#4 0x0001af7e in pipe_input_cb (data=0x128980, source=8,
condition=GDK_INPUT_READ) at gui_utils.c:715
#5  0x006d8d1d in gdk_io_invoke ()
#6  0x06786eb4 in g_main_context_dispatch ()
#7  0x067876c7 in g_main_context_iterate ()
#8  0x06787a4e in g_main_loop_run ()
#9  0x06316850 in gtk_main ()
#10 0x0001968c in main (argc=0, argv=0xbffffbf4) at main.c:3036


-- 
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.