Application: kgpg (16.07.70) Qt Version: 5.7.0 Frameworks Version: 5.28.0 Operating System: Linux 4.4.0-45-generic x86_64 Distribution: KDE neon Developer Edition -- Information about the crash: While the startup of each KDE-session kgpg crashes, same trouble after start from "Konsole" The crash can be reproduced every time. -- Backtrace: Application: KGpg (kgpg), signal: Segmentation fault Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Current thread is 1 (Thread 0x7fc32a6dc980 (LWP 2303))] Thread 3 (Thread 0x7fc317b7e700 (LWP 2429)): #0 0x00007fc3424f2ac9 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #1 0x00007fc3424ad939 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fc3424ae2cb in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fc3424ae4ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007fc348ea523b in QEventDispatcherGlib::processEvents (this=0x7fc3100008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425 #5 0x00007fc348e4fcea in QEventLoop::exec (this=this@entry=0x7fc317b7dc40, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210 #6 0x00007fc348c74fb4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507 #7 0x00007fc348c79b98 in QThreadPrivate::start (arg=0x100c680) at thread/qthread_unix.cpp:344 #8 0x00007fc3449bb6fa in start_thread (arg=0x7fc317b7e700) at pthread_create.c:333 #9 0x00007fc348370b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 2 (Thread 0x7fc31ffff700 (LWP 2346)): #0 0x00007fc348364e8d in poll () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007fc3424ae39c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fc3424ae4ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fc348ea523b in QEventDispatcherGlib::processEvents (this=0x7fc3180008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425 #4 0x00007fc348e4fcea in QEventLoop::exec (this=this@entry=0x7fc31fffec10, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210 #5 0x00007fc348c74fb4 in QThread::exec (this=this@entry=0x7fc34db21d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:507 #6 0x00007fc34daad7a5 in QDBusConnectionManager::run (this=0x7fc34db21d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:196 #7 0x00007fc348c79b98 in QThreadPrivate::start (arg=0x7fc34db21d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:344 #8 0x00007fc3449bb6fa in start_thread (arg=0x7fc31ffff700) at pthread_create.c:333 #9 0x00007fc348370b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 1 (Thread 0x7fc32a6dc980 (LWP 2303)): [KCrash Handler] #6 std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x700000001) at /usr/include/c++/5/bits/atomic_base.h:396 #7 QAtomicOps<int>::load<int> (_q_value=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qatomic_cxx11.h:103 #8 QBasicAtomicInteger<int>::load (this=0x700000001) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qbasicatomic.h:99 #9 QtPrivate::RefCount::ref (this=0x700000001) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrefcount.h:55 #10 QString::QString (other=..., this=0xf976e0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:899 #11 KgpgCore::KgpgKeyPrivate::KgpgKeyPrivate (this=0xf97680, id=..., size=<optimized out>, trust=..., algo=..., subtype=..., keytype=..., creationDate=..., curve=...) at /workspace/build/core/kgpgkey.cpp:178 #12 0x00000000004376f9 in KgpgCore::KgpgKey::KgpgKey (this=0x7ffcf1399260, id=..., size=1024, trust=..., algo=..., subtype=..., keytype=..., creationDate=..., curve=...) at /workspace/build/core/kgpgkey.cpp:205 #13 0x00000000004ab1df in readPublicKeysProcess (p=..., readNode=readNode@entry=0x0) at /workspace/build/kgpginterface.cpp:171 #14 0x00000000004ade68 in KgpgInterface::readPublicKeys (ids=...) at /workspace/build/kgpginterface.cpp:301 #15 0x0000000000440429 in KGpgRootNode::addKeys (this=0xe43470, ids=...) at /workspace/build/core/KGpgRootNode.cpp:70 #16 0x0000000000454157 in KGpgItemModel::refreshKeyIds (this=0xe283c0, ids=...) at /workspace/build/model/kgpgitemmodel.cpp:461 #17 0x0000000000454235 in KGpgItemModel::refreshKeys (this=<optimized out>, ids=...) at /workspace/build/model/kgpgitemmodel.cpp:447 #18 0x000000000048a096 in KGpgItemModel::refreshKeys (this=<optimized out>) at /workspace/build/model/kgpgitemmodel.h:86 #19 KeysManager::refreshkey (this=0xde68c0) at /workspace/build/keysmanager.cpp:2652 #20 0x00000000004e6a1f in KeysManager::qt_static_metacall (_o=0xde68c0, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /workspace/build/obj-x86_64-linux-gnu/moc_keysmanager.cpp:435 #21 0x00007fc348e7da19 in QObject::event (this=this@entry=0xde68c0, e=e@entry=0x102e290) at kernel/qobject.cpp:1263 #22 0x00007fc3499e158b in QWidget::event (this=this@entry=0xde68c0, event=event@entry=0x102e290) at kernel/qwidget.cpp:9208 #23 0x00007fc349ade4cb in QMainWindow::event (this=0xde68c0, event=0x102e290) at widgets/qmainwindow.cpp:1543 #24 0x00007fc34bd211e7 in KMainWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5 #25 0x00007fc34bd65825 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5 #26 0x00007fc34999a89c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0xde68c0, e=0x102e290) at kernel/qapplication.cpp:3799 #27 0x00007fc3499a2296 in QApplication::notify (this=0x7ffcf1399fc0, receiver=0xde68c0, e=0x102e290) at kernel/qapplication.cpp:3556 #28 0x00007fc348e51cf8 in QCoreApplication::notifyInternal2 (receiver=0xde68c0, event=event@entry=0x102e290) at kernel/qcoreapplication.cpp:988 #29 0x00007fc348e543bb in QCoreApplication::sendEvent (event=0x102e290, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #30 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x9cf080) at kernel/qcoreapplication.cpp:1649 #31 0x00007fc348e54828 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1503 #32 0x00007fc348ea4e13 in postEventSourceDispatch (s=0xa34bf0) at kernel/qeventdispatcher_glib.cpp:276 #33 0x00007fc3424ae1a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #34 0x00007fc3424ae400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #35 0x00007fc3424ae4ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #36 0x00007fc348ea521f in QEventDispatcherGlib::processEvents (this=0xa24bd0, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #37 0x00007fc348e4fcea in QEventLoop::exec (this=this@entry=0x7ffcf1399cb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210 #38 0x00007fc348e582fc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261 #39 0x00007fc3493f7d9c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1639 #40 0x00007fc34999a7f5 in QApplication::exec () at kernel/qapplication.cpp:2975 #41 0x00000000004339c9 in main (argc=2, argv=<optimized out>) at /workspace/build/main.cpp:84 Reported using DrKonqi
There has been a fix for something like this, can you check if this still happens with the latest git version?
Yes, the problem still exists in the same way on every start of KDE
Application: kgpg (16.07.70) Qt Version: 5.7.0 Frameworks Version: 5.28.0 Operating System: Linux 4.4.0-45-generic x86_64 Distribution: KDE neon Developer Edition -- Information about the crash: Occurs directly after boot up and upon any subsequent attempt to start application either via plasma or konsole The crash can be reproduced every time. Yes -- Backtrace: Application: KGpg (kgpg), signal: Segmentation fault Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Current thread is 1 (Thread 0x7f24af497980 (LWP 1329))] Thread 3 (Thread 0x7f249d2c9700 (LWP 1400)): #0 0x00007f24cd1b6b5d in poll () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007f24c752639c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007f24c75264ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007f24cdcf723b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #4 0x00007f24cdca1cea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #5 0x00007f24cdac6fb4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #6 0x00007f24cdacbb98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007f24c9a1570a in start_thread (arg=0x7f249d2c9700) at pthread_create.c:333 #8 0x00007f24cd1c282d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 2 (Thread 0x7f24a5671700 (LWP 1365)): #0 0x00007f24cd1b6b5d in poll () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007f24c752639c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007f24c75264ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007f24cdcf723b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #4 0x00007f24cdca1cea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #5 0x00007f24cdac6fb4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #6 0x00007f24d29057a5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5 #7 0x00007f24cdacbb98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #8 0x00007f24c9a1570a in start_thread (arg=0x7f24a5671700) at pthread_create.c:333 #9 0x00007f24cd1c282d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 1 (Thread 0x7f24af497980 (LWP 1329)): [KCrash Handler] #6 0x0000000000436707 in ?? () #7 0x0000000000436821 in ?? () #8 0x00000000004ab284 in ?? () #9 0x00000000004ada28 in ?? () #10 0x0000000000440179 in ?? () #11 0x000000000045353c in ?? () #12 0x00000000004880a0 in ?? () #13 0x00000000004e5ec3 in ?? () #14 0x00007f24cdccfa19 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #15 0x00007f24ce83358b in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #16 0x00007f24ce9304cb in QMainWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #17 0x00007f24d0b72fc7 in KMainWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5 #18 0x00007f24d0bb7485 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5 #19 0x00007f24ce7ec89c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #20 0x00007f24ce7f4296 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #21 0x00007f24cdca3cf8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #22 0x00007f24cdca63bb in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #23 0x00007f24cdcf6e13 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #24 0x00007f24c75261a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #25 0x00007f24c7526400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #26 0x00007f24c75264ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #27 0x00007f24cdcf721f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #28 0x00007f24cdca1cea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #29 0x00007f24cdcaa2fc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #30 0x0000000000433719 in ?? () #31 0x00007f24cd0dc830 in __libc_start_main (main=0x432b40, argc=2, argv=0x7fff39bf8f68, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff39bf8f58) at ../csu/libc-start.c:291 #32 0x00000000004340f9 in _start ()
Still here on master: Thread 1 (Thread 0x7f6a26eb2900 (LWP 4651)): [KCrash Handler] #6 std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x500000001) at /usr/include/c++/4.8/bits/atomic_base.h:496 #7 QAtomicOps<int>::load<int> (_q_value=...) at /usr/include/qt5/QtCore/qatomic_cxx11.h:227 #8 QBasicAtomicInteger<int>::load (this=0x500000001) at /usr/include/qt5/QtCore/qbasicatomic.h:99 #9 QtPrivate::RefCount::ref (this=0x500000001) at /usr/include/qt5/QtCore/qrefcount.h:55 #10 QString::QString (other=..., this=0x2ad1c80) at /usr/include/qt5/QtCore/qstring.h:901 #11 KgpgCore::KgpgKeyPrivate::KgpgKeyPrivate (this=0x2ad1c20, id=..., size=<optimized out>, trust=..., algo=..., subtype=..., keytype=..., creationDate=..., curve=...) at /home/hrvoje/kdesrc/kde/kdeutils/kgpg/core/kgpgkey.cpp:178 #12 0x00000000004393c5 in KgpgCore::KgpgKey::KgpgKey (this=0x7fffae3f9950, id=..., size=2048, trust=..., algo=..., subtype=..., keytype=..., creationDate=..., curve=...) at /home/hrvoje/kdesrc/kde/kdeutils/kgpg/core/kgpgkey.cpp:205 #13 0x00000000004ad9a9 in readPublicKeysProcess (p=..., readNode=readNode@entry=0x0) at /home/hrvoje/kdesrc/kde/kdeutils/kgpg/kgpginterface.cpp:171 #14 0x00000000004b0620 in KgpgInterface::readPublicKeys (ids=...) at /home/hrvoje/kdesrc/kde/kdeutils/kgpg/kgpginterface.cpp:301 #15 0x0000000000441d16 in KGpgRootNode::addKeys (this=0x2960ad0, ids=...) at /home/hrvoje/kdesrc/kde/kdeutils/kgpg/core/KGpgRootNode.cpp:70 #16 0x000000000045508c in KGpgItemModel::refreshAllKeys (this=0x2963f30) at /home/hrvoje/kdesrc/kde/kdeutils/kgpg/model/kgpgitemmodel.cpp:474 #17 0x000000000048afe0 in KeysManager::refreshkey (this=0x2966060) at /home/hrvoje/kdesrc/kde/kdeutils/kgpg/keysmanager.cpp:2648 #18 0x00000000004ec80a in KeysManager::qt_static_metacall (_o=0x2966060, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /home/hrvoje/kdesrc/build/kde/kdeutils/kgpg/kgpg_automoc.dir/moc_keysmanager_JJLQ3BCMM25HUV.cpp:431 #19 0x00007f6a215ba726 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5 #20 0x00007f6a2275fabb in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #21 0x00007f6a2285658b in QMainWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #22 0x00007f6a250cefc7 in KMainWindow::event (this=this@entry=0x2966060, ev=ev@entry=0x2b0e690) at /home/hrvoje/kdesrc/frameworks/kxmlgui/src/kmainwindow.cpp:867 #23 0x00007f6a2510af05 in KXmlGuiWindow::event (this=0x2966060, ev=0x2b0e690) at /home/hrvoje/kdesrc/frameworks/kxmlgui/src/kxmlguiwindow.cpp:118 #24 0x00007f6a2271c21c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #25 0x00007f6a227231a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #26 0x00007f6a21591005 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5 #27 0x00007f6a21593063 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5 #28 0x00007f6a215e0183 in ?? () from /usr/lib64/libQt5Core.so.5 #29 0x00007f6a19b68134 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #30 0x00007f6a19b68388 in ?? () from /usr/lib64/libglib-2.0.so.0 #31 0x00007f6a19b6842c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #32 0x00007f6a215df9cc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5 #33 0x00007f6a2158f2db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5 #34 0x00007f6a215970d6 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5 #35 0x0000000000435ac2 in main (argc=1, argv=<optimized out>) at /home/hrvoje/kdesrc/kde/kdeutils/kgpg/main.cpp:84
Git commit 9f742e350e87618400a815e77b91fddb4220d9b6 by Rolf Eike Beer. Committed on 29/11/2016 at 09:49. Pushed by dakon into branch 'Applications/16.12'. fix crash when GnuPG does not output curve fields for keys FIXED-IN:16.11.90 M +2 -1 kgpginterface.cpp https://commits.kde.org/kgpg/9f742e350e87618400a815e77b91fddb4220d9b6
See also bug 373408
FYI: 16.12.0 crashes at login but can be started fine from the menu AFTER login.
Git commit ac2ca301c6ef2d02810b762c618f1ce504382c4e by Rolf Eike Beer. Committed on 03/01/2017 at 21:47. Pushed by dakon into branch 'Applications/16.12'. fix crash when GnuPG does not output curve fields for keys, take 3 secret keys, it is. Related: bug 374509, bug 373408 FIXED-IN:16.12.1 M +2 -1 kgpginterface.cpp https://commits.kde.org/kgpg/ac2ca301c6ef2d02810b762c618f1ce504382c4e
*** Bug 374587 has been marked as a duplicate of this bug. ***
The error still occurs, so why is the status set to "fixed/resolved"?
I can NOT start it fine from the menu AFTER login.
It is marked as fixed, because the bug at this point was fixed. Sadly, there were 2 more, that also crash the program when loading the keys (sadly I was not able to reproduce any of these crashes, probably because I have a different GnuPG version). The last one is linked in comment 8.
Git commit ac2ca301c6ef2d02810b762c618f1ce504382c4e fixed our kgpg autostart crash. Thank you!