ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 4376] new_packet_list: crash if File ! Open_Recent done tw

Date: Wed, 13 Jan 2010 14:45:50 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4376

--- Comment #2 from Bill Meier <wmeier@xxxxxxxxxxx> 2010-01-13 14:45:46 PST ---
(In reply to comment #1)
> Can you share a capture?
> 
> I had the same problem but when closing the capture first, something to do with
> the idle loop and capture < 10000 packets (with bigger capture the dialog box
> drains the queue), IIRC it was opening the new file before finishing closing
> the old one. But I can't reproducing it with a recent version.
> 


I think this is something different. In my Windows 7 environment, I get a crash
if I try File ! Open_Recent twice seemingly no matter what small file I use.

I've been using several different capture files each with just 4 or 5 frames.

(Note: I do not get a crash for the "without new_packet_list" version of
Wireshark).

I used the Windows debugger to get a bit more information.

Wireshark crashes on the call in gtk_container_add(GTK_CONTAINER(byte_scrollw),
byte_view) in 'add_byte_tab' on the *second*  File ! Open_Recent

After the crash the debugger output window has 2 messages to the effect:
Invalid parameter passed to C runtime function.

I don't see any obvious reason why the call to gtk_container_add fails.


Call stack (just before call to gtk_container_addd():

wireshark.exe!add_byte_tab(_GtkWidget * byte_nb=0x0625ee60, const char *
name=0x005d4582, tvbuff * tvb=0x00000000, _proto_node * tree=0x00000000,
_GtkWidget * tree_view=0x062ab230)  Line 693    C

wireshark.exe!clear_tree_and_hex_views()  Line 1854 + 0x1b bytes    C
     wireshark.exe!main_cf_cb_packet_unselected(_capture_file * cf=0x005dce60) 
Line 1617    C

wireshark.exe!main_cf_callback(int event=0x00000005, void * data=0x005dce60,
void * user_data=0x00000000)  Line 1656 + 0x9 bytes    C

wireshark.exe!cf_callback_invoke(int event=0x00000005, void * data=0x005dce60) 
Line 153 + 0x16 bytes    C

wireshark.exe!cf_unselect_packet(_capture_file * cf=0x005dce60)  Line 4038 +
0xb bytes    C

wireshark.exe!cf_reset_state(_capture_file * cf=0x005dce60)  Line 410 + 0x9
bytes    C

wireshark.exe!cf_open(_capture_file * cf=0x005dce60, const char *
fname=0x06229ff0, int is_tempfile=0x00000000, int * err=0x0012f2f4)  Line 283 +
0x9 bytes    C

wireshark.exe!menu_open_recent_file_cmd(_GtkWidget * w=0x062a4a30)  Line 1906 +
0x14 bytes    C

wireshark.exe!menu_open_recent_file_cmd_cb(_GtkWidget * widget=0x062a4a30, void
* data=0x062a4a30)  Line 1949 + 0x9 bytes    C

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