Summary: | crash when closing kleopatra | ||
---|---|---|---|
Product: | [Applications] kleopatra | Reporter: | Martin Koller <kollix> |
Component: | general | Assignee: | Andre Heinecke <aheinecke> |
Status: | ASSIGNED --- | ||
Severity: | crash | CC: | kdepim-bugs, mutz, osfer9111, szotsaki, yescallop, zawertun |
Priority: | NOR | Keywords: | drkonqi |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi More detailed stacktrace from gdb |
Description
Martin Koller
2022-02-25 08:21:39 UTC
Created attachment 149538 [details]
New crash information added by DrKonqi
kleopatra (3.1.21.220401 (22.04.1)) using Qt 5.15.2
- What I was doing when the application crashed:
Choose File > Quit (exit from program).
The backtrace is similar to OP's but complete.
-- Backtrace (Reduced):
#6 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#7 0x00007fdb744a9733 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#8 0x00007fdb744566f6 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#9 0x00007fdb7443f814 in __GI_abort () at abort.c:79
#10 0x00007fdb7443f72b in __assert_fail_base (fmt=<optimized out>, assertion=<optimized out>, file=<optimized out>, line=<optimized out>, function=<optimized out>) at assert.c:92
Created attachment 151494 [details]
New crash information added by DrKonqi
kleopatra (3.1.22.220800 (22.08.0)) using Qt 5.15.5
Kleopatra crashes every time on exit.
-- Backtrace (Reduced):
#9 0x00007f6829aaeb3e in ctx_done (op_err=<optimized out>, status=<optimized out>, ctx=0x7f67f8004df0) at /usr/src/debug/gpgme-1.15.1-6.fc36.x86_64/src/wait-global.c:125
#10 _gpgme_wait_global_event_cb (data=0x7f67f8004df0, type=<optimized out>, type_data=<optimized out>) at /usr/src/debug/gpgme-1.15.1-6.fc36.x86_64/src/wait-global.c:220
#11 0x00007f6829adf9e3 in _gpgme_engine_io_event (type_data=0x7f6807ffe920, type=GPGME_EVENT_DONE, engine=<optimized out>) at /usr/src/debug/gpgme-1.15.1-6.fc36.x86_64/src/engine.c:1064
#12 _gpgme_cancel_with_err (ctx=ctx@entry=0x7f67f8004df0, ctx_err=ctx_err@entry=117440611, op_err=op_err@entry=0) at /usr/src/debug/gpgme-1.15.1-6.fc36.x86_64/src/gpgme.c:193
#13 0x00007f6829adfba4 in gpgme_cancel (ctx=0x7f67f8004df0) at /usr/src/debug/gpgme-1.15.1-6.fc36.x86_64/src/gpgme.c:210
Created attachment 154852 [details]
New crash information added by DrKonqi
kleopatra (3.1.22.220801 (22.08.1)) using Qt 5.15.6
Crashes when closing.
The only error output from launching via terminal: kleopatra: ../../src/wait-global.c:125: ctx_done: Assertion `li' failed.
-- Backtrace (Reduced):
#4 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#5 __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#6 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#7 0x00007f095923bc46 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8 0x00007f09592227fc in __GI_abort () at ./stdlib/abort.c:79
Created attachment 158733 [details]
New crash information added by DrKonqi
kleopatra (3.1.26.230400 (23.04.0)) using Qt 5.15.9
I'm running Kleopatra 3.1.26.230400 with GnuPG 2.4.1, GPGME 1.20.0, and Libgcrypt 1.10.2.
Kleopatra crashes every time when it's shut down via the system tray menu.
I can only reproduce the crash when the `disable-scdaemon` option is enabled in the `gpg-agent.conf`.
I cannot reproduce the crash with GnuPG 2.2.41 (LTS) installed instead.
-- Backtrace (Reduced):
#6 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#7 0x00007fd98da9f2d3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#8 0x00007fd98da4fa08 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#9 0x00007fd98da38538 in __GI_abort () at abort.c:79
#10 0x00007fd98da3845c in __assert_fail_base (fmt=0x7fd98dbb4b08 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7fd98fe9108b "li", file=file@entry=0x7fd98fe9107d "wait-global.c", line=line@entry=125, function=function@entry=0x7fd98fe924e0 <__PRETTY_FUNCTION__.1.lto_priv.1> "ctx_done") at assert.c:92
Created attachment 161240 [details]
New crash information added by DrKonqi
kleopatra (3.1.28.230800 (23.08.0)) using Qt 5.15.10
Crashing on exit....
-- Backtrace (Reduced):
#9 0x00007f68ab180cc5 in _gpgme_wait_global_event_cb () from /lib64/libgpgme.so.11
#10 0x00007f68ab1b3fb4 in _gpgme_cancel_with_err () from /lib64/libgpgme.so.11
#11 0x00007f68ab1b4166 in gpgme_cancel () from /lib64/libgpgme.so.11
#12 0x00007f68ab1eff8c in GpgME::Context::cancelPendingOperationImmediately() () from /lib64/libgpgmepp.so.6
#13 0x0000557b4c973041 in Kleo::DeviceInfoWatcher::Worker::~Worker (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kleopatra-23.08.0-1.fc38.x86_64/src/smartcard/deviceinfowatcher.cpp:37
Created attachment 161241 [details]
More detailed stacktrace from gdb
More detailed stacktrace.
Output from console:
---
org.kde.pim.kleopatra: Running SCD SERIALNO --all failed: Service is not running (code: 318, source: SCD)
org.kde.pim.kleopatra: SmartCardWidget::Private::cardAddedOrChanged: App is not supported
kleopatra: wait-global.c:125: ctx_done: Assertion `li' failed.
KCrash: Application 'kleopatra' crashing...
The Wayland connection experienced a fatal error: Bad file descriptor
---
I think that this line is interesting: `kleopatra: wait-global.c:125: ctx_done: Assertion `li' failed.`
Gpgme line where assert is triggered: https://github.com/gpg/gpgme/blob/3f297387bf401475385c458e4d1d95b3eefaf3d8/src/wait-global.c#L125C3-L125C15 Thanks for the detailed update. Looking into it. I added a tracking task in our GnuPG dev tracker. https://dev.gnupg.org/T6688 since this is mostly a GPGME issue. I hope to remember to close this as "Resoived upstream" once we have a fix. |