Bug 339307 - [frameworks] Crash when restarting plasmashell
Summary: [frameworks] Crash when restarting plasmashell
Status: RESOLVED DUPLICATE of bug 339707
Alias: None
Product: kmix
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Christian Esken
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-22 18:30 UTC by Elias Probst
Modified: 2014-12-30 21:33 UTC (History)
0 users

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 Elias Probst 2014-09-22 18:30:22 UTC
When restarting plasmashell, KMix crashes.
I don't need to do anything in KMix itself, just starting it, then restarting plasmashell.

Running a Qt 5.4.0 alpha/KF5-only Plasma 5 environment. All components are up-to-date from git as of now.

Application: KMix (kmix), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f929cd65800 (LWP 5147))]

Thread 2 (Thread 0x7f928a32b700 (LWP 5148)):
#0  0x00007f929c7bf63d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f92936b21f2 in poll (__timeout=-1, __nfds=1, __fds=0x7f928a32acd0) at /usr/include/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x84c3a0, cond=cond@entry=0x84c3e0, vector=vector@entry=0x0, count=count@entry=0x0) at /var/tmp/portage/x11-libs/libxcb-1.10/work/libxcb-1.10/src/xcb_conn.c:447
#3  0x00007f92936b3df7 in xcb_wait_for_event (c=0x84c3a0) at /var/tmp/portage/x11-libs/libxcb-1.10/work/libxcb-1.10/src/xcb_in.c:622
#4  0x00007f928c255329 in QXcbEventReader::run (this=0x845d60) at qxcbconnection.cpp:1094
#5  0x00007f929b0e120f in QThreadPrivate::start (arg=0x845d60) at thread/qthread_unix.cpp:345
#6  0x00007f9295da4023 in start_thread (arg=0x7f928a32b700) at pthread_create.c:309
#7  0x00007f929c7c8cfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f929cd65800 (LWP 5147)):
[KCrash Handler]
#6  check_parent_thread (parent=parent@entry=0xc166c0, parentThreadData=<optimized out>, currentThreadData=<optimized out>) at kernel/qobject.cpp:783
#7  0x00007f929b2f3d50 in check_parent_thread (currentThreadData=<optimized out>, parentThreadData=<optimized out>, parent=0xc166c0) at kernel/qobject.cpp:827
#8  QObject::QObject (this=0xd70d10, parent=0xc166c0) at kernel/qobject.cpp:816
#9  0x00007f9293adce3e in DBusMenuExporter::DBusMenuExporter (this=0xd70d10, objectPath=..., menu=0xc166c0, _connection=...) at /var/tmp/portage/dev-libs/libdbusmenu-qt-9999/work/libdbusmenu-qt-9999/src/dbusmenuexporter.cpp:331
#10 0x00007f929a08d4f8 in KDBusMenuExporter (dbusConnection=..., menu=0xc166c0, dbusObjectPath=..., this=0xd70d10) at /var/tmp/portage/kde-frameworks/knotifications-9999/work/knotifications-9999/src/kstatusnotifieritem.cpp:59
#11 KStatusNotifierItem::setContextMenu (this=0xc1e8e0, menu=0xc166c0) at /var/tmp/portage/kde-frameworks/knotifications-9999/work/knotifications-9999/src/kstatusnotifieritem.cpp:423
#12 0x00007f929a08d374 in KStatusNotifierItem::setContextMenu (this=0xc33e60, menu=0xc347f0) at /var/tmp/portage/kde-frameworks/knotifications-9999/work/knotifications-9999/src/kstatusnotifieritem.cpp:411
#13 0x00007f929a08dc3a in KStatusNotifierItemPrivate::setLegacySystemTrayEnabled (this=0xcbf840, enabled=enabled@entry=true) at /var/tmp/portage/kde-frameworks/knotifications-9999/work/knotifications-9999/src/kstatusnotifieritem.cpp:843
#14 0x00007f929a0907ba in KStatusNotifierItemPrivate::setLegacyMode (this=this@entry=0xcbf840, legacy=<optimized out>) at /var/tmp/portage/kde-frameworks/knotifications-9999/work/knotifications-9999/src/kstatusnotifieritem.cpp:792
#15 0x00007f929a09080a in KStatusNotifierItemPrivate::checkForRegisteredHosts (this=0xcbf840) at /var/tmp/portage/kde-frameworks/knotifications-9999/work/knotifications-9999/src/kstatusnotifieritem.cpp:781
#16 0x00007f929a090b61 in KStatusNotifierItem::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /var/tmp/portage/kde-frameworks/knotifications-9999/work/knotifications-9999_build/src/moc_kstatusnotifieritem.cpp:183
#17 0x00007f929b2eb451 in QMetaObject::activate (sender=sender@entry=0xd17070, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at kernel/qobject.cpp:3707
#18 0x00007f929b2eba77 in QMetaObject::activate (sender=sender@entry=0xd17070, m=m@entry=0x7f929a2b9180 <OrgKdeStatusNotifierWatcherInterface::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at kernel/qobject.cpp:3573
#19 0x00007f929a0a6a73 in StatusNotifierHostUnregistered (this=0xd17070) at /var/tmp/portage/kde-frameworks/knotifications-9999/work/knotifications-9999_build/src/statusnotifierwatcher_interface.moc:221
#20 OrgKdeStatusNotifierWatcherInterface::qt_static_metacall (_o=_o@entry=0xd17070, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=1, _a=_a@entry=0x7fff347619d0) at /var/tmp/portage/kde-frameworks/knotifications-9999/work/knotifications-9999_build/src/statusnotifierwatcher_interface.moc:107
#21 0x00007f929a0a6c7f in OrgKdeStatusNotifierWatcherInterface::qt_metacall (this=0xd17070, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff347619d0) at /var/tmp/portage/kde-frameworks/knotifications-9999/work/knotifications-9999_build/src/statusnotifierwatcher_interface.moc:172
#22 0x00007f929cec404f in QDBusConnectionPrivate::deliverCall (this=0x8271e0, object=0xd17070, msg=..., metaTypes=..., slotIdx=7) at qdbusintegrator.cpp:998
#23 0x00007f929b2ec256 in QObject::event (this=0xd17070, e=<optimized out>) at kernel/qobject.cpp:1249
#24 0x00007f929ab4c53c in QApplicationPrivate::notify_helper (this=this@entry=0x83b0e0, receiver=receiver@entry=0xd17070, e=e@entry=0xc9b220) at kernel/qapplication.cpp:3729
#25 0x00007f929ab51540 in QApplication::notify (this=0x826be0, receiver=0xd17070, e=0xc9b220) at kernel/qapplication.cpp:3512
#26 0x00007f929b2bbb05 in QCoreApplication::notifyInternal (this=0x826be0, receiver=0xd17070, event=event@entry=0xc9b220) at kernel/qcoreapplication.cpp:940
#27 0x00007f929b2bd967 in sendEvent (event=0xc9b220, receiver=<optimized out>) at kernel/qcoreapplication.h:236
#28 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x81d290) at kernel/qcoreapplication.cpp:1544
#29 0x00007f929b2bdf98 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1402
#30 0x00007f929b313793 in postEventSourceDispatch (s=0x86f5c0) at kernel/qeventdispatcher_glib.cpp:279
#31 0x00007f9294cb5884 in g_main_dispatch (context=0x7f9284001e00) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3064
#32 g_main_context_dispatch (context=context@entry=0x7f9284001e00) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3663
#33 0x00007f9294cb5ac8 in g_main_context_iterate (context=context@entry=0x7f9284001e00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3734
#34 0x00007f9294cb5b6c in g_main_context_iteration (context=0x7f9284001e00, may_block=1) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3795
#35 0x00007f929b312c0c in QEventDispatcherGlib::processEvents (this=0x86e280, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#36 0x00007f929b2b9a4b in QEventLoop::exec (this=this@entry=0x7fff34762020, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#37 0x00007f929b2c1096 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1193
#38 0x00007f9298f2245c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1515
#39 0x00007f929ab48d25 in QApplication::exec () at kernel/qapplication.cpp:2964
#40 0x00007f929cad2b12 in kdemain (argc=5, argv=0x7fff34762288) at /var/tmp/portage/kde-base/kmix-9999/work/kmix-9999/apps/main.cpp:91
#41 0x00007f929c701e75 in __libc_start_main (main=0x400850 <main(int, char**)>, argc=5, argv=0x7fff34762288, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff34762278) at libc-start.c:285
#42 0x0000000000400881 in _start ()
Comment 1 Elias Probst 2014-10-07 13:20:12 UTC
Fixed by Lukáš Tinkl in 9cf3bd6b.

http://commits.kde.org/kmix/9cf3bd6b52efbc68da43844c7e648ee76d6ee918
Comment 2 Elias Probst 2014-10-07 13:27:22 UTC
It happened now again… re-opening.
It turns out this crash is not related to the fix by Lukáš Tinkl at all.
Comment 3 Elias Probst 2014-10-07 13:31:00 UTC
Martin Klapetek suggested to revert to b792a1 in knotifications, but this didn't help.

This crash only happens, when kmix is running before plasmashell is started.
When kmix is started after plasmashell, it survives the first restart of plasmashell.
Comment 4 Elias Probst 2014-12-30 21:33:08 UTC

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