saturneric / GpgFrontend

A free, open-source, robust yet user-friendly, compact and cross-platform tool for OpenPGP encryption. It stands out as an exceptional GUI frontend for the modern GnuPG (gpg).
https://gpgfrontend.bktus.com
GNU General Public License v3.0
473 stars 46 forks source link

GpgFrontend 2.1.3 crashes upon start on macOS Ventura 13.6.7 #161

Closed herrep closed 1 month ago

herrep commented 1 month ago

Hi,

After having installed gnupg 2.4.5 and the gpgfrontend 2.1.3 cask via homebrew on macOS 13.6.7, I encountered a crash of GpgFrontend right after its start without issuing any further information besides the crash report:

Process:               GpgFrontend [20215]
Path:                  /Applications/GpgFrontend.app/Contents/MacOS/GpgFrontend
Identifier:            com.bktus.gpgfrontend
Version:               2.1.3 (2.1.3)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               502

Date/Time:             2024-07-05 19:13:16.8673 +0200
OS Version:            macOS 13.6.7 (22G720)
Report Version:        12

Time Awake Since Boot: 190000 seconds
Time Since Wake:       2742 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   GpgFrontend [20215]

Application Specific Information:
abort() called

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib              0x7ff8155f4196 __pthread_kill + 10
1   libsystem_pthread.dylib             0x7ff81562bee6 pthread_kill + 263
2   libsystem_c.dylib                   0x7ff815552b45 abort + 123
3   QtCore                                 0x106569c07 qAbort() + 9
4   QtCore                                 0x10656c694 qt_message(QtMsgType, QMessageLogContext const&, char const*, __va_list_tag*) + 99
5   QtCore                                 0x1067baa10 QMessageLogger::fatal(char const*, ...) const + 122
6   QtGui                                  0x105900841 QGuiApplicationPrivate::createPlatformIntegration() + 8731
7   QtGui                                  0x105900899 QGuiApplicationPrivate::createEventDispatcher() + 27
8   QtCore                                 0x1065bd512 QCoreApplicationPrivate::init() + 528
9   QtGui                                  0x1058fbe13 QGuiApplicationPrivate::init() + 43
10  QtWidgets                              0x104b15cd0 QApplicationPrivate::init() + 34
11  GpgFrontend                            0x10393be30 0x103932000 + 40496
12  GpgFrontend                            0x103954285 0x103932000 + 139909
13  dyld                                0x7ff8152d141f start + 1903

Thread 1:
0   libsystem_pthread.dylib             0x7ff815627bb0 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib             0x7ff815627bb0 start_wqthread + 0

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007ff858d05a80  rcx: 0x00007ff7bc5ccfb8  rdx: 0x0000000000000000
  rdi: 0x0000000000000103  rsi: 0x0000000000000006  rbp: 0x00007ff7bc5ccfe0  rsp: 0x00007ff7bc5ccfb8
   r8: 0x00007ff858d0d158   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x0000000000000246
  r12: 0x0000000000000103  r13: 0x00006000026d6568  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: 0x00007ff8155f4196  rfl: 0x0000000000000246  cr2: 0x0000000000000000

Logical CPU:     0
Error Code:      0x02000148 
Trap Number:     133

Binary Images:
       0x103932000 -        0x103c39fff com.bktus.gpgfrontend (2.1.3) <98748e29-8dd5-3d82-950e-ef31a83fe34b> /Applications/GpgFrontend.app/Contents/MacOS/GpgFrontend
       0x103e25000 -        0x103f68fff libgpgfrontend_ui.dylib (*) <dcc1b860-d78d-3717-9e53-5f84a93b1d4b> /Applications/GpgFrontend.app/Contents/Frameworks/libgpgfrontend_ui.dylib
       0x103fb5000 -        0x104064fff libgpgfrontend_test.dylib (*) <4aa3d5d3-e296-345a-8f81-3d12ce6f24fe> /Applications/GpgFrontend.app/Contents/Frameworks/libgpgfrontend_test.dylib
       0x104283000 -        0x10438afff org.qt-project.QtNetwork (6.7) <4a91be5a-41ef-35fd-a21d-dd5307e7457f> /usr/local/Cellar/qt/6.7.0_1/lib/QtNetwork.framework/Versions/A/QtNetwork
       0x103d1a000 -        0x103d59fff org.qt-project.QtPrintSupport (6.7) <1c31db4f-9e98-375d-9b02-cedd84f30541> /usr/local/Cellar/qt/6.7.0_1/lib/QtPrintSupport.framework/Versions/A/QtPrintSupport
       0x103cc1000 -        0x103cd0fff libgpgfrontend_pinentry.dylib (*) <6f81be99-1f62-32f6-9e3f-d6ca3f4b6a48> /Applications/GpgFrontend.app/Contents/Frameworks/libgpgfrontend_pinentry.dylib
       0x104b0e000 -        0x104f1dfff org.qt-project.QtWidgets (6.7) <87e81a83-7477-3302-9d48-36134ff4cf1c> /usr/local/Cellar/qt/6.7.0_1/lib/QtWidgets.framework/Versions/A/QtWidgets
       0x105899000 -        0x105cf4fff org.qt-project.QtGui (6.7) <1ca532aa-18f5-3886-a5b2-633677ee30dc> /usr/local/Cellar/qt/6.7.0_1/lib/QtGui.framework/Versions/A/QtGui
       0x1051b6000 -        0x105395fff com.apple.Metal (306.7.5) <6581cd53-8583-38d1-b4b9-773f1dc3f551> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
       0x104467000 -        0x104572fff libgpgfrontend_core.dylib (*) <38a84aff-d48f-3ec2-b91b-494966a90ad5> /Applications/GpgFrontend.app/Contents/Frameworks/libgpgfrontend_core.dylib
       0x106551000 -        0x10690cfff org.qt-project.QtCore (6.7) <610ef38f-746d-3c13-843f-212c38104751> /usr/local/Cellar/qt/6.7.0_1/lib/QtCore.framework/Versions/A/QtCore
       0x1040a5000 -        0x1040dcfff libgpgme.11.dylib (*) <e43d9a0a-a754-3032-a719-321902b1d8bf> /Applications/GpgFrontend.app/Contents/Frameworks/libgpgme.11.dylib
       0x103ced000 -        0x103cf8fff libassuan.0.dylib (*) <e04a2252-9d0d-39ac-918b-3e03f74515d1> /Applications/GpgFrontend.app/Contents/Frameworks/libassuan.0.dylib
       0x103dcd000 -        0x103de8fff libgpg-error.0.dylib (*) <9b7035ef-8f19-3dcb-88ac-1b5e9e64ed0b> /Applications/GpgFrontend.app/Contents/Frameworks/libgpg-error.0.dylib
       0x1041ba000 -        0x104241fff libssl.3.dylib (*) <c1f0332d-96d1-3aee-a487-a3a661f79d97> /Applications/GpgFrontend.app/Contents/Frameworks/libssl.3.dylib
       0x105f89000 -        0x1062c4fff libcrypto.3.dylib (*) <000917f1-a2c1-3323-8912-a5e97cd2025d> /Applications/GpgFrontend.app/Contents/Frameworks/libcrypto.3.dylib
       0x103d9e000 -        0x103da9fff libbrotlidec.1.1.0.dylib (*) <12909dd8-f12a-3752-806c-e667a56a88cf> /usr/local/Cellar/brotli/1.1.0/lib/libbrotlidec.1.1.0.dylib
       0x1045cf000 -        0x104676fff libzstd.1.5.6.dylib (*) <b2135b07-1f88-37e1-90a0-a32958e4e11f> /usr/local/Cellar/zstd/1.5.6/lib/libzstd.1.5.6.dylib
       0x106b1d000 -        0x106ca4fff libicui18n.74.2.dylib (*) <106bc0c3-d485-31c0-b211-1bcba61304ae> /usr/local/Cellar/icu4c/74.2/lib/libicui18n.74.2.dylib
       0x104839000 -        0x104964fff libicuuc.74.2.dylib (*) <06059c7a-235d-3218-9753-7dcfbf3d5d2e> /usr/local/Cellar/icu4c/74.2/lib/libicuuc.74.2.dylib
       0x108b2e000 -        0x10a88dfff libicudata.74.2.dylib (*) <75514a4a-547f-38fd-9a55-41554bc7a521> /usr/local/Cellar/icu4c/74.2/lib/libicudata.74.2.dylib
       0x1049e9000 -        0x104ad4fff libglib-2.0.0.dylib (*) <9bf2aa95-3b69-34eb-81df-788ec62e1ccd> /usr/local/Cellar/glib/2.80.3/lib/libglib-2.0.0.dylib
       0x103dfd000 -        0x103e08fff libdouble-conversion.3.3.0.dylib (*) <59434db2-7e54-37f4-b1b3-d5a04fb874fd> /usr/local/Cellar/double-conversion/3.3.0/lib/libdouble-conversion.3.3.0.dylib
       0x1040f5000 -        0x10410afff libb2.1.dylib (*) <40b58772-8639-3ea0-acd1-e738af76c509> /usr/local/Cellar/libb2/0.98.1/lib/libb2.1.dylib
       0x10468f000 -        0x10470afff libpcre2-16.0.dylib (*) <1093ebd1-8e88-3c21-85c1-7a7ecb7feedc> /usr/local/Cellar/pcre2/10.44/lib/libpcre2-16.0.dylib
       0x103ca0000 -        0x103ca3fff libgthread-2.0.0.dylib (*) <2d07aab1-db7b-31a7-8296-ac3714e8b3e9> /usr/local/Cellar/glib/2.80.3/lib/libgthread-2.0.0.dylib
       0x10a892000 -        0x10a8d9fff libllvm-flatbuffers.dylib (*) <d5cf0007-b92a-3d76-9549-1fb7bc428091> /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/libllvm-flatbuffers.dylib
       0x184336000 -        0x184339fff libGPUCompilerUtils.dylib (*) <d5cf0007-b778-37c5-917b-186e88376470> /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/libGPUCompilerUtils.dylib
       0x104132000 -        0x104149fff libintl.8.dylib (*) <62eaae82-cc20-36e7-84e1-873459bc4e8f> /usr/local/Cellar/gettext/0.22.5/lib/libintl.8.dylib
       0x1047a7000 -        0x10482afff libpcre2-8.0.dylib (*) <637726ac-4b9f-3dce-83ba-9ad1c3930c48> /usr/local/Cellar/pcre2/10.44/lib/libpcre2-8.0.dylib
       0x10417f000 -        0x10419efff libbrotlicommon.1.1.0.dylib (*) <6fca1963-9fa4-3400-944a-c1f6f7084ca1> /usr/local/Cellar/brotli/1.1.0/lib/libbrotlicommon.1.1.0.dylib
       0x1063b5000 -        0x106428fff org.qt-project.QtDBus (6.7) <14a6c134-bff9-31f9-84bb-875991b900b2> /usr/local/Cellar/qt/6.7.0_1/lib/QtDBus.framework/Versions/A/QtDBus
       0x104746000 -        0x104769fff libpng16.16.dylib (*) <c30ce1c8-5e3c-397b-a009-8ceebc8538db> /usr/local/Cellar/libpng/1.6.43/lib/libpng16.16.dylib
       0x106dcd000 -        0x106e88fff libharfbuzz.0.dylib (*) <ab042fc3-c18c-39eb-afb3-b748bdc4505a> /usr/local/Cellar/harfbuzz/8.5.0/lib/libharfbuzz.0.dylib
       0x103db6000 -        0x103dc1fff libmd4c.0.5.2.dylib (*) <a8976492-67b2-30f9-9009-b6edc2720565> /usr/local/Cellar/md4c/0.5.2/lib/libmd4c.0.5.2.dylib
       0x105771000 -        0x1057f4fff libfreetype.6.dylib (*) <55e45315-cb1f-3acc-9862-d9c44463a59d> /usr/local/Cellar/freetype/2.13.2/lib/libfreetype.6.dylib
       0x105718000 -        0x105747fff libdbus-1.3.dylib (*) <17f883e5-399b-30a4-abbe-2a6da2ad7c2e> /usr/local/Cellar/dbus/1.14.10/lib/libdbus-1.3.dylib
       0x104156000 -        0x10416bfff libgraphite2.3.2.1.dylib (*) <456fa518-5038-36d4-90cf-96f67d85eb1c> /usr/local/Cellar/graphite2/1.3.14/lib/libgraphite2.3.2.1.dylib
       0x104776000 -        0x10478dfff libintl.8.dylib (*) <62535c78-da0c-3e89-86c9-f4f27ce1e9b1> /Applications/GpgFrontend.app/Contents/Frameworks/libintl.8.dylib
       0x1064a5000 -        0x1064bcfff com.apple.security.csparser (3.0) <bca5c23c-1bf7-3d0b-85a3-2e32411953d1> /System/Library/Frameworks/Security.framework/Versions/A/PlugIns/csparser.bundle/Contents/MacOS/csparser
    0x7ff8155ec000 -     0x7ff815625fff libsystem_kernel.dylib (*) <e82b6d50-ac03-370d-a74d-eb1a2725b6c5> /usr/lib/system/libsystem_kernel.dylib
    0x7ff815626000 -     0x7ff815631fff libsystem_pthread.dylib (*) <60b15e1f-39ea-33a1-8616-3af57dc1094a> /usr/lib/system/libsystem_pthread.dylib
    0x7ff8154d3000 -     0x7ff81555aff7 libsystem_c.dylib (*) <a720129c-c1cf-3e62-9d76-aa6fa0d31333> /usr/lib/system/libsystem_c.dylib
    0x7ff8152cb000 -     0x7ff8153635ef dyld (*) <2faf54fd-58e6-360c-9bd8-2fbfe8be93d3> /usr/lib/dyld

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=475.2M resident=0K(0%) swapped_out_or_unallocated=475.2M(100%)
Writable regions: Total=4.3G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=4.3G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Kernel Alloc Once                    8K        1 
MALLOC                           164.7M       23 
MALLOC guard page                   16K        4 
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.0M        3 
Stack                             9240K        4 
VM_ALLOCATE                          8K        2 
VM_ALLOCATE (reserved)             3.8G        4         reserved VM address space (unallocated)
__DATA                            15.0M      312 
__DATA_CONST                      14.6M      214 
__DATA_DIRTY                       623K       95 
__FONT_DATA                        2352        1 
__LINKEDIT                       186.4M       42 
__OBJC_RO                         66.3M        1 
__OBJC_RW                         2011K        2 
__TEXT                           288.9M      331 
dyld private memory                260K        2 
mapped file                       38.4M        7 
shared memory                      600K        8 
===========                     =======  ======= 
TOTAL                              5.0G     1058 
TOTAL, minus reserved VM space   843.1M     1058 
saturneric commented 1 month ago

The issue could be related to two unintentional initializations, and as of right now there aren't any other clues based on the stack information in the logs provided. It is possible that this issue will be resolved in version 2.1.4.

I'm going to close this Issue for now, but feel free to open it if I continue to encounter this issue in the future.