Bug 481535 - Kate crash after closing tab
Summary: Kate crash after closing tab
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 23.08.4
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-02-19 09:03 UTC by rafalkozlowski07
Modified: 2024-03-15 18:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 24.02.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rafalkozlowski07 2024-02-19 09:03:56 UTC
Application: kate (23.08.4)

Qt Version: 5.15.12
Frameworks Version: 5.115.0
Operating System: Linux 6.7.4-1-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.27.10 [KCrashBackend]

-- Information about the crash:
I just closed unchanged document. Kate was in 1080x1920 resolution if it does matter.

The crash does not seem to be reproducible.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fe62ef194d5 in DiagnosticsView::onDocumentUrlChanged (this=0x5609825c3e10) at /usr/src/debug/kate-23.08.4/apps/lib/diagnostics/diagnosticview.cpp:1419
#5  0x00007fe62d925be2 in QtPrivate::QSlotObjectBase::call (a=0x7ffea4070360, r=0x5609825c3e10, this=0x560985e14790) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#6  doActivate<false> (sender=0x7fe6180092c0, signal_index=14, argv=0x7ffea4070360) at kernel/qobject.cpp:3925
#7  0x00007fe62d91e84f in QMetaObject::activate (sender=<optimized out>, m=<optimized out>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffea4070360) at kernel/qobject.cpp:3985
#8  0x00007fe62cc21202 in KTextEditor::Document::documentUrlChanged (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/ktexteditor-5.115.0/build/src/KF5TextEditor_autogen/include/moc_document.cpp:527
#9  0x00007fe62d925be2 in QtPrivate::QSlotObjectBase::call (a=0x7ffea4070460, r=0x7fe6180092c0, this=0x56098560b120) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#10 doActivate<false> (sender=0x7fe6180092c0, signal_index=10, argv=0x7ffea4070460) at kernel/qobject.cpp:3925
#11 0x00007fe62d91e84f in QMetaObject::activate (sender=sender@entry=0x7fe6180092c0, m=m@entry=0x7fe62d5fc160 <KParts::ReadOnlyPart::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7ffea4070460) at kernel/qobject.cpp:3985
#12 0x00007fe62d5c6d15 in KParts::ReadOnlyPart::urlChanged (this=this@entry=0x7fe6180092c0, _t1=...) at /usr/src/debug/kparts-5.115.0/build/src/KF5Parts_autogen/include/moc_readonlypart.cpp:268
#13 0x00007fe62d5cb993 in KParts::ReadOnlyPart::setUrl (this=this@entry=0x7fe6180092c0, url=...) at /usr/src/debug/kparts-5.115.0/src/readonlypart.cpp:60
#14 0x00007fe62d5cbda3 in KParts::ReadOnlyPart::closeUrl (this=this@entry=0x7fe6180092c0) at /usr/src/debug/kparts-5.115.0/src/readonlypart.cpp:251
#15 0x00007fe62d5cc7fa in KParts::ReadWritePart::closeUrl (this=this@entry=0x7fe6180092c0) at /usr/src/debug/kparts-5.115.0/src/readwritepart.cpp:133
#16 0x00007fe62cb0956c in KTextEditor::DocumentPrivate::closeUrl (this=0x7fe6180092c0) at /usr/src/debug/ktexteditor-5.115.0/src/document/katedocument.cpp:2862
#17 0x00007fe62eec3f9f in KateDocManager::closeDocuments (this=0x7ffea4070db0, documents=..., closeUrl=true) at /usr/src/debug/kate-23.08.4/apps/lib/katedocmanager.cpp:201
#18 0x00007fe62eef212f in KateDocManager::closeDocument (closeUrl=true, doc=0x7fe6180092c0, this=0x7ffea4070db0) at /usr/include/c++/13/bits/stl_algobase.h:386
#19 KateDocManager::closeDocument (closeUrl=true, doc=0x7fe6180092c0, this=0x7ffea4070db0) at /usr/src/debug/kate-23.08.4/apps/lib/katedocmanager.cpp:225
#20 KateViewManager::slotDocumentClose (this=0x5609824f8330, document=0x7fe6180092c0) at /usr/src/debug/kate-23.08.4/apps/lib/kateviewmanager.cpp:365
#21 0x00007fe62eefd13c in KateViewSpace::closeDocument (this=0x560982574ac0, doc=0x7fe6180092c0) at /usr/src/debug/kate-23.08.4/apps/lib/kateviewspace.cpp:585
#22 0x00007fe62d9196f0 in QObject::event (this=0x560982574ac0, e=0x560985b44b10) at kernel/qobject.cpp:1347
#23 0x00007fe62e5a51ae in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x560982574ac0, e=0x560985b44b10) at kernel/qapplication.cpp:3640
#24 0x00007fe62d8ed938 in QCoreApplication::notifyInternal2 (receiver=0x560982574ac0, event=0x560985b44b10) at kernel/qcoreapplication.cpp:1064
#25 0x00007fe62d8edafe in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462
#26 0x00007fe62d8f0f31 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5609815c8060) at kernel/qcoreapplication.cpp:1821
#27 0x00007fe62d8f1478 in QCoreApplication::sendPostedEvents (receiver=<optimized out>, event_type=<optimized out>) at kernel/qcoreapplication.cpp:1680
#28 0x00007fe62d947063 in postEventSourceDispatch (s=0x56098179fc30) at kernel/qeventdispatcher_glib.cpp:277
#29 0x00007fe62b313f30 in ?? () from /lib64/libglib-2.0.so.0
#30 0x00007fe62b315b58 in ?? () from /lib64/libglib-2.0.so.0
#31 0x00007fe62b31620c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#32 0x00007fe62d946876 in QEventDispatcherGlib::processEvents (this=0x5609817affe0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#33 0x00007fe62d8ec3cb in QEventLoop::exec (this=this@entry=0x7ffea4070ab0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#34 0x00007fe62d8f4860 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#35 0x00007fe62dd7061c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#36 0x00007fe62e5a5125 in QApplication::exec () at kernel/qapplication.cpp:2832
#37 0x00005609802d7478 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kate-23.08.4/apps/kate/main.cpp:609
[Inferior 1 (process 7975) detached]

Reported using DrKonqi
Comment 1 Christoph Cullmann 2024-03-15 18:09:56 UTC
We improved that code path for 24.02.