Bug 442746 - Kate crashes in KateMDI::MainWindow::~MainWindow() when closing if remote files are opened
Summary: Kate crashes in KateMDI::MainWindow::~MainWindow() when closing if remote fil...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 21.08.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
: 442838 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-09-20 16:22 UTC by Vojtěch Zeisek
Modified: 2021-12-07 05:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.12


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vojtěch Zeisek 2021-09-20 16:22:23 UTC
Application: kate (21.08.1)

Qt Version: 5.15.2
Frameworks Version: 5.86.0
Operating System: Linux 5.14.2-1-default x86_64
Windowing System: X11
Drkonqi Version: 5.22.5
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
If I have in Kate some remote files (e.g. opened from SFTP server), or files opened from KMail (e-mail attachments) and I close Kate, it crashes. If I close Kate when only "classical" local files are opened, it terminates normally.

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Content of s_kcrashErrorMessage: [Current thread is 1 (Thread 0x7f69efbd4000 (LWP 2481))]
[KCrash Handler]
#6  0x000055d981608373 in qDeleteAll<__gnu_cxx::__normal_iterator<KateMDI::ToolView* const*, std::vector<KateMDI::ToolView*, std::allocator<KateMDI::ToolView*> > > > (end=..., begin=...) at /usr/include/qt5/QtCore/qalgorithms.h:320
#7  qDeleteAll<std::vector<KateMDI::ToolView*, std::allocator<KateMDI::ToolView*> > > (c=...) at /usr/include/qt5/QtCore/qalgorithms.h:328
#8  KateMDI::MainWindow::~MainWindow (__vtt_parm=<optimized out>, this=<optimized out>, this=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kate-21.08.1-1.1.x86_64/kate/katemdi.cpp:778
#9  KateMainWindow::~KateMainWindow (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kate-21.08.1-1.1.x86_64/kate/katemainwindow.cpp:203
#10 0x000055d981608809 in KateMainWindow::~KateMainWindow (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kate-21.08.1-1.1.x86_64/kate/katemainwindow.cpp:203
#11 0x00007f69f28c1d7f in QObject::event (this=0x55d984354f60, e=0x55d986253c70) at kernel/qobject.cpp:1301
#12 0x00007f69f40e1dd9 in KXmlGuiWindow::event(QEvent*) () from /lib64/libKF5XmlGui.so.5
#13 0x00007f69f347da7f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#14 0x00007f69f28959ea in QCoreApplication::notifyInternal2 (receiver=0x55d984354f60, event=0x55d986253c70) at kernel/qcoreapplication.cpp:1064
#15 0x00007f69f2898a37 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55d981d38fb0) at kernel/qcoreapplication.cpp:1821
#16 0x00007f69f28ed843 in postEventSourceDispatch (s=s@entry=0x55d981ec5460) at kernel/qeventdispatcher_glib.cpp:277
#17 0x00007f69f08a480f in g_main_dispatch (context=0x7f69e8005000) at ../glib/gmain.c:3337
#18 g_main_context_dispatch (context=0x7f69e8005000) at ../glib/gmain.c:4055
#19 0x00007f69f08a4b98 in g_main_context_iterate (context=context@entry=0x7f69e8005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4131
#20 0x00007f69f08a4c4f in g_main_context_iteration (context=0x7f69e8005000, may_block=1) at ../glib/gmain.c:4196
#21 0x00007f69f28ecec4 in QEventDispatcherGlib::processEvents (this=0x55d981ec7790, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#22 0x00007f69f28943eb in QEventLoop::exec (this=this@entry=0x7ffc96392460, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#23 0x00007f69f289c6d0 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#24 0x000055d9815f7ec0 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kate-21.08.1-1.1.x86_64/kate/main.cpp:688
[Inferior 1 (process 2481) detached]

Possible duplicates by query: bug 442647, bug 442632, bug 442526, bug 442502, bug 442147.

Reported using DrKonqi
Comment 1 Waqar Ahmed 2021-09-22 04:52:39 UTC
Do you have the replicode plugin enabled when it crashes?
Comment 2 Vojtěch Zeisek 2021-09-22 08:09:00 UTC
(In reply to Waqar Ahmed from comment #1)
> Do you have the replicode plugin enabled when it crashes?

No. I have modules external tools, project, search and replace, tree document view and document switch.
Comment 3 Jan Paul Batrina 2021-09-24 09:51:25 UTC
*** Bug 442838 has been marked as a duplicate of this bug. ***
Comment 4 Waqar Ahmed 2021-12-07 05:36:58 UTC
Most probably fixed in 21.12. Please reopen if you can still repro with 21.12 (once that comes out).