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 6457] Wireshark crashes when using "Open Recent" 2 times i

Date: Thu, 13 Oct 2011 20:01:18 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6457

Michael Mann <mmann78@xxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #7233|                            |review_for_checkin?
               Flag|                            |

--- Comment #14 from Michael Mann <mmann78@xxxxxxxxxxxx> 2011-10-13 20:01:17 PDT ---
Created an attachment (id=7233)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=7233)
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.

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