Created attachment 150337 [details] Traceback SUMMARY When attempting to "close document" on a split tab, you crash with an "double free or corruption (out)" error. Backtrace attached. STEPS TO REPRODUCE 1. Open any document, can be empty. 2. In the top right corner hit the split button and choose "Split Vertical" 3. On the new opened split, right click the tab header and choose "Close Document" OBSERVED RESULT Kate crashes. SOFTWARE/OS VERSIONS KDE Plasma Version: 5.25.80 KDE Frameworks Version: 5.96.0 Qt Version: 5.15.5 Kate version: Latest Kate master (aa4d2a03ad3e17938565b5a06aec2f158c281b8e)
Created attachment 150338 [details] Better traceback with more debug symbols
I can reproduce, I think we need to use a single shot to call the closeTabRequest inside the menu, else we do delete stuff during event handling.
Git commit d273c1fb6b322c78896a6f3aeb04fda8181264c3 by Christoph Cullmann. Committed on 02/07/2022 at 19:28. Pushed by cullmann into branch 'master'. fix crash on "close document" in menu of tabs avoid to delete this during event handling M +9 -2 apps/lib/kateviewspace.cpp https://invent.kde.org/utilities/kate/commit/d273c1fb6b322c78896a6f3aeb04fda8181264c3
Thanks for the good report including nice back trace! Highly appreciated!