Bug 417258 - kate crash when closing document
Summary: kate crash when closing document
Status: RESOLVED UPSTREAM
Alias: None
Product: frameworks-knotifications
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.66.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-02-07 08:33 UTC by alancio
Modified: 2020-02-27 13:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alancio 2020-02-07 08:33:38 UTC
Application: kate (19.08.3)
 (Compiled from sources)
Qt Version: 5.13.2
Frameworks Version: 5.66.0
Operating System: Linux 5.0.0-pf3 x86_64
Distribution: Linux

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

I had a few opened documents, some with unsaved changes.
I wanted to close the current buffer which had few lines, never saved.  I hit CTRL-W and kate crashed.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
To enable execution of this file add
	add-auto-load-safe-path /usr/lib/libstdc++.so.6.0.25-gdb.py
line to your configuration file "/home/alan/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/alan/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
[Current thread is 1 (Thread 0x7f091990a7c0 (LWP 8858))]

Thread 4 (Thread 0x7f090ad7f700 (LWP 21678)):
#0  0x00007f091ce92aa6 in ppoll () at /lib/libc.so.6
#1  0x00007f090a4d867a in gst_poll_wait () at /usr/lib/libgstreamer-1.0.so.0
#2  0x00007f090a4906d7 in gst_bus_timed_pop_filtered () at /usr/lib/libgstreamer-1.0.so.0
#3  0x00007f091079e9ba in  () at /usr/lib/libcanberra-0.30/libcanberra-gstreamer.so
#4  0x00007f091c5ccfa3 in start_thread () at /lib/libpthread.so.0
#5  0x00007f091ce9d1af in clone () at /lib/libc.so.6

Thread 3 (Thread 0x7f09111d2700 (LWP 8862)):
#0  0x00007f091c5d2eec in pthread_cond_wait@@GLIBC_2.3.2 () at /lib/libpthread.so.0
#1  0x00007f09114cec5b in  () at /usr/lib/dri/i965_dri.so
#2  0x00007f09114ce747 in  () at /usr/lib/dri/i965_dri.so
#3  0x00007f091c5ccfa3 in start_thread () at /lib/libpthread.so.0
#4  0x00007f091ce9d1af in clone () at /lib/libc.so.6

Thread 2 (Thread 0x7f0913e08700 (LWP 8860)):
#0  0x00007f091ce929a9 in poll () at /lib/libc.so.6
#1  0x00007f0919de87ae in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f0919de88bc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007f091d5635db in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f091d5115eb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f091d3533f6 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007f091d85b4d5 in  () at /usr/lib/libQt5DBus.so.5
#7  0x00007f091d354633 in  () at /usr/lib/libQt5Core.so.5
#8  0x00007f091c5ccfa3 in start_thread () at /lib/libpthread.so.0
#9  0x00007f091ce9d1af in clone () at /lib/libc.so.6

Thread 1 (Thread 0x7f091990a7c0 (LWP 8858)):
[KCrash Handler]
#6  0x000000000000e890 in  ()
#7  0x00007f091f63025a in call_init.part () at /lib/ld-linux-x86-64.so.2
#8  0x00007f091f630356 in _dl_init () at /lib/ld-linux-x86-64.so.2
#9  0x00007f091f634153 in dl_open_worker () at /lib/ld-linux-x86-64.so.2
#10 0x00007f091ced83ef in _dl_catch_exception () at /lib/libc.so.6
#11 0x00007f091f633a3a in _dl_open () at /lib/ld-linux-x86-64.so.2
#12 0x00007f091c582256 in  () at /lib/libdl.so.2
#13 0x00007f091ced83ef in _dl_catch_exception () at /lib/libc.so.6
#14 0x00007f091ced847f in _dl_catch_error () at /lib/libc.so.6
#15 0x00007f091c582975 in  () at /lib/libdl.so.2
#16 0x00007f091c5822e6 in dlopen () at /lib/libdl.so.2
#17 0x00007f09104db55a in snd_dlopen () at /usr/lib/libasound.so.2
#18 0x00007f09104db860 in  () at /usr/lib/libasound.so.2
#19 0x00007f09104f0c9b in  () at /usr/lib/libasound.so.2
#20 0x00007f09104f12e8 in  () at /usr/lib/libasound.so.2
#21 0x00007f09104f3c77 in snd_pcm_open () at /usr/lib/libasound.so.2
#22 0x00007f09107a556e in  () at /usr/lib/libcanberra-0.30/libcanberra-alsa.so
#23 0x00007f09107a61b3 in alsa_driver_play () at /usr/lib/libcanberra-0.30/libcanberra-alsa.so
#24 0x00007f0918022370 in ca_context_play_full () at /usr/lib/libcanberra.so.0
#25 0x00007f09107beade in multi_driver_play () at /usr/lib/libcanberra-0.30/libcanberra-multi.so
#26 0x00007f0918022370 in ca_context_play_full () at /usr/lib/libcanberra.so.0
#27 0x00007f091876efe3 in  () at /usr/lib/libKF5Notifications.so.5
#28 0x00007f091876f45c in  () at /usr/lib/libKF5Notifications.so.5
#29 0x00007f09187442a1 in  () at /usr/lib/libKF5Notifications.so.5
#30 0x00007f091873b424 in KNotification::sendEvent() () at /usr/lib/libKF5Notifications.so.5
#31 0x00007f091d546a39 in  () at /usr/lib/libQt5Core.so.5
#32 0x00007f091d53bd8b in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#33 0x00007f091e0c4011 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#34 0x00007f091e0cb000 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#35 0x00007f091d5129c9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#36 0x00007f091d562ad3 in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#37 0x00007f091d563274 in  () at /usr/lib/libQt5Core.so.5
#38 0x00007f0919de85ce in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#39 0x00007f0919de8838 in  () at /usr/lib/libglib-2.0.so.0
#40 0x00007f0919de88bc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#41 0x00007f091d5635c3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#42 0x00007f091d5115eb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#43 0x00007f091e2a0f9d in QDialog::exec() () at /usr/lib/libQt5Widgets.so.5
#44 0x00007f091e85355f in KMessageBox::createKMessageBox(QDialog*, QDialogButtonBox*, QIcon const&, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&, QMessageBox::Icon) () at /usr/lib/libKF5WidgetsAddons.so.5
#45 0x00007f091e853a37 in KMessageBox::createKMessageBox(QDialog*, QDialogButtonBox*, QMessageBox::Icon, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&) () at /usr/lib/libKF5WidgetsAddons.so.5
#46 0x00007f091e855fb3 in  () at /usr/lib/libKF5WidgetsAddons.so.5
#47 0x00007f091e856327 in KMessageBox::warningYesNoCancel(QWidget*, QString const&, QString const&, KGuiItem const&, KGuiItem const&, KGuiItem const&, QString const&, QFlags<KMessageBox::Option>) () at /usr/lib/libKF5WidgetsAddons.so.5
#48 0x00007f091f33c6ed in KTextEditor::DocumentPrivate::queryClose() () at /usr/lib/libKF5TextEditor.so.5
#49 0x00007f091f1bcc0d in KParts::ReadWritePart::closeUrl() () at /usr/lib/libKF5Parts.so.5
#50 0x00007f091f346af9 in KTextEditor::DocumentPrivate::closeUrl() () at /usr/lib/libKF5TextEditor.so.5
#51 0x000000000044cc84 in  ()
#52 0x000000000044d878 in  ()
#53 0x000000000043a795 in  ()
#54 0x00007f091d53b5c5 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5
#55 0x00007f091e0bdfc2 in QAction::triggered(bool) () at /usr/lib/libQt5Widgets.so.5
#56 0x00007f091e0c0410 in QAction::activate(QAction::ActionEvent) () at /usr/lib/libQt5Widgets.so.5
#57 0x00007f091e0c0c44 in QAction::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#58 0x00007f091e0c4011 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#59 0x00007f091e0cb000 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#60 0x00007f091d5129c9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#61 0x00007f091db10d03 in QShortcutMap::dispatchEvent(QKeyEvent*) () at /usr/lib/libQt5Gui.so.5
#62 0x00007f091db10deb in QShortcutMap::tryShortcut(QKeyEvent*) () at /usr/lib/libQt5Gui.so.5
#63 0x00007f091daca1cf in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () at /usr/lib/libQt5Gui.so.5
#64 0x00007f091dae4acd in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () at /usr/lib/libQt5Gui.so.5
#65 0x00007f091dae96b5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/libQt5Gui.so.5
#66 0x00007f091dac6fdb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#67 0x00007f09194a98ba in  () at /usr/lib/libQt5XcbQpa.so.5
#68 0x00007f0919de85ce in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#69 0x00007f0919de8838 in  () at /usr/lib/libglib-2.0.so.0
#70 0x00007f0919de88bc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#71 0x00007f091d5635c3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#72 0x00007f091d5115eb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#73 0x00007f091d51936e in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#74 0x00000000004300c7 in  ()
#75 0x00007f091cdc809b in __libc_start_main () at /lib/libc.so.6
#76 0x000000000043175a in _start ()
[Inferior 1 (process 8858) detached]

Possible duplicates by query: bug 416900, bug 416816, bug 416730, bug 416549, bug 416384.

Reported using DrKonqi
Comment 1 alancio 2020-02-20 16:08:23 UTC
I can reproduce this crash consistently by following these steps:

1. run kate
2. write anything on new buffer
3. ctrl+w

I hope it can be solved soon, I tend to use keyboard shortcuts a lot.
Comment 2 Christoph Feck 2020-02-27 13:11:38 UTC
What distribution is this? Something is broken with libcanberra or libasound setup, or with the dynamic library loader.