Bug 435432 - Kate crashes on opening file
Summary: Kate crashes on opening file
Status: RESOLVED DUPLICATE of bug 433180
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 20.12.3
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-04-06 17:46 UTC by dasmau89
Modified: 2021-04-06 18:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dasmau89 2021-04-06 17:46:33 UTC
Application: kate (20.12.3)

Qt Version: 5.15.2
Frameworks Version: 5.80.0
Operating System: Linux 5.4.0-70-generic x86_64
Windowing System: X11
Drkonqi Version: 5.21.3
Distribution: KDE neon User Edition 5.21

-- Information about the crash:
- What I was doing when the application crashed:

I had a file open in kate that was deleted. On the prompt I chose to close the file in Kate. After that I wanted to open another file and the crash happenend

The reporter is unsure if this crash is reproducible.

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

[New LWP 1873]
[New LWP 1874]
[New LWP 1875]
[New LWP 1876]
[New LWP 1877]
[New LWP 1878]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fef0a00aaff in __GI___poll (fds=0x7ffdaf421068, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7fef05e9e8c0 (LWP 1872))]

Thread 7 (Thread 0x7feee08fd700 (LWP 1878)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x562e615d2188) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x562e615d2138, cond=0x562e615d2160) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x562e615d2160, mutex=0x562e615d2138) at pthread_cond_wait.c:638
#3  0x00007feef6d5eb5b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007feef6d5e75b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fef08d25609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fef0a017293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7feef10fe700 (LWP 1877)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x562e615d2188) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x562e615d2138, cond=0x562e615d2160) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x562e615d2160, mutex=0x562e615d2138) at pthread_cond_wait.c:638
#3  0x00007feef6d5eb5b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007feef6d5e75b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fef08d25609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fef0a017293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7feef18ff700 (LWP 1876)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x562e615d2188) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x562e615d2138, cond=0x562e615d2160) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x562e615d2160, mutex=0x562e615d2138) at pthread_cond_wait.c:638
#3  0x00007feef6d5eb5b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007feef6d5e75b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fef08d25609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fef0a017293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7feefca35700 (LWP 1875)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x562e615d2188) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x562e615d2138, cond=0x562e615d2160) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x562e615d2160, mutex=0x562e615d2138) at pthread_cond_wait.c:638
#3  0x00007feef6d5eb5b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007feef6d5e75b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fef08d25609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fef0a017293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7feeffa67700 (LWP 1874)):
#0  __GI___libc_read (nbytes=16, buf=0x7feeffa66aa0, fd=7) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=7, buf=0x7feeffa66aa0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fef08365b2f in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fef0831cebe in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fef0831d312 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fef0831d4a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fef0a5d5ffb in QEventDispatcherGlib::processEvents (this=0x7feef8000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007fef0a57a1eb in QEventLoop::exec (this=this@entry=0x7feeffa66cb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#8  0x00007fef0a394a52 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#9  0x00007fef0b62bf4b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#10 0x00007fef0a395bec in QThreadPrivate::start (arg=0x7fef0b6afd80) at thread/qthread_unix.cpp:329
#11 0x00007fef08d25609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007fef0a017293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fef05281700 (LWP 1873)):
#0  0x00007fef0a00aaff in __GI___poll (fds=0x7fef05280be8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fef08d59c1a in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fef08d5b90a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fef057b9d58 in QXcbEventQueue::run (this=0x562e610c6ee0) at qxcbeventqueue.cpp:228
#4  0x00007fef0a395bec in QThreadPrivate::start (arg=0x562e610c6ee0) at thread/qthread_unix.cpp:329
#5  0x00007fef08d25609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fef0a017293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fef05e9e8c0 (LWP 1872)):
[KCrash Handler]
#4  std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x562c61e06be0) at /usr/include/c++/9/bits/atomic_base.h:413
#5  QAtomicOps<int>::loadRelaxed<int> (_q_value=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qatomic_cxx11.h:239
#6  QBasicAtomicInteger<int>::loadRelaxed (this=0x562c61e06be0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qbasicatomic.h:107
#7  QtPrivate::RefCount::ref (this=0x562c61e06be0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrefcount.h:55
#8  QList<KTextEditor::View*>::QList (this=0x7ffdaf421950, l=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:856
#9  0x00007fef0c1e9fb2 in KTextEditor::DocumentPrivate::views (this=<optimized out>) at ./src/document/katedocument.h:136
#10 Kate::TextBuffer::notifyAboutRangeChange (this=<optimized out>, view=0x562e62301870, lineRange=..., rangeWithAttribute=true) at ./src/buffer/katetextbuffer.cpp:934
#11 0x00007fef0c30e0e6 in KateViewInternal::updateBracketMarkAttributes (this=0x562e6230d620) at /usr/include/c++/9/bits/atomic_base.h:318
#12 0x00007fef0c2f9228 in KTextEditor::ViewPrivate::updateRendererConfig (this=0x562e62301870) at ./src/view/kateview.cpp:2047
#13 0x00007fef0c2b5a64 in KateRenderer::updateConfig (this=<optimized out>) at ./src/render/katerenderer.cpp:885
#14 0x00007fef0c35e0fd in KateRendererConfig::updateConfig (this=0x562e622fc400) at ./src/utils/kateconfig.cpp:732
#15 0x00007fef0c262309 in KTextEditor::DocumentPrivate::updateFileType (this=this@entry=0x562e621b12e0, newType=..., user=user@entry=false) at ./src/render/katerenderer.h:464
#16 0x00007fef0c266388 in KTextEditor::DocumentPrivate::openFile (this=0x562e621b12e0) at ./src/utils/kateglobal.h:243
#17 0x00007fef0c0d3844 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x562e61ee03a0) at ./src/readonlypart.cpp:180
#18 0x00007fef0c0d489e in KParts::ReadOnlyPart::openUrl (this=this@entry=0x562e621b12e0, url=...) at ./src/readonlypart.cpp:141
#19 0x00007fef0c2593d6 in KTextEditor::DocumentPrivate::openUrl (this=0x562e621b12e0, url=...) at ./src/document/katedocument.cpp:2762
#20 0x0000562e5f72c040 in KateDocManager::openUrl (this=this@entry=0x7ffdaf423308, url=..., encoding=..., isTempFile=isTempFile@entry=false, docInfo=...) at ./kate/katedocmanager.cpp:183
#21 0x0000562e5f72c451 in KateDocManager::openUrls (this=0x7ffdaf423308, urls=..., encoding=..., isTempFile=isTempFile@entry=false, docInfo=...) at ./kate/katedocmanager.cpp:139
#22 0x0000562e5f75cf8a in KateViewManager::openUrls (this=this@entry=0x562e6142f2d0, urls=..., encoding=..., isTempFile=isTempFile@entry=false, docInfo=...) at ./kate/kateviewmanager.cpp:294
#23 0x0000562e5f760de6 in KateViewManager::slotDocumentOpen (this=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:257
#24 0x0000562e5f76cc3c in KateViewManager::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffdaf422150) at ./obj-x86_64-linux-gnu/kate/kate-lib_autogen/EWIEGA46WW/moc_kateviewmanager.cpp:241
#25 0x00007fef0a5b2730 in doActivate<false> (sender=0x562e614aebf0, signal_index=4, argv=0x7ffdaf422150) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#26 0x00007fef0a5abac7 in QMetaObject::activate (sender=sender@entry=0x562e614aebf0, m=m@entry=0x7fef0b5ca1c0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffdaf422150) at kernel/qobject.cpp:3946
#27 0x00007fef0b0b28e6 in QAction::triggered (this=this@entry=0x562e614aebf0, _t1=<optimized out>) at .moc/moc_qaction.cpp:376
#28 0x00007fef0b0b4fb8 in QAction::activate (this=0x562e614aebf0, event=<optimized out>) at kernel/qaction.cpp:1161
#29 0x00007fef0b23f6a2 in QMenuPrivate::activateCausedStack (this=this@entry=0x562e61593dc0, causedStack=..., action=action@entry=0x562e614aebf0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1384
#30 0x00007fef0b246dee in QMenuPrivate::activateAction (this=this@entry=0x562e61593dc0, action=action@entry=0x562e614aebf0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1461
#31 0x00007fef0b248082 in QMenu::mouseReleaseEvent (this=0x562e61593cb0, e=0x7ffdaf422830) at widgets/qmenu.cpp:2966
#32 0x00007fef0b0fbc06 in QWidget::event (this=this@entry=0x562e61593cb0, event=event@entry=0x7ffdaf422830) at kernel/qwidget.cpp:8663
#33 0x00007fef0b24a68b in QMenu::event (this=0x562e61593cb0, e=0x7ffdaf422830) at widgets/qmenu.cpp:3088
#34 0x00007fef0b0b8dc3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x562e61593cb0, e=0x7ffdaf422830) at kernel/qapplication.cpp:3632
#35 0x00007fef0b0c1e77 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3076
#36 0x00007fef0a57b6da in QCoreApplication::notifyInternal2 (receiver=0x562e61593cb0, event=0x7ffdaf422830) at ../../include/QtCore/5.15.2/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#37 0x00007fef0b0c10a7 in QApplicationPrivate::sendMouseEvent (receiver=0x562e61593cb0, event=event@entry=0x7ffdaf422830, alienWidget=0x0, nativeWidget=0x562e61593cb0, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#38 0x00007fef0b1178ee in QWidgetWindow::handleMouseEvent (this=0x562e61d973a0, event=0x7ffdaf422cb0) at /usr/include/c++/9/bits/atomic_base.h:413
#39 0x00007fef0b11a174 in QWidgetWindow::event (event=0x7ffdaf422cb0, this=0x562e61d973a0) at kernel/qwidgetwindow.cpp:300
#40 QWidgetWindow::event (this=0x562e61d973a0, event=0x7ffdaf422cb0) at kernel/qwidgetwindow.cpp:239
#41 0x00007fef0b0b8dc3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x562e61d973a0, e=0x7ffdaf422cb0) at kernel/qapplication.cpp:3632
#42 0x00007fef0b0c1bb8 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3156
#43 0x00007fef0a57b6da in QCoreApplication::notifyInternal2 (receiver=0x562e61d973a0, event=0x7ffdaf422cb0) at ../../include/QtCore/5.15.2/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#44 0x00007fef0a95f4e8 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at kernel/qguiapplication.cpp:2282
#45 0x00007fef0a960b55 in QGuiApplicationPrivate::processWindowSystemEvent (e=0x562e61d85410) at kernel/qguiapplication.cpp:2002
#46 0x00007fef0a9387ac in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#47 0x00007fef057bad7e in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#48 0x00007fef0831d17d in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007fef0831d400 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007fef0831d4a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007fef0a5d5fe2 in QEventDispatcherGlib::processEvents (this=0x562e611ac950, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#52 0x00007fef0a57a1eb in QEventLoop::exec (this=this@entry=0x7ffdaf423050, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#53 0x00007fef0a582394 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#54 0x0000562e5f720e07 in main (argc=<optimized out>, argv=<optimized out>) at ./kate/main.cpp:626
[Inferior 1 (process 1872) detached]

Possible duplicates by query: bug 434725, bug 434205, bug 433252, bug 429420, bug 427021.

Reported using DrKonqi
Comment 1 Christoph Cullmann 2021-04-06 18:15:29 UTC

*** This bug has been marked as a duplicate of bug 433180 ***