Wireshark-dev: [Wireshark-dev] Crash when opening the preferences while capturing
From: Stig Bjørlykke <[email protected]>
Date: Wed, 18 Apr 2007 19:35:36 +0200
Hi.

When opening the preferences while capturing I get two different crashes with and without "Hide capture info dialog". This is observed with latest svn (21469) on OSX. Is this known errors?


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



--
Stig Bjørlykke