Bug 457423

Summary: Kgpg crash on start up
Product: [Applications] kgpg Reporter: Steven <steven.chenmy>
Component: generalAssignee: Rolf Eike Beer <kde>
Status: RESOLVED WORKSFORME    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version First Reported In: 22.04.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Steven 2022-08-02 19:40:09 UTC
Application: kgpg (22.04.1)

Qt Version: 5.15.5
Frameworks Version: 5.96.0
Operating System: Linux 5.18.13-200.fc36.x86_64 x86_64
Windowing System: X11
Distribution: Fedora Linux 36 (KDE Plasma)
DrKonqi: 5.25.3 [KCrashBackend]

-- Information about the crash:
Kgpg crashed on a cold start. crash message appear after login and splash screen.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: KGpg (kgpg), signal: Aborted

[KCrash Handler]
#4  0x00007ff5be816c4c in __pthread_kill_implementation () from /lib64/libc.so.6
#5  0x00007ff5be7c69c6 in raise () from /lib64/libc.so.6
#6  0x00007ff5be7b07f4 in abort () from /lib64/libc.so.6
#7  0x00007ff5bd7b7c92 in _dbus_abort.cold () from /lib64/libdbus-1.so.3
#8  0x00007ff5bd7de810 in _dbus_warn_check_failed () from /lib64/libdbus-1.so.3
#9  0x00007ff5c00f8871 in QDBusConnectionPrivate::getNameOwnerNoCache(QString const&) () from /lib64/libQt5DBus.so.5
#10 0x00007ff5c00fab3b in QDBusConnectionPrivate::addSignalHook(QString const&, QDBusConnectionPrivate::SignalHook const&) () from /lib64/libQt5DBus.so.5
#11 0x00007ff5c00fbac1 in QtPrivate::QSlotObject<bool (QDBusConnectionPrivate::*)(QString const&, QDBusConnectionPrivate::SignalHook const&), QtPrivate::List<QString const&, QDBusConnectionPrivate::SignalHook const&>, bool>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) () from /lib64/libQt5DBus.so.5
#12 0x00007ff5beeb22c4 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#13 0x00007ff5bee8820b in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#14 0x00007ff5bee8b594 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#15 0x00007ff5beed9467 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#16 0x00007ff5bcda6faf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#17 0x00007ff5bcdfc2c8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#18 0x00007ff5bcda4940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#19 0x00007ff5beed8f5a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#20 0x00007ff5bee86c7a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#21 0x00007ff5becc718a in QThread::exec() () from /lib64/libQt5Core.so.5
#22 0x00007ff5c00e5b1b in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#23 0x00007ff5becc8487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#24 0x00007ff5be814e2d in start_thread () from /lib64/libc.so.6
#25 0x00007ff5be89a1b0 in clone3 () from /lib64/libc.so.6

Thread 2 (Thread 0x7ff5ac040640 (LWP 2315) "QXcbEventQueue"):
#1  0x00007ff5bd785fba in _xcb_conn_wait.part.0 () from /lib64/libxcb.so.1
#2  0x00007ff5bd78794c in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007ff5ac17ce61 in QXcbEventQueue::run() () from /lib64/libQt5XcbQpa.so.5
#4  0x00007ff5becc8487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007ff5be814e2d in start_thread () from /lib64/libc.so.6
#6  0x00007ff5be89a1b0 in clone3 () from /lib64/libc.so.6

Thread 1 (Thread 0x7ff5b9845980 (LWP 2165) "kgpg"):
#1  0x00007ff5becca30b in QSemaphore::acquire(int) () from /lib64/libQt5Core.so.5
#2  0x00007ff5beebb9b9 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#3  0x00007ff5c0142897 in QDBusConnectionPrivate::signalNeedsConnecting(QString const&, QDBusConnectionPrivate::SignalHook const&) () from /lib64/libQt5DBus.so.5
#4  0x00007ff5c00f006a in QDBusConnectionPrivate::connectRelay(QString const&, QString const&, QString const&, QDBusAbstractInterface*, QMetaMethod const&) () from /lib64/libQt5DBus.so.5
#5  0x00007ff5beeb36b2 in QMetaObjectPrivate::connect(QObject const*, int, QMetaObject const*, QObject const*, int, QMetaObject const*, int, int*) () from /lib64/libQt5Core.so.5
#6  0x00007ff5beeb7047 in QObject::connect(QObject const*, char const*, QObject const*, char const*, Qt::ConnectionType) () from /lib64/libQt5Core.so.5
#7  0x00007ff5ab5af0f7 in QIBusPlatformInputContext::connectToContextSignals() () from /usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
#8  0x00007ff5ab5b3442 in QIBusPlatformInputContext::connectToBus() () from /usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
#9  0x00007ff5beebba4f in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#10 0x00007ff5beebec5e in QTimer::timeout(QTimer::QPrivateSignal) () from /lib64/libQt5Core.so.5
#11 0x00007ff5beeb2155 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#12 0x00007ff5bf943d22 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#13 0x00007ff5bee88228 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#14 0x00007ff5beed82e1 in QTimerInfoList::activateTimers() () from /lib64/libQt5Core.so.5
#15 0x00007ff5beed8bbc in timerSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#16 0x00007ff5bcda6faf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#17 0x00007ff5bcdfc2c8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#18 0x00007ff5bcda4940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#19 0x00007ff5beed8f5a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#20 0x00007ff5bee86c7a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#21 0x00007ff5bee8ed42 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#22 0x0000561aa29c7fb1 in main ()
[Inferior 1 (process 2165) detached]

Reported using DrKonqi
Comment 1 Rolf Eike Beer 2022-08-04 06:31:05 UTC
The reason for this crash seems to be:

#7  0x00007ff5bd7b7c92 in _dbus_abort.cold () from /lib64/libdbus-1.so.3
#8  0x00007ff5bd7de810 in _dbus_warn_check_failed () from /lib64/libdbus-1.so.3

So the setup of the DBus connection causes libdbus-1 to abort the program. I guess there would be some sort of warning message if you would run this from a terminal window, which may give a hint what's going wrong in the first place.

At the end this is very likely some issue with the session setup, and in the more unlikely case that this is a code error it comes from either the KF5 libs or Qt. If you can find out what DBus complains about we may be able to reopen and move it to a different component, but for the moment there is nothing I can do from KGpg side.