Page MenuHome GnuPG

Kleopatra: Crash on key generation
Closed, InvalidPublic

Description

On gpg4win-5.1.0-beta646 @ win11 Kleopatra crashes on key generation (default values).

debugview (only last line generated on key generation)

54	10.615745	9108	kleopatra.exe	org.kde.pim.libkleo: Keycache available.
55	10.615974	9108	kleopatra.exe	org.kde.pim.libkleo: Reloading keycache with remarks enabled
56	10.616085	9108	kleopatra.exe	org.kde.pim.libkleo: Kleo::KeyCache(0x24ea70d6dd0) reload option: 0
57	10.617356	9108	kleopatra.exe	org.kde.pim.libkleo: KeyCache::RefreshKeysJob start
58	10.617812	9108	kleopatra.exe	org.kde.pim.kleopatra: onUpdateCardsStarted
59	10.617983	9108	kleopatra.exe	org.kde.pim.kleopatra: Kleo::Command(0x24ea795f030) ~Command
60	10.618068	9108	kleopatra.exe	org.kde.pim.kleopatra: Kleo::Command(0x24ea795f030) ~Private
61	10.682744	9108	kleopatra.exe	org.kde.pim.libkleo: sendCommand "SCD SERIALNO --all" failed: "Service is not running" (code: 318, source: SCD)
62	10.682819	9108	kleopatra.exe	org.kde.pim.libkleo: sendStatusLinesCommand "SCD SERIALNO --all" : t == NULL
63	10.682878	9108	kleopatra.exe	org.kde.pim.kleopatra: Running SCD SERIALNO --all failed: "Service is not running" (code: 318, source: SCD)
64	10.682946	9108	kleopatra.exe	org.kde.pim.kleopatra: ReaderStatusThread: Card "" with app "" was added
65	10.683519	9108	kleopatra.exe	org.kde.pim.kleopatra: ReaderStatusThread[2nd]: waiting for commands
66	10.683627	9108	kleopatra.exe	org.kde.pim.kleopatra: onUpdateFinished
67	10.762160	9108	kleopatra.exe	org.kde.pim.libkleo: Kleo::KeyCache::RefreshKeysJob(0x24eaa0f01e0) RefreshKeysJob::done
68	10.763081	9108	kleopatra.exe	org.kde.pim.libkleo: Kleo::FileSystemWatcher(0x24ea711aa20) - checking for new files in "C:/Users/g10/AppData/Roaming/gnupg"
69	10.763774	9108	kleopatra.exe	org.kde.pim.libkleo: Kleo::FileSystemWatcher(0x24ea711aa20) - checking for new files in "C:/Users/g10/AppData/Roaming/gnupg/private-keys-v1.d"
70	10.764156	9108	kleopatra.exe	org.kde.pim.libkleo: Kleo::FileSystemWatcher(0x24ea711aa20) - checking for new files in "C:/Users/g10/AppData/Roaming/gnupg/public-keys.d"
71	10.764745	9108	kleopatra.exe	org.kde.pim.libkleo: readGroups Reading groups
72	41.586625	9108	kleopatra.exe	<process started at 14:36:50.238 has terminated with 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)>

gdb

warning: org.kde.pim.libkleo: Kleo::KeyCache::RefreshKeysJob(0x6712780) RefreshKeysJob::done
[Thread 3344.0x528 exited with code 0]
[New Thread 3344.0x5a8]
warning: org.kde.pim.libkleo: Kleo::FileSystemWatcher(0x271e870) - checking for new files in "C:/Users/g10/AppData/Roaming/gnupg"
warning: org.kde.pim.libkleo: Kleo::FileSystemWatcher(0x271e870) - checking for new files in "C:/Users/g10/AppData/Roaming/gnupg/private-keys-v1.d"
warning: org.kde.pim.libkleo: Kleo::FileSystemWatcher(0x271e870) - checking for new files in "C:/Users/g10/AppData/Roaming/gnupg/public-keys.d"
warning: org.kde.pim.libkleo: readGroups Reading groups
[Thread 3344.0x4dc exited with code 0]
[Thread 3344.0x5fc exited with code 0]

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ff6e0e6403d in ?? ()
(gdb) bt
#0  0x00007ff6e0e6403d in ?? ()
#1  0x00007ffca32e0835 in QMetaCallEvent::placeMetaCall(QObject*) () from C:\Program Files\Gpg4win\bin\Qt6Core.dll
#2  0x00007ffca32e4fdb in QObject::event(QEvent*) () from C:\Program Files\Gpg4win\bin\Qt6Core.dll
#3  0x00007ffca2b758cc in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from C:\Program Files\Gpg4win\bin\Qt6Widgets.dll
#4  0x00007ffca32a56a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from C:\Program Files\Gpg4win\bin\Qt6Core.dll
#5  0x00007ffca32a9478 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from C:\Program Files\Gpg4win\bin\Qt6Core.dll
#6  0x00007ffca24ba832 in QWindowsGuiEventDispatcher::sendPostedEvents() ()
   from C:\Program Files\Gpg4win\bin\Qt6Gui.dll
#7  0x00007ffca3462cfc in QEventDispatcherWin32::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from C:\Program Files\Gpg4win\bin\Qt6Core.dll
#8  0x00007ffca24ba809 in QWindowsGuiEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from C:\Program Files\Gpg4win\bin\Qt6Gui.dll
#9  0x00007ffca32b0825 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from C:\Program Files\Gpg4win\bin\Qt6Core.dll
#10 0x00007ffca32ae8b6 in QCoreApplication::exec() () from C:\Program Files\Gpg4win\bin\Qt6Core.dll
#11 0x00007ff6e1067cb2 in ?? ()
#12 0x00007ff6e10bf615 in ?? ()
#13 0x00007ff6e0da12ee in ?? ()
#14 0x00007ff6e0da13e6 in ?? ()
#15 0x00007ffcec2fe957 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
#16 0x00007ffcec907c1c in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
#17 0x0000000000000000 in ?? ()

event viewer

Faulting application name: kleopatra.exe, version: 5.1.0.0, time stamp: 0x6a2a9c4d
Faulting module name: kleopatra.exe, version: 5.1.0.0, time stamp: 0x6a2a9c4d
Exception code: 0xc0000005
Fault offset: 0x00000000000c403d
Faulting process id: 0x2384
Faulting application start time: 0x1DD0AEA4C61FB84
Faulting application path: C:\Program Files\Gpg4win\bin\kleopatra.exe
Faulting module path: C:\Program Files\Gpg4win\bin\kleopatra.exe
Report Id: b3a96f51-9527-46ae-afc9-37df03ce52a8
Faulting package full name: 
Faulting package-relative application ID:

Details

Version
gpg4win-5.1.0-beta646 @ win11

Event Timeline

timegrid triaged this task as High priority.Fri, Jul 3, 2:57 PM
timegrid created this task.
timegrid created this object with edit policy "Contributor (Project)".

I tested the wrong version, setting this to invalid. Key generation does work in the current beta.