Wireshark-bugs: [Wireshark-bugs] [Bug 6457] Wireshark crashes when using "Open Recent" 2 times i

Date: Fri, 14 Oct 2011 00:24:15 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6457

--- Comment #15 from Pierre Sangouard <sangouard@xxxxxxxxxxxxxxx> 2011-10-14 00:24:14 PDT ---
(In reply to comment #14)
> Created an attachment (id=7233)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=7233) [details]
> Add cf_callback_invoke to cf_open
> 
> My novice analysis is that frame_data is being destroyed underneath the GUI
> when switching files and that is causing the crash (as cells try to redraw data
> that doesn't exist).
> 
> Looking through the comments of various cf_ functions, it appears the GUI needs
> to "cleanup" before the data is cleared (so it doesn't try to reference that
> data) and cf_callback_invoke(cf_cb_file_closing, cf) is just the function to do
> it.
> 
> The attached patch stopped the crashes on my setup, but someone with more
> experience with the GUI should evaluate its validity.

For what it's worth, this patch fixes the issue for me.

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