https://bugs.kde.org/show_bug.cgi?id=464309
Bug ID: 464309 Summary: Occasional crash when saving Classification: Applications Product: kate Version: 22.12.1 Platform: Neon OS: Linux Status: REPORTED Keywords: drkonqi Severity: crash Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: m_loui...@yahoo.com Target Milestone: --- Application: kate (22.12.1) Qt Version: 5.15.8 Frameworks Version: 5.101.0 Operating System: Linux 5.15.0-58-generic x86_64 Windowing System: X11 Distribution: KDE neon 5.26 DrKonqi: 5.26.5 [KCrashBackend] -- Information about the crash: Kate crashed when saving a document. This happens from time to time, albeit rarely. In case it matters, the following plugins are enabled: * Tree view * Search & replace * LSP client * Document switcher * Filesystem explorer * Text filter * Git blame * Project plugin * External tools * Terminal view The crash can be reproduced sometimes. -- Backtrace: Application: Kate (kate), signal: Aborted [KCrash Handler] #4 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140717676504064) at ./nptl/pthread_kill.c:44 #5 __pthread_kill_internal (signo=6, threadid=140717676504064) at ./nptl/pthread_kill.c:78 #6 __GI___pthread_kill (threadid=140717676504064, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #7 0x00007ffb6817f476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #8 0x00007ffb681657f3 in __GI_abort () at ./stdlib/abort.c:79 #9 0x00007ffb681c66f6 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffb68318b8c "%s\n") at ../sysdeps/posix/libc_fatal.c:155 #10 0x00007ffb681ddd7c in malloc_printerr (str=str@entry=0x7ffb68316764 "free(): invalid pointer") at ./malloc/malloc.c:5664 #11 0x00007ffb681dfac4 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at ./malloc/malloc.c:4439 #12 0x00007ffb681e24d3 in __GI___libc_free (mem=<optimized out>) at ./malloc/malloc.c:3391 #13 0x00007ffb68698757 in QHashData::free_helper (this=0x55846d6cf720, node_delete=0x7ffb68e40a10 <QHash<unsigned int, int>::deleteNode2(QHashData::Node*)>) at tools/qhash.cpp:573 #14 0x00007ffb68ef82a0 in QHash<unsigned int, int>::freeData (x=<optimized out>, this=0x55846ea64ab0) at ../../include/QtCore/../../src/corelib/tools/qhash.h:617 #15 QHash<unsigned int, int>::~QHash (this=0x55846ea64ab0, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:250 #16 QMultiHash<unsigned int, int>::~QMultiHash (this=0x55846ea64ab0, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:1020 #17 QTextFormatCollection::~QTextFormatCollection (this=0x55846ea64aa0, __in_chrg=<optimized out>) at text/qtextformat.cpp:3828 #18 0x00007ffb68edcc1b in QScopedPointerDeleter<QTextFormatCollection>::cleanup (pointer=0x55846ea64aa0) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:52 #19 QScopedPointer<QTextFormatCollection, QScopedPointerDeleter<QTextFormatCollection> >::~QScopedPointer (this=0x55846d473fa0, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:107 #20 QTextEngine::SpecialData::~SpecialData (this=0x55846d473f80, __in_chrg=<optimized out>) at text/qtextengine_p.h:607 #21 QTextEngine::~QTextEngine (this=0x5584708db570, __in_chrg=<optimized out>) at text/qtextengine.cpp:1992 #22 0x00007ffb68eebdb0 in QTextLayout::~QTextLayout (this=<optimized out>, __in_chrg=<optimized out>) at text/qtextlayout.cpp:389 #23 0x00007ffb67e3963c in std::default_delete<QTextLayout>::operator() (this=<optimized out>, __ptr=0x55846e96bcb0) at /usr/include/c++/11/bits/unique_ptr.h:79 #24 std::default_delete<QTextLayout>::operator() (__ptr=0x55846e96bcb0, this=<optimized out>) at /usr/include/c++/11/bits/unique_ptr.h:79 #25 std::unique_ptr<QTextLayout, std::default_delete<QTextLayout> >::~unique_ptr (this=0x5584705a0140, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/unique_ptr.h:361 #26 KateLineLayout::~KateLineLayout (this=0x5584705a0110, __in_chrg=<optimized out>) at ./src/render/katelinelayout.h:26 #27 QExplicitlySharedDataPointer<KateLineLayout>::~QExplicitlySharedDataPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qshareddata.h:184 #28 QExplicitlySharedDataPointer<KateLineLayout>::~QExplicitlySharedDataPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qshareddata.h:184 #29 0x00007ffb67f0551d in QPair<int, QExplicitlySharedDataPointer<KateLineLayout> >::~QPair (this=0x55846e44db10, __in_chrg=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qpair.h:49 #30 std::_Destroy<QPair<int, QExplicitlySharedDataPointer<KateLineLayout> > > (__pointer=0x55846e44db10) at /usr/include/c++/11/bits/stl_construct.h:151 #31 std::_Destroy_aux<false>::__destroy<QPair<int, QExplicitlySharedDataPointer<KateLineLayout> >*> (__last=<optimized out>, __first=0x55846e44db10) at /usr/include/c++/11/bits/stl_construct.h:163 #32 std::_Destroy<QPair<int, QExplicitlySharedDataPointer<KateLineLayout> >*> (__last=<optimized out>, __first=<optimized out>) at /usr/include/c++/11/bits/stl_construct.h:196 #33 std::_Destroy<QPair<int, QExplicitlySharedDataPointer<KateLineLayout> >*, QPair<int, QExplicitlySharedDataPointer<KateLineLayout> > > (__last=<optimized out>, __first=<optimized out>) at /usr/include/c++/11/bits/alloc_traits.h:848 #34 std::vector<QPair<int, QExplicitlySharedDataPointer<KateLineLayout> >, std::allocator<QPair<int, QExplicitlySharedDataPointer<KateLineLayout> > > >::_M_erase_at_end (__pos=0x55846e44da50, this=0x55846ea82648) at /usr/include/c++/11/bits/stl_vector.h:1796 #35 std::vector<QPair<int, QExplicitlySharedDataPointer<KateLineLayout> >, std::allocator<QPair<int, QExplicitlySharedDataPointer<KateLineLayout> > > >::clear (this=0x55846ea82648) at /usr/include/c++/11/bits/stl_vector.h:1499 #36 KateLineLayoutMap::clear (this=0x55846ea82648) at ./src/render/katelayoutcache.cpp:33 #37 KateLayoutCache::clear (this=0x55846ea82630) at ./src/render/katelayoutcache.cpp:483 #38 0x00007ffb67f4fc42 in KTextEditor::ViewPrivate::updateDocumentConfig (this=0x55846ea926b0) at ./src/view/kateview.cpp:2340 #39 0x00007ffb67e92e21 in KTextEditor::DocumentPrivate::updateConfig (this=0x55846526f910) at ./src/document/katedocument.cpp:5100 #40 0x00007ffb67eaebdc in KTextEditor::DocumentPrivate::readVariables (this=this@entry=0x55846526f910, onlyViewAndRenderer=onlyViewAndRenderer@entry=false) at /usr/include/c++/11/bits/unique_ptr.h:173 #41 0x00007ffb67eb1f27 in KTextEditor::DocumentPrivate::saveFile (this=0x55846526f910) at ./src/document/katedocument.cpp:2581 #42 0x00007ffb67ce1ef2 in KParts::ReadWritePart::save() () from /lib/x86_64-linux-gnu/libKF5Parts.so.5 #43 0x00007ffb67e28abb in KTextEditor::DocumentPrivate::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7fff83687d90) at ./obj-x86_64-linux-gnu/src/KF5TextEditor_autogen/DV7UALDUNI/moc_katedocument.cpp:528 #44 0x00007ffb68883108 in doActivate<false> (sender=0x55846e883b30, signal_index=4, argv=0x7fff83687d90) at kernel/qobject.cpp:3935 #45 0x00007ffb694eec56 in QAction::triggered(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5 #46 0x00007ffb694f194c in QAction::activate(QAction::ActionEvent) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5 #47 0x00007ffb694f2537 in QAction::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5 #48 0x00007ffb694f5793 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5 #49 0x00007ffb6884b07a in QCoreApplication::notifyInternal2 (receiver=0x55846e883b30, event=0x7fff83687f60) at kernel/qcoreapplication.cpp:1064 #50 0x00007ffb68e18ba4 in QShortcutMap::dispatchEvent (this=<optimized out>, e=<optimized out>) at kernel/qshortcutmap.cpp:675 #51 0x00007ffb68e19543 in QShortcutMap::tryShortcut (this=this@entry=0x558463fb59b8, e=e@entry=0x7fff83688020) at kernel/qshortcutmap.cpp:343 #52 0x00007ffb68dbff62 in QWindowSystemInterface::handleShortcutEvent (window=<optimized out>, timestamp=10267130, keyCode=83, modifiers=..., nativeScanCode=39, nativeVirtualKey=115, nativeModifiers=20, text=..., autorepeat=false, count=1) at kernel/qwindowsysteminterface.cpp:477 #53 0x00007ffb68de4b0f in QGuiApplicationPrivate::processKeyEvent (e=0x5584700936b0) at kernel/qguiapplication.cpp:2398 #54 0x00007ffb68dbca5c in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169 #55 0x00007ffb62b5cc7e in xcbSourceDispatch (source=<optimized out>) at ./src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105 #56 0x00007ffb66541d3b in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #57 0x00007ffb665966c8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #58 0x00007ffb6653f3e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #59 0x00007ffb688a4ad8 in QEventDispatcherGlib::processEvents (this=0x558464094380, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #60 0x00007ffb6884999b in QEventLoop::exec (this=this@entry=0x7fff83688360, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69 #61 0x00007ffb68851f34 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121 #62 0x0000558462158444 in ?? () #63 0x00007ffb68166d90 in __libc_start_call_main (main=main@entry=0x558462156ef0, argc=argc@entry=3, argv=argv@entry=0x7fff836888b8) at ../sysdeps/nptl/libc_start_call_main.h:58 #64 0x00007ffb68166e40 in __libc_start_main_impl (main=0x558462156ef0, argc=3, argv=0x7fff836888b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff836888a8) at ../csu/libc-start.c:392 #65 0x000055846215a7d5 in ?? () [Inferior 1 (process 2402) detached] Reported using DrKonqi -- You are receiving this mail because: You are watching all bug changes.