Bug 406642

Summary: KDE Global Shortcuts service crashes on each start up (seg fault)
Product: [Frameworks and Libraries] frameworks-kglobalaccel Reporter: Tim Richardson <tim>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fabian, nate
Priority: NOR    
Version: 5.57.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: settings file causing segfault

Description Tim Richardson 2019-04-17 21:46:18 UTC
SUMMARY
KDE Global Shortcuts service crashes on each start up (seg fault)
Some keyboard shortcuts are not working (alt-space, alt-F2) and some are, not sure if this is related or not.

STEPS TO REPRODUCE
1. Restart desktop session
2. 
3. 

OBSERVED RESULT
Error message in panel tray. 


EXPECTED RESULT


SOFTWARE/OS VERSIONS

KDE Neon
 

ADDITIONAL INFORMATION
Executable: kglobalaccel5 PID: 3031 Signal: Segmentation fault (11) Time: 18/04/2019 07:38:40


Application: KDE Global Shortcuts Service (kglobalaccel5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f1120f27800 (LWP 3031))]

Thread 3 (Thread 0x7f1108061700 (LWP 3047)):
#0  0x00007f111eefdbf9 in __GI___poll (fds=0x7f11000182b0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f111ba4c539 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f111ba4c64c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f111f84015b in QEventDispatcherGlib::processEvents (this=0x7f1100000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f111f7e164a in QEventLoop::exec (this=this@entry=0x7f1108060d70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f111f60941a in QThread::exec (this=this@entry=0x7f111e761d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:531
#6  0x00007f111e4ea015 in QDBusConnectionManager::run (this=0x7f111e761d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#7  0x00007f111f60abc2 in QThreadPrivate::start (arg=0x7f111e761d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:361
#8  0x00007f111db306db in start_thread (arg=0x7f1108061700) at pthread_create.c:463
#9  0x00007f111ef0a88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f1114a99700 (LWP 3034)):
#0  0x00007f111eefdbf9 in __GI___poll (fds=0x7f1114a98cb8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f111ad39747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f111ad3b36a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f111601432a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f111f60abc2 in QThreadPrivate::start (arg=0x55eb9c4db1b0) at thread/qthread_unix.cpp:361
#5  0x00007f111db306db in start_thread (arg=0x7f1114a99700) at pthread_create.c:463
#6  0x00007f111ef0a88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f1120f27800 (LWP 3031)):
[KCrash Handler]
#6  GlobalShortcut::isPresent (this=this@entry=0x34002e0031003a) at ./src/runtime/globalshortcut.cpp:106
#7  0x00007f1120b41af0 in KdeDGlobalAccel::Component::cleanUp (this=0x55eb9c55b530) at ./src/runtime/component.cpp:166
#8  0x00007f1120b4a99b in KdeDGlobalAccel::Component::qt_static_metacall (_o=_o@entry=0x55eb9c55b530, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=1, _a=_a@entry=0x7ffc59fca950) at ./obj-x86_64-linux-gnu/src/runtime/KF5GlobalAccelPrivate_autogen/EWIEGA46WW/moc_component.cpp:130
#9  0x00007f1120b4ad85 in KdeDGlobalAccel::Component::qt_metacall (this=0x55eb9c55b530, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7ffc59fca950) at ./obj-x86_64-linux-gnu/src/runtime/KF5GlobalAccelPrivate_autogen/EWIEGA46WW/moc_component.cpp:205
#10 0x00007f111e4f5128 in QDBusConnectionPrivate::deliverCall (this=this@entry=0x7f11000085e0, object=object@entry=0x55eb9c55b530, msg=..., metaTypes=..., slotIdx=<optimized out>) at qdbusintegrator.cpp:991
#11 0x00007f111e4f9f80 in QDBusConnectionPrivate::activateCall (this=this@entry=0x7f11000085e0, object=0x55eb9c55b530, flags=240, msg=...) at qdbusintegrator.cpp:894
#12 0x00007f111e4fa467 in QDBusConnectionPrivate::activateCall (msg=..., flags=<optimized out>, object=<optimized out>, this=0x7f11000085e0) at qdbusintegrator.cpp:843
#13 QDBusConnectionPrivate::activateObject (this=0x7f11000085e0, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1501
#14 0x00007f111e4fcf1e in QDBusActivateObjectEvent::placeMetaCall (this=0x7f1100013350) at qdbusintegrator.cpp:1597
#15 0x00007f111f813992 in QObject::event (this=0x55eb9c55b530, e=<optimized out>) at kernel/qobject.cpp:1249
#16 0x00007f111f7e3328 in QCoreApplication::notifyInternal2 (receiver=0x55eb9c55b530, event=0x7f1100013350) at kernel/qcoreapplication.cpp:1061
#17 0x00007f111f7e34fe in QCoreApplication::sendEvent (receiver=<optimized out>, event=event@entry=0x7f1100013350) at kernel/qcoreapplication.cpp:1451
#18 0x00007f111f7e5e87 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x55eb9c4d4440) at kernel/qcoreapplication.cpp:1800
#19 0x00007f111f7e6428 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1654
#20 0x00007f111f840b23 in postEventSourceDispatch (s=0x55eb9c543550) at kernel/qeventdispatcher_glib.cpp:276
#21 0x00007f111ba4c387 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f111ba4c5c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f111ba4c64c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f111f84013f in QEventDispatcherGlib::processEvents (this=0x55eb9c4e1bc0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#25 0x00007f111f7e164a in QEventLoop::exec (this=this@entry=0x7ffc59fcaf10, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#26 0x00007f111f7ea800 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1364
#27 0x000055eb9ac1b7f7 in main (argc=<optimized out>, argv=<optimized out>) at ./src/runtime/main.cpp:88
Comment 1 Tim Richardson 2019-04-18 00:22:34 UTC
running kglobalaccel5 in a shell after login restores shortcuts.
Comment 2 Tim Richardson 2019-04-18 00:44:15 UTC
Delete ~/.config/kglobalshortcutsrc and restarting stopped the crashing. 
I have attached the settings I did have, which were causing the problem (apparently) after the 5.57 release.
Comment 3 Tim Richardson 2019-04-18 00:45:36 UTC
Created attachment 119475 [details]
settings file causing segfault

this settings file now causes a segfault for kglobalaccel when session starts.
Comment 4 Fabian Vogt 2019-04-18 18:03:31 UTC

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