Kleopatra: Crash on Quit
Closed, ResolvedPublic

Assigned To
Authored By
• ebo
Oct 31 2024, 10:00 AM
Tags

Description

When quitting Kleopatra it always crashes. You need only to start Kleopatra and close it again, no additional prerequisites.

This is debugview log starting from clicking "Quit":

0.000000	2024/10/31 09:36:17.417	4968	kleopatra.exe	org.kde.pim.kleopatra:
0.044631	2024/10/31 09:36:17.462	4968	kleopatra.exe	org.kde.pim.kleopatra: ReaderStatusThread[2nd]: new iteration command= "__quit__"  ; nullSlot= true
0.052012	2024/10/31 09:36:17.463	4968	kleopatra.exe	Please call QDesktopServices::unsetUrlHandler() before destroying a registered URL handler object.
0.052012	2024/10/31 09:36:17.463	4968	kleopatra.exe	Support for destroying a registered URL handler object is deprecated, and will be removed in Qt 6.6.
1.300210	2024/10/31 09:36:18.703	4968	kleopatra.exe	<process started at 09:36:01.399 has terminated with 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)>

Here are parallel logs from debugview and gpgme, both from start to quit:

Details

Version
Gpg4win-Beta-70

Revisions and Commits

Event Timeline

• ebo triaged this task as High priority.Nov 4 2024, 11:30 AM
• ebo added a project: vsd33.
• ebo added a project: Restricted Project.

Looking at the Windows "Problem reports" I saw that it lists many crashes of Kleopatra since 2024-06-19. An older Kleopatra (gpg4win-4.3.2-beta15, built on 2024-04-16) does not crash on exit. The next Kleopatra (gpg4win-4.3.2-beta23, built on 2024-07-05) does crash on exit. The reports point to the libkleo DLL.

• ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Nov 5 2024, 1:11 PM
• ikloecker changed the task status from Open to Testing.Nov 5 2024, 1:12 PM
• ikloecker moved this task from Backlog to WiP on the vsd33 board.

Fixed and backported for VSD 3.3

• ebo moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Nov 8 2024, 2:09 PM
• ebo moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.

Gpg4win-Beta-75:
Looks good, I see no "EXCEPTION_ACCESS_VIOLATION" after quitting any more.
Instead only: "process started at 14:11:03.007 has terminated with exit code 0"

• ebo edited projects, added vsd33 (vsd-3.3.0); removed vsd33.