Application: plasmashell (5.4.3) Qt Version: 5.5.0 Operating System: Linux 4.1.12-1-default x86_64 Distribution: "openSUSE Leap 42.1 (x86_64)" -- Information about the crash: - What I was doing when the application crashed: trying to create a link-to-application. - Unusual behavior I noticed: when the create dlg appears, there are only 2 tabs (general and permissions). No place to specify the program. If cancel is used, that's OK. But OK killed desktop. Saw this message after OK clicked The file or folder :/kio5/newfile-templates/.source/Program.desktop does not exist. -- Backtrace: Application: Plasma (plasmashell), signal: Segmentation fault Using host libthread_db library "/lib64/libthread_db.so.1". [Current thread is 1 (Thread 0x7f94185fc7c0 (LWP 2089))] Thread 9 (Thread 0x7f9402055700 (LWP 2090)): #0 0x00007f9411b57c1d in poll () at /lib64/libc.so.6 #1 0x00007f9416a7e422 in () at /usr/lib64/libxcb.so.1 #2 0x00007f9416a8000f in xcb_wait_for_event () at /usr/lib64/libxcb.so.1 #3 0x00007f94041a5c29 in () at /usr/lib64/libQt5XcbQpa.so.5 #4 0x00007f941224e55f in () at /usr/lib64/libQt5Core.so.5 #5 0x00007f94113610a4 in start_thread () at /lib64/libpthread.so.0 #6 0x00007f9411b6004d in clone () at /lib64/libc.so.6 Thread 8 (Thread 0x7f93fafca700 (LWP 2125)): #0 0x00007ffed2795b26 in clock_gettime () #1 0x00007f9411b6cc9d in clock_gettime () at /lib64/libc.so.6 #2 0x00007f94122feb06 in () at /usr/lib64/libQt5Core.so.5 #3 0x00007f941247e089 in QTimerInfoList::updateCurrentTime() () at /usr/lib64/libQt5Core.so.5 #4 0x00007f941247e615 in QTimerInfoList::timerWait(timespec&) () at /usr/lib64/libQt5Core.so.5 #5 0x00007f941247f82e in () at /usr/lib64/libQt5Core.so.5 #6 0x00007f940e2384ad in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0 #7 0x00007f940e238d80 in () at /usr/lib64/libglib-2.0.so.0 #8 0x00007f940e238f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #9 0x00007f941247fa5b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #10 0x00007f9412426a63 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #11 0x00007f941224984a in QThread::exec() () at /usr/lib64/libQt5Core.so.5 #12 0x00007f94155325f8 in () at /usr/lib64/libQt5Qml.so.5 #13 0x00007f941224e55f in () at /usr/lib64/libQt5Core.so.5 #14 0x00007f94113610a4 in start_thread () at /lib64/libpthread.so.0 #15 0x00007f9411b6004d in clone () at /lib64/libc.so.6 Thread 7 (Thread 0x7f93ed5bf700 (LWP 2129)): #0 0x00007f941136505f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0 #1 0x00007f93f39f8e53 in () at /usr/lib64/dri/radeonsi_dri.so #2 0x00007f93f39f85d7 in () at /usr/lib64/dri/radeonsi_dri.so #3 0x00007f94113610a4 in start_thread () at /lib64/libpthread.so.0 #4 0x00007f9411b6004d in clone () at /lib64/libc.so.6 Thread 6 (Thread 0x7f93e78ef700 (LWP 2130)): #0 0x00007f9411b57c1d in poll () at /lib64/libc.so.6 #1 0x00007f940e238e64 in () at /usr/lib64/libglib-2.0.so.0 #2 0x00007f940e238f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #3 0x00007f941247fa5b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #4 0x00007f9412426a63 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #5 0x00007f941224984a in QThread::exec() () at /usr/lib64/libQt5Core.so.5 #6 0x00007f94155325f8 in () at /usr/lib64/libQt5Qml.so.5 #7 0x00007f941224e55f in () at /usr/lib64/libQt5Core.so.5 #8 0x00007f94113610a4 in start_thread () at /lib64/libpthread.so.0 #9 0x00007f9411b6004d in clone () at /lib64/libc.so.6 Thread 5 (Thread 0x7f93e5ee9700 (LWP 2140)): #0 0x00007ffed2795b26 in clock_gettime () #1 0x00007f9411b6cc9d in clock_gettime () at /lib64/libc.so.6 #2 0x00007f94122feb06 in () at /usr/lib64/libQt5Core.so.5 #3 0x00007f941247e089 in QTimerInfoList::updateCurrentTime() () at /usr/lib64/libQt5Core.so.5 #4 0x00007f941247e615 in QTimerInfoList::timerWait(timespec&) () at /usr/lib64/libQt5Core.so.5 #5 0x00007f941247f82e in () at /usr/lib64/libQt5Core.so.5 #6 0x00007f940e2384ad in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0 #7 0x00007f940e238d80 in () at /usr/lib64/libglib-2.0.so.0 #8 0x00007f940e238f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #9 0x00007f941247fa5b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #10 0x00007f9412426a63 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #11 0x00007f941224984a in QThread::exec() () at /usr/lib64/libQt5Core.so.5 #12 0x00007f94155325f8 in () at /usr/lib64/libQt5Qml.so.5 #13 0x00007f941224e55f in () at /usr/lib64/libQt5Core.so.5 #14 0x00007f94113610a4 in start_thread () at /lib64/libpthread.so.0 #15 0x00007f9411b6004d in clone () at /lib64/libc.so.6 Thread 4 (Thread 0x7f93dffff700 (LWP 2141)): #0 0x00007f941136505f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0 #1 0x00007f9417ce57eb in () at /usr/lib64/libQt5Script.so.5 #2 0x00007f9417ce5819 in () at /usr/lib64/libQt5Script.so.5 #3 0x00007f94113610a4 in start_thread () at /lib64/libpthread.so.0 #4 0x00007f9411b6004d in clone () at /lib64/libc.so.6 Thread 3 (Thread 0x7f93dd106700 (LWP 2148)): #0 0x00007ffed2795b26 in clock_gettime () #1 0x00007f9411b6cc9d in clock_gettime () at /lib64/libc.so.6 #2 0x00007f94122feb06 in () at /usr/lib64/libQt5Core.so.5 #3 0x00007f941247e089 in QTimerInfoList::updateCurrentTime() () at /usr/lib64/libQt5Core.so.5 #4 0x00007f941247e615 in QTimerInfoList::timerWait(timespec&) () at /usr/lib64/libQt5Core.so.5 #5 0x00007f941247f82e in () at /usr/lib64/libQt5Core.so.5 #6 0x00007f940e2384ad in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0 #7 0x00007f940e238d80 in () at /usr/lib64/libglib-2.0.so.0 #8 0x00007f940e238f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #9 0x00007f941247fa5b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #10 0x00007f9412426a63 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #11 0x00007f941224984a in QThread::exec() () at /usr/lib64/libQt5Core.so.5 #12 0x00007f94160c5f82 in () at /usr/lib64/libQt5Quick.so.5 #13 0x00007f941224e55f in () at /usr/lib64/libQt5Core.so.5 #14 0x00007f94113610a4 in start_thread () at /lib64/libpthread.so.0 #15 0x00007f9411b6004d in clone () at /lib64/libc.so.6 Thread 2 (Thread 0x7f9349368700 (LWP 2205)): #0 0x00007f9411b57c1d in poll () at /lib64/libc.so.6 #1 0x00007f940e238e64 in () at /usr/lib64/libglib-2.0.so.0 #2 0x00007f940e238f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #3 0x00007f941247fa5b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #4 0x00007f9412426a63 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #5 0x00007f941224984a in QThread::exec() () at /usr/lib64/libQt5Core.so.5 #6 0x00007f934a9b5cf7 in KCupsConnection::run() () at /usr/lib64/libkcupslib.so #7 0x00007f941224e55f in () at /usr/lib64/libQt5Core.so.5 #8 0x00007f94113610a4 in start_thread () at /lib64/libpthread.so.0 #9 0x00007f9411b6004d in clone () at /lib64/libc.so.6 Thread 1 (Thread 0x7f94185fc7c0 (LWP 2089)): [KCrash Handler] #6 0x00007f94165785d0 in () at /usr/lib64/libQt5Quick.so.5 #7 0x00007f94124391ed in QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) () at /usr/lib64/libQt5Core.so.5 #8 0x00007f940b7d3304 in KDialogJobUiDelegate::Private::next() () at /usr/lib64/libKF5JobWidgets.so.5 #9 0x00007f9412459796 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5 #10 0x00007f94137a1e8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5 #11 0x00007f94137a6cd8 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5 #12 0x00007f9412428ba5 in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5 #13 0x00007f941242ad67 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5 #14 0x00007f94124805c3 in () at /usr/lib64/libQt5Core.so.5 #15 0x00007f940e238c84 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0 #16 0x00007f940e238ed8 in () at /usr/lib64/libglib-2.0.so.0 #17 0x00007f940e238f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #18 0x00007f941247fa3c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #19 0x00007f9412426a63 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #20 0x00007f941242e5d6 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5 #21 0x000000000043467b in main () Reported using DrKonqi
getting the same when creating a new shortcut to program/file, no backtrace.....
Can you give full steps to reproduce the problem. What exactly were you dragging? and from and to where?
I right-clicked on desktop and picked 'create new' -> 'link to application'. The dlg appeared but had 2 tabs - no tab to enter a program name. If I cancel, then its OK. If I said OK, to see what happened, that's when crash occurred.
Thanks
Can you tell me what verison of frameworks-kio you have?
Same problem. KIO Version: 5.16.0-3.2 / x86_64
Created attachment 96126 [details] KIO versions hopefully this is what you were asking for
*** Bug 357172 has been marked as a duplicate of this bug. ***
*** Bug 357094 has been marked as a duplicate of this bug. ***
*** Bug 358182 has been marked as a duplicate of this bug. ***
*** Bug 358196 has been marked as a duplicate of this bug. ***
*** Bug 358825 has been marked as a duplicate of this bug. ***
I don't think this is a specific problem in plasmashell. Dolphin crashes as well when creating a new "link to application", with a different backtrace though of course.
Wolfgang, can you get me a valgrind trace of the crash in dolphin?
Created attachment 97054 [details] valgrind log when trying to reproduce the crash in dolphin (In reply to David Edmundson from comment #14) > Wolfgang, can you get me a valgrind trace of the crash in dolphin? Hm, dolphin did not crash when running it in valgrind. I attached the log anyway, and hope it helps. Note that the crash normally happens when "Create New"->"Link to application" fails, immediately after you press "OK" in the error dialog.
(In reply to Wolfgang Bauer from comment #15) > Hm, dolphin did not crash when running it in valgrind. PS: the crash is reliably reproducible otherwise. I now let drkonqi search for duplicates and got 11 results, from dolphin *and* systemsettings... And now that I look again at the backtrace in comment#0, it is actually similar: Thread 1 (Thread 0x7f3d4e7b37c0 (LWP 26632)): [KCrash Handler] #5 0x00007f3d483aefab in QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) () at /usr/lib64/libQt5Core.so.5 #6 0x00007f3d4c6b5724 in KDialogJobUiDelegate::Private::next() () at /usr/lib64/libKF5JobWidgets.so.5 #7 0x00007f3d483cf4f6 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5 #8 0x00007f3d49517eec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5 #9 0x00007f3d4951cd38 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5 #10 0x00007f3d4839e935 in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5 #11 0x00007f3d483a0af7 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5 #12 0x00007f3d483f6303 in () at /usr/lib64/libQt5Core.so.5 #13 0x00007f3d43374a04 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0 #14 0x00007f3d43374c48 in () at /usr/lib64/libglib-2.0.so.0 #15 0x00007f3d43374cec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #16 0x00007f3d483f577c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #17 0x00007f3d4839c803 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #18 0x00007f3d483a4396 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5 #19 0x00007f3d4e3d13f7 in kdemain(int, char**) (argc=1, argv=<optimized out>) at /usr/src/debug/dolphin-15.12.1/src/main.cpp:150 #20 0x00007f3d4dfebb05 in __libc_start_main () at /lib64/libc.so.6 #21 0x00000000004007be in _start () at ../sysdeps/x86_64/start.S:122
Valgrind trace is useful And I can definitely come up with two different guards that would fix this from that, but neither /should/ be needed. but can I be a pain and ask you to re-run with valgrind --num-callers=50 so I can see the full trace of the initial delete. (I did try myself, but I don't get the problem here)
Created attachment 97058 [details] valgrind log with "--num-callers=50" (In reply to David Edmundson from comment #17) > but can I be a pain and ask you to re-run with > valgrind --num-callers=50 > > so I can see the full trace of the initial delete. Attached. > (I did try myself, but I don't get the problem here) The crash happens when reproducing Bug#356198. If you have the corresponding template files in /usr/share/templates/, that doesn't happen. I had to remove that folder to even see that problem, as I have a git version of kde-baseapps installed that still has those files.
Thanks so much.
https://git.reviewboard.kde.org/r/126999/ if you're able to try patches.
(In reply to David Edmundson from comment #20) > https://git.reviewboard.kde.org/r/126999/ if you're able to try patches. Yes, it seems to fix the crash. With that patch I am not able to reproduce it with neither plasmashell nor dolphin, while it did occur every single time without it.
*** Bug 359105 has been marked as a duplicate of this bug. ***
Git commit e984dab0a6cd9541ae178c104f0228ae264284a6 by David Edmundson. Committed on 08/02/2016 at 15:13. Pushed by davidedmundson into branch 'master'. Fix crash in KJob dialogs. Guard "this" being deleted whilst running new eventloop KMessageBox spawns a new event loop, during which the parent kjob can be completed and deleted, deleting the UIDelegate with it. Related: bug 356964, bug 355052, bug 355525, bug 353462, bug 358954, bug 346215 REVIEW: 126999 M +9 -0 src/kdialogjobuidelegate.cpp http://commits.kde.org/kjobwidgets/e984dab0a6cd9541ae178c104f0228ae264284a6
Fix included in KF 5.19
*** Bug 359391 has been marked as a duplicate of this bug. ***
*** Bug 359623 has been marked as a duplicate of this bug. ***
*** Bug 359622 has been marked as a duplicate of this bug. ***
*** Bug 362320 has been marked as a duplicate of this bug. ***
*** Bug 386230 has been marked as a duplicate of this bug. ***