maxgoedjen / secretive

Store SSH keys in the Secure Enclave
MIT License
6.99k stars 155 forks source link

Loss of all SSH keys, and immediate crash when trying to create a new secret #550

Open delfuego opened 1 month ago

delfuego commented 1 month ago

I updated my MacBook Pro to macOS 14.5, and now, I seem to have (a) lost all my existing SSH keys in Secretive, and (b) get an immediate Secretive crash when trying to create new ones. I'm running Secretive 2.4.1, and have been since January-ish.

When I launch Secretive, I see "No Secrets" under the "Secure Enclave" listing in the sidebar, despite having at least 2-3 keys that I've been regularly using prior to the 14.5 update.

And when I click the + icon to create a new key, I am asked which type (authenticate or notify) and for a name, and then clicking the "Create" button causes an immediate, 100%-reproducible crash of the Secretive app. If I choose "Report" to the crash notice, below is the information it shows me. Please let me know if anything else could be of use to help track down what might have happened!

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Secretive [74786]
Path:                  /Applications/Secretive.app/Contents/MacOS/Secretive
Identifier:            com.maxgoedjen.Secretive.Host
Version:               2.4.1 (1.7648958148)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               1020875348

Date/Time:             2024-05-20 11:24:02.2153 -0400
OS Version:            macOS 14.5 (23F79)
Report Version:        12
Anonymous UUID:        B21C0199-06DB-3E9E-00E5-FBA33E608527

Sleep/Wake UUID:       331C07F1-AC9A-41A0-B9F6-F9BB611B7283

Time Awake Since Boot: 55000 seconds
Time Since Wake:       10186 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x00000001aba6dee0

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [74786]

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libswiftCore.dylib                     0x1aba6dee0 _assertionFailure(_:_:file:line:flags:) + 268
1   libswiftCore.dylib                     0x1abadbe74 swift_unexpectedError + 668
2   Secretive                              0x102bf3c30 CreateSecretView.save() + 552
3   Secretive                              0x102bf8eec partial apply for implicit closure #2 in implicit closure #1 in closure #2 in closure #1 in CreateSecretView.body.getter + 32
4   SwiftUI                                0x1c8ef72d8 0x1c76dc000 + 25277144
5   SwiftUI                                0x1c87aa04c 0x1c76dc000 + 17621068
6   SwiftUI                                0x1c87c7434 0x1c76dc000 + 17740852
7   SwiftUI                                0x1c86379a4 0x1c76dc000 + 16103844
8   SwiftUI                                0x1c8ee4f04 0x1c76dc000 + 25202436
9   SwiftUI                                0x1c8ee457c 0x1c76dc000 + 25199996
10  SwiftUI                                0x1c87b0420 0x1c76dc000 + 17646624
11  SwiftUI                                0x1c87b0514 0x1c76dc000 + 17646868
12  AppKit                                 0x19f84e0e8 -[NSApplication(NSResponder) sendAction:to:from:] + 460
13  AppKit                                 0x19fbcc230 __40-[NSControl _sendActionsForEvents:view:]_block_invoke + 216
14  AppKit                                 0x19fbcc108 -[NSControl _sendActionsForEvents:view:] + 216
15  AppKit                                 0x19f84b2f0 NSControlTrackMouse + 1616
16  AppKit                                 0x19f84ac74 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 144
17  AppKit                                 0x19f84ab2c -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 488
18  AppKit                                 0x19f84a000 -[NSControl mouseDown:] + 448
19  AppKit                                 0x19f848dcc -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 3472
20  AppKit                                 0x19f7d440c -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 288
21  AppKit                                 0x19f7d4118 -[NSWindow(NSEventRouting) sendEvent:] + 284
22  AppKit                                 0x19fe9c828 -[NSApplication(NSEventRouting) sendEvent:] + 1604
23  AppKit                                 0x19faea89c -[NSApplication _handleEvent:] + 60
24  AppKit                                 0x19f69b0c0 -[NSApplication run] + 512
25  AppKit                                 0x19f6722e0 NSApplicationMain + 880
26  SwiftUI                                0x1c77e6474 0x1c76dc000 + 1090676
27  SwiftUI                                0x1c7f4fe88 0x1c76dc000 + 8863368
28  SwiftUI                                0x1c834aeb8 0x1c76dc000 + 13037240
29  Secretive                              0x102c0aa14 main + 160
30  dyld                                   0x19b9e20e0 start + 2360

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

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

Thread 3::  Dispatch queue: la_client
0   libsystem_kernel.dylib                 0x19bd2be78 __getdirentries64 + 8
1   libsystem_c.dylib                      0x19bc518d8 _readdir_unlocked + 208
2   libsystem_c.dylib                      0x19bc519cc readdir + 44
3   CoreFoundation                         0x19bde3028 _CFIterateDirectory + 144
4   CoreFoundation                         0x19bde276c _CFBundleGetBundleVersionForURL + 420
5   CoreFoundation                         0x19bedda5c _CFBundleCreate + 284
6   Foundation                             0x19cf28800 -[NSBundle _cfBundle] + 76
7   Foundation                             0x19cf4a9f0 -[NSBundle localizedStringForKey:value:table:] + 36
8   SharedUtils                            0x1b1b7367c +[LAErrorHelper localizedStringForError:] + 940
9   SharedUtils                            0x1b1b6f234 +[LAErrorHelper errorWithCode:message:moreInfo:] + 116
10  LocalAuthentication                    0x1b1b354d4 -[LAClient _serializedInvalidateWithMessage:] + 80
11  LocalAuthentication                    0x1b1b35420 __34-[LAClient invalidateWithMessage:]_block_invoke + 40
12  libdispatch.dylib                      0x19bbb8750 _dispatch_call_block_and_release + 32
13  libdispatch.dylib                      0x19bbba3e8 _dispatch_client_callout + 20
14  libdispatch.dylib                      0x19bbbd8ec _dispatch_continuation_pop + 600
15  libdispatch.dylib                      0x19bbbcf08 _dispatch_async_redirect_invoke + 584
16  libdispatch.dylib                      0x19bbcbea8 _dispatch_root_queue_drain + 392
17  libdispatch.dylib                      0x19bbcc6b8 _dispatch_worker_thread2 + 156
18  libsystem_pthread.dylib                0x19bd66fd0 _pthread_wqthread + 228
19  libsystem_pthread.dylib                0x19bd65d28 start_wqthread + 8

Thread 4:: com.apple.NSEventThread
0   libsystem_kernel.dylib                 0x19bd2a1f4 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x19bd3cb24 mach_msg2_internal + 80
2   libsystem_kernel.dylib                 0x19bd32e34 mach_msg_overwrite + 476
3   libsystem_kernel.dylib                 0x19bd2a578 mach_msg + 24
4   CoreFoundation                         0x19be4a680 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                         0x19be48f44 __CFRunLoopRun + 1208
6   CoreFoundation                         0x19be48434 CFRunLoopRunSpecific + 608
7   AppKit                                 0x19f7d2188 _NSEventThread + 144
8   libsystem_pthread.dylib                0x19bd6af94 _pthread_start + 136
9   libsystem_pthread.dylib                0x19bd65d34 thread_start + 8

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x000000013005b878   x1: 0x0000000200000003   x2: 0x0000000130094150   x3: 0x000000000000001c
    x4: 0x0000000000002000   x5: 0x0000000000000016   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0xfffffffe00000000   x9: 0x0000000200000003  x10: 0x0000000000000003  x11: 0x000000000005ace0
   x12: 0x0000000130003f94  x13: 0x000000000000001b  x14: 0x0000000130000000  x15: 0x00000000e011ffff
   x16: 0xd796000103188080  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x00000001abf529f4
   x20: 0x000000013005b870  x21: 0x0000000000000000  x22: 0x000000000000000b  x23: 0x0000000000000020
   x24: 0x0000000000000030  x25: 0x0000000102c46cb0  x26: 0xf00000000000014f  x27: 0x0000000000000001
   x28: 0x000060000256c1a0   fp: 0x000000016d22e580   lr: 0x00000001aba6dee0
    sp: 0x000000016d22e4b0   pc: 0x00000001aba6dee0 cpsr: 0x60001000
   far: 0x0000000000000000  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
       0x1051c4000 -        0x1051cffff libobjc-trampolines.dylib (*) <9381bd6d-84a5-3c72-b3b8-88428afa4782> /usr/lib/libobjc-trampolines.dylib
       0x102bd0000 -        0x102c4bfff com.maxgoedjen.Secretive.Host (2.4.1) <27de9474-e895-329f-a0a4-d27d48aaf207> /Applications/Secretive.app/Contents/MacOS/Secretive
       0x1aba34000 -        0x1abf91fff libswiftCore.dylib (*) <c2fd0f69-d72c-37a5-938e-1bd710c88431> /usr/lib/swift/libswiftCore.dylib
       0x1c76dc000 -        0x1c93bffff com.apple.SwiftUI (5.5.8) <71c9cc70-1a85-396b-a92a-c893fe8bd541> /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
       0x19f66e000 -        0x1a09aafff com.apple.AppKit (6.9) <61f710be-9132-3cc2-883d-066365fba1ad> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x19b9dc000 -        0x19ba64a17 dyld (*) <37bbc384-0755-31c7-a808-0ed49e44dd8e> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x19bd64000 -        0x19bd70fff libsystem_pthread.dylib (*) <386b0fc1-7873-3328-8e71-43269fd1b2c7> /usr/lib/system/libsystem_pthread.dylib
       0x19bd29000 -        0x19bd63ffb libsystem_kernel.dylib (*) <9b8b53f9-e2b6-36df-98e9-28d8fca732f2> /usr/lib/system/libsystem_kernel.dylib
       0x19bc01000 -        0x19bc7fff7 libsystem_c.dylib (*) <05b44e93-dffc-3bd8-90ab-fd97cb73f171> /usr/lib/system/libsystem_c.dylib
       0x19bdcc000 -        0x19c2a4fff com.apple.CoreFoundation (6.9) <84b539d5-22c9-3f8c-84c8-903e9c7b8d29> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x19cf21000 -        0x19db7efff com.apple.Foundation (6.9) <99e0292d-7873-3968-9c9c-5955638689a5> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x1b1b6b000 -        0x1b1b9ffff com.apple.CoreAuthentication.SharedUtils (1.0) <f9a8c36e-c6fd-347c-a727-7b04693e098e> /System/Library/Frameworks/LocalAuthentication.framework/Support/SharedUtils.framework/Versions/A/SharedUtils
       0x1b1b20000 -        0x1b1b6afff com.apple.LocalAuthentication (1.0) <0a1ca813-abd4-3920-a32c-60a03b0200cb> /System/Library/Frameworks/LocalAuthentication.framework/Versions/A/LocalAuthentication
       0x19bbb6000 -        0x19bbfdfff libdispatch.dylib (*) <502762ee-7aa7-306c-9dbd-88981a86bb78> /usr/lib/system/libdispatch.dylib

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=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)
Writable regions: Total=1.5G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.5G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               384K        3 
Activity Tracing                   256K        1 
AttributeGraph Data               1024K        1 
CG image                           928K       11 
ColorSync                          608K       30 
CoreAnimation                     2528K      115 
CoreGraphics                        48K        3 
CoreUI image data                 2928K       22 
Foundation                          48K        2 
Kernel Alloc Once                   32K        1 
MALLOC                             1.5G       68 
MALLOC guard page                  288K       18 
SQLite page cache                  256K        2 
STACK GUARD                       56.1M        5 
Stack                             10.1M        5 
VM_ALLOCATE                        384K       12 
__AUTH                            1693K      296 
__AUTH_CONST                      25.5M      485 
__CTF                               824        1 
__DATA                            10.4M      470 
__DATA_CONST                      24.3M      491 
__DATA_DIRTY                      1390K      158 
__FONT_DATA                          4K        1 
__LINKEDIT                       533.7M        3 
__OBJC_RO                         71.9M        1 
__OBJC_RW                         2199K        1 
__TEXT                           573.4M      508 
dyld private memory                272K        2 
mapped file                      217.2M       48 
shared memory                     1424K       17 
===========                     =======  ======= 
TOTAL                              3.0G     2781 

-----------
Full Report
-----------

{"app_name":"Secretive","timestamp":"2024-05-20 11:24:02.00 -0400","app_version":"2.4.1","slice_uuid":"27de9474-e895-329f-a0a4-d27d48aaf207","build_version":"1.7648958148","platform":1,"bundleID":"com.maxgoedjen.Secretive.Host","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 14.5 (23F79)","roots_installed":0,"name":"Secretive","incident_id":"5AFA6281-E3F3-4FEB-9335-50BFAAF6727E"}
{
  "uptime" : 55000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 1020875348,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,4",
  "coalitionID" : 20569,
  "osVersion" : {
    "train" : "macOS 14.5",
    "build" : "23F79",
    "releaseType" : "User"
  },
  "captureTime" : "2024-05-20 11:24:02.2153 -0400",
  "codeSigningMonitor" : 1,
  "incident" : "5AFA6281-E3F3-4FEB-9335-50BFAAF6727E",
  "pid" : 74786,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-05-20 11:23:49.9064 -0400",
  "procStartAbsTime" : 1331714753566,
  "procExitAbsTime" : 1332009767132,
  "procName" : "Secretive",
  "procPath" : "\/Applications\/Secretive.app\/Contents\/MacOS\/Secretive",
  "bundleInfo" : {"CFBundleShortVersionString":"2.4.1","CFBundleVersion":"1.7648958148","CFBundleIdentifier":"com.maxgoedjen.Secretive.Host"},
  "storeInfo" : {"deviceIdentifierForVendor":"BBFBA7AB-728A-5A2C-90C0-8322973372A7","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.maxgoedjen.Secretive.Host",
  "crashReporterKey" : "B21C0199-06DB-3E9E-00E5-FBA33E608527",
  "codeSigningID" : "com.maxgoedjen.Secretive.Host",
  "codeSigningTeamID" : "Z72PRUAWF6",
  "codeSigningFlags" : 570520337,
  "codeSigningValidationCategory" : 6,
  "codeSigningTrustLevel" : 4294967295,
  "instructionByteStream" : {"beforePC":"4gMZquMDF6rkAxWq5QMTquYDFqrnAxiqFQCA0pYDAJTgAxSqazQPlA==","atPC":"IAAg1CgAgFKJEoBS6BMAuekHAPlIAIBS6AMAOSAnALAA0CeRIycAsA=="},
  "wakeTime" : 10186,
  "sleepWakeUUID" : "331C07F1-AC9A-41A0-B9F6-F9BB611B7283",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x00000001aba6dee0","rawCodes":[1,7174807264],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":74786},
  "os_fault" : {"process":"Secretive"},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":1888135,"threadState":{"x":[{"value":5100648568},{"value":8589934595,"objc-selector":""},{"value":5100880208},{"value":28},{"value":8192},{"value":22},{"value":0},{"value":0},{"value":18446744065119617024},{"value":8589934595,"objc-selector":""},{"value":3},{"value":371936},{"value":5100289940},{"value":27},{"value":5100273664},{"value":3759276031},{"value":15534603969008009344},{"value":0},{"value":0},{"value":7179938292},{"value":5100648560},{"value":0},{"value":11},{"value":32},{"value":48},{"value":4341394608},{"value":17293822569102704975},{"value":1},{"value":105553155506592}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7174807264},"cpsr":{"value":1610616832},"fp":{"value":6125970816},"sp":{"value":6125970608},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":7174807264,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":237280,"symbol":"_assertionFailure(_:_:file:line:flags:)","symbolLocation":268,"imageIndex":2},{"imageOffset":687732,"symbol":"swift_unexpectedError","symbolLocation":668,"imageIndex":2},{"imageOffset":146480,"symbol":"CreateSecretView.save()","symbolLocation":552,"imageIndex":1},{"imageOffset":167660,"symbol":"partial apply for implicit closure #2 in implicit closure #1 in closure #2 in closure #1 in CreateSecretView.body.getter","symbolLocation":32,"imageIndex":1},{"imageOffset":25277144,"imageIndex":3},{"imageOffset":17621068,"imageIndex":3},{"imageOffset":17740852,"imageIndex":3},{"imageOffset":16103844,"imageIndex":3},{"imageOffset":25202436,"imageIndex":3},{"imageOffset":25199996,"imageIndex":3},{"imageOffset":17646624,"imageIndex":3},{"imageOffset":17646868,"imageIndex":3},{"imageOffset":1966312,"symbol":"-[NSApplication(NSResponder) sendAction:to:from:]","symbolLocation":460,"imageIndex":4},{"imageOffset":5628464,"symbol":"__40-[NSControl _sendActionsForEvents:view:]_block_invoke","symbolLocation":216,"imageIndex":4},{"imageOffset":5628168,"symbol":"-[NSControl _sendActionsForEvents:view:]","symbolLocation":216,"imageIndex":4},{"imageOffset":1954544,"symbol":"NSControlTrackMouse","symbolLocation":1616,"imageIndex":4},{"imageOffset":1952884,"symbol":"-[NSCell trackMouse:inRect:ofView:untilMouseUp:]","symbolLocation":144,"imageIndex":4},{"imageOffset":1952556,"symbol":"-[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:]","symbolLocation":488,"imageIndex":4},{"imageOffset":1949696,"symbol":"-[NSControl mouseDown:]","symbolLocation":448,"imageIndex":4},{"imageOffset":1945036,"symbol":"-[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:]","symbolLocation":3472,"imageIndex":4},{"imageOffset":1467404,"symbol":"-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]","symbolLocation":288,"imageIndex":4},{"imageOffset":1466648,"symbol":"-[NSWindow(NSEventRouting) sendEvent:]","symbolLocation":284,"imageIndex":4},{"imageOffset":8579112,"symbol":"-[NSApplication(NSEventRouting) sendEvent:]","symbolLocation":1604,"imageIndex":4},{"imageOffset":4704412,"symbol":"-[NSApplication _handleEvent:]","symbolLocation":60,"imageIndex":4},{"imageOffset":184512,"symbol":"-[NSApplication run]","symbolLocation":512,"imageIndex":4},{"imageOffset":17120,"symbol":"NSApplicationMain","symbolLocation":880,"imageIndex":4},{"imageOffset":1090676,"imageIndex":3},{"imageOffset":8863368,"imageIndex":3},{"imageOffset":13037240,"imageIndex":3},{"imageOffset":240148,"symbol":"main","symbolLocation":160,"imageIndex":1},{"imageOffset":24800,"symbol":"start","symbolLocation":2360,"imageIndex":5}]},{"id":1888152,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}],"threadState":{"x":[{"value":6127104000},{"value":5635},{"value":6126567424},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6127104000},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6909484320},"far":{"value":0}}},{"id":1888153,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}],"threadState":{"x":[{"value":6127677440},{"value":22531},{"value":6127140864},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6127677440},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6909484320},"far":{"value":0}}},{"id":1888194,"threadState":{"x":[{"value":184},{"value":0},{"value":8192},{"value":105553139680664},{"value":2},{"value":1280},{"value":105553139680512},{"value":261},{"value":5120155648},{"value":27663},{"value":12532993},{"value":5272064},{"value":5117050920},{"value":4294934545},{"value":6017},{"value":4294934015},{"value":344},{"value":8824133720},{"value":0},{"value":1},{"value":105553139680512},{"value":0},{"value":0},{"value":40},{"value":8192},{"value":5120155644},{"value":0},{"value":0},{"value":105553139680512}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6908352728},"cpsr":{"value":1073745920},"fp":{"value":6128811968},"sp":{"value":6128811904},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6909247096},"far":{"value":0}},"queue":"la_client","frames":[{"imageOffset":11896,"symbol":"__getdirentries64","symbolLocation":8,"imageIndex":8},{"imageOffset":329944,"symbol":"_readdir_unlocked","symbolLocation":208,"imageIndex":9},{"imageOffset":330188,"symbol":"readdir","symbolLocation":44,"imageIndex":9},{"imageOffset":94248,"symbol":"_CFIterateDirectory","symbolLocation":144,"imageIndex":10},{"imageOffset":92012,"symbol":"_CFBundleGetBundleVersionForURL","symbolLocation":420,"imageIndex":10},{"imageOffset":1120860,"symbol":"_CFBundleCreate","symbolLocation":284,"imageIndex":10},{"imageOffset":30720,"symbol":"-[NSBundle _cfBundle]","symbolLocation":76,"imageIndex":11},{"imageOffset":170480,"symbol":"-[NSBundle localizedStringForKey:value:table:]","symbolLocation":36,"imageIndex":11},{"imageOffset":34428,"symbol":"+[LAErrorHelper localizedStringForError:]","symbolLocation":940,"imageIndex":12},{"imageOffset":16948,"symbol":"+[LAErrorHelper errorWithCode:message:moreInfo:]","symbolLocation":116,"imageIndex":12},{"imageOffset":87252,"symbol":"-[LAClient _serializedInvalidateWithMessage:]","symbolLocation":80,"imageIndex":13},{"imageOffset":87072,"symbol":"__34-[LAClient invalidateWithMessage:]_block_invoke","symbolLocation":40,"imageIndex":13},{"imageOffset":10064,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":14},{"imageOffset":17384,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":14},{"imageOffset":30956,"symbol":"_dispatch_continuation_pop","symbolLocation":600,"imageIndex":14},{"imageOffset":28424,"symbol":"_dispatch_async_redirect_invoke","symbolLocation":584,"imageIndex":14},{"imageOffset":89768,"symbol":"_dispatch_root_queue_drain","symbolLocation":392,"imageIndex":14},{"imageOffset":91832,"symbol":"_dispatch_worker_thread2","symbolLocation":156,"imageIndex":14},{"imageOffset":12240,"symbol":"_pthread_wqthread","symbolLocation":228,"imageIndex":7},{"imageOffset":7464,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":7}]},{"id":1888228,"name":"com.apple.NSEventThread","threadState":{"x":[{"value":268451845},{"value":21592279046},{"value":8589934592,"objc-selector":""},{"value":237524576370688},{"value":0},{"value":237524576370688},{"value":2},{"value":4294967295},{"value":18446744073709550527},{"value":55303},{"value":0},{"value":1},{"value":55303},{"value":81316},{"value":0},{"value":0},{"value":18446744073709551569},{"value":8824118016},{"value":0},{"value":4294967295},{"value":2},{"value":237524576370688},{"value":0},{"value":237524576370688},{"value":6129393768},{"value":8589934592,"objc-selector":""},{"value":21592279046},{"value":21592279046},{"value":4412409862}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6909315876},"cpsr":{"value":4096},"fp":{"value":6129393616},"sp":{"value":6129393536},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6909239796},"far":{"value":0}},"frames":[{"imageOffset":4596,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":8},{"imageOffset":80676,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":8},{"imageOffset":40500,"symbol":"mach_msg_overwrite","symbolLocation":476,"imageIndex":8},{"imageOffset":5496,"symbol":"mach_msg","symbolLocation":24,"imageIndex":8},{"imageOffset":517760,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":10},{"imageOffset":511812,"symbol":"__CFRunLoopRun","symbolLocation":1208,"imageIndex":10},{"imageOffset":508980,"symbol":"CFRunLoopRunSpecific","symbolLocation":608,"imageIndex":10},{"imageOffset":1458568,"symbol":"_NSEventThread","symbolLocation":144,"imageIndex":4},{"imageOffset":28564,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":7},{"imageOffset":7476,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4380704768,
    "size" : 49152,
    "uuid" : "9381bd6d-84a5-3c72-b3b8-88428afa4782",
    "path" : "\/usr\/lib\/libobjc-trampolines.dylib",
    "name" : "libobjc-trampolines.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4340908032,
    "CFBundleShortVersionString" : "2.4.1",
    "CFBundleIdentifier" : "com.maxgoedjen.Secretive.Host",
    "size" : 507904,
    "uuid" : "27de9474-e895-329f-a0a4-d27d48aaf207",
    "path" : "\/Applications\/Secretive.app\/Contents\/MacOS\/Secretive",
    "name" : "Secretive",
    "CFBundleVersion" : "1.7648958148"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7174569984,
    "size" : 5627904,
    "uuid" : "c2fd0f69-d72c-37a5-938e-1bd710c88431",
    "path" : "\/usr\/lib\/swift\/libswiftCore.dylib",
    "name" : "libswiftCore.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7640825856,
    "CFBundleShortVersionString" : "5.5.8",
    "CFBundleIdentifier" : "com.apple.SwiftUI",
    "size" : 30294016,
    "uuid" : "71c9cc70-1a85-396b-a92a-c893fe8bd541",
    "path" : "\/System\/Library\/Frameworks\/SwiftUI.framework\/Versions\/A\/SwiftUI",
    "name" : "SwiftUI",
    "CFBundleVersion" : "5.5.8"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6969286656,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 20172800,
    "uuid" : "61f710be-9132-3cc2-883d-066365fba1ad",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2487.60.105"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6905774080,
    "size" : 559640,
    "uuid" : "37bbc384-0755-31c7-a808-0ed49e44dd8e",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6909476864,
    "size" : 53248,
    "uuid" : "386b0fc1-7873-3328-8e71-43269fd1b2c7",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6909235200,
    "size" : 241660,
    "uuid" : "9b8b53f9-e2b6-36df-98e9-28d8fca732f2",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6908022784,
    "size" : 520184,
    "uuid" : "05b44e93-dffc-3bd8-90ab-fd97cb73f171",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6909902848,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5083136,
    "uuid" : "84b539d5-22c9-3f8c-84c8-903e9c7b8d29",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "2503.1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6928076800,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 12967936,
    "uuid" : "99e0292d-7873-3968-9c9c-5955638689a5",
    "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "2503.1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7276507136,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.CoreAuthentication.SharedUtils",
    "size" : 217088,
    "uuid" : "f9a8c36e-c6fd-347c-a727-7b04693e098e",
    "path" : "\/System\/Library\/Frameworks\/LocalAuthentication.framework\/Support\/SharedUtils.framework\/Versions\/A\/SharedUtils",
    "name" : "SharedUtils",
    "CFBundleVersion" : "1394.120.27"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7276199936,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.LocalAuthentication",
    "size" : 307200,
    "uuid" : "0a1ca813-abd4-3920-a32c-60a03b0200cb",
    "path" : "\/System\/Library\/Frameworks\/LocalAuthentication.framework\/Versions\/A\/LocalAuthentication",
    "name" : "LocalAuthentication",
    "CFBundleVersion" : "1394.120.27"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6907715584,
    "size" : 294912,
    "uuid" : "502762ee-7aa7-306c-9dbd-88981a86bb78",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  }
],
  "sharedCache" : {
  "base" : 6905020416,
  "size" : 4220698624,
  "uuid" : "3406ad1b-2469-30eb-9863-5dce861e6dea"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)\nWritable regions: Total=1.5G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.5G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               384K        3 \nActivity Tracing                   256K        1 \nAttributeGraph Data               1024K        1 \nCG image                           928K       11 \nColorSync                          608K       30 \nCoreAnimation                     2528K      115 \nCoreGraphics                        48K        3 \nCoreUI image data                 2928K       22 \nFoundation                          48K        2 \nKernel Alloc Once                   32K        1 \nMALLOC                             1.5G       68 \nMALLOC guard page                  288K       18 \nSQLite page cache                  256K        2 \nSTACK GUARD                       56.1M        5 \nStack                             10.1M        5 \nVM_ALLOCATE                        384K       12 \n__AUTH                            1693K      296 \n__AUTH_CONST                      25.5M      485 \n__CTF                               824        1 \n__DATA                            10.4M      470 \n__DATA_CONST                      24.3M      491 \n__DATA_DIRTY                      1390K      158 \n__FONT_DATA                          4K        1 \n__LINKEDIT                       533.7M        3 \n__OBJC_RO                         71.9M        1 \n__OBJC_RW                         2199K        1 \n__TEXT                           573.4M      508 \ndyld private memory                272K        2 \nmapped file                      217.2M       48 \nshared memory                     1424K       17 \n===========                     =======  ======= \nTOTAL                              3.0G     2781 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "2f9332ae1ed2a755bd396d2bed1d0cdf899d3ad2",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "5fb4245a1bbfe8005e33a1e1",
      "factorPackIds" : {

      },
      "deploymentId" : 240000021
    },
    {
      "rolloutId" : "652eff3d1bce5442b8d753c9",
      "factorPackIds" : {

      },
      "deploymentId" : 240000009
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "5d85d104-adc7-4ebf-8b7c-96d84fdad9cc",
      "experimentId" : "6384d56b96e8d228551ec182",
      "deploymentId" : 400000032
    }
  ]
}
}

Model: MacBookPro18,4, BootROM 10151.121.1, proc 10:8:2 processors, 64 GB, SMC 
Graphics: Apple M1 Max, Apple M1 Max, Built-In
Display: DELL U4021QW, 7680 x 3240, Main, MirrorOff, Online
Display: Color LCD, 3024 x 1964 Retina, MirrorOff, Online
Memory Module: LPDDR5, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Apr  4 2024 20:37:43 version 20.103.14.0.8.7.174 FWID 01-95f1e684
AirPort: 
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: USB 10/100/1000 LAN 3, Ethernet, en17
Network Service: Wi-Fi, AirPort, en0
PCI Card: pci8086,15f0, USB eXtensible Host Controller, Thunderbolt@3,0,0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: YubiKey OTP+FIDO+CCID
USB Device: USB31Bus
USB Device: 4-Port USB 3.0 Hub
USB Device: 4-Port USB 3.0 Hub
USB Device: USB 10/100/1000 LAN
USB Device: 4-Port USB 2.0 Hub
USB Device: USB2.0 HID
USB Device: USB Reader V3
USB Device: Stream Deck MK.2
USB Device: HD Pro Webcam C920
USB Device: 4-Port USB 2.0 Hub
USB Device: Magic Keyboard with Touch ID
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Device: U4021QW, Dell, 1, 64.2
delfuego commented 1 month ago

One other related/unrelated note: on this (and two other test MBPs in our fleet), the macOS 14.5 upgrade also broke Apple Pay. And our debugging of that led us to all sorts of console log messages related to Secure Enclave weirdness — attempts to access the Apple Pay Secure Enclave container that weren't succeeding, things like that. So we already had a working theory that the macOS 14.5 upgrade brought changes to the Secure Enclave that weren't called out in the release notes… and this just makes that working theory even stronger.

maxgoedjen commented 1 month ago

@delfuego good news is this is very unlikely to be an actual data loss – if you haven't restarted yet, try that. We've had a few reports of the SEP getting into a weird state like that occasionally.

delfuego commented 1 month ago

Holy crap, that worked, @maxgoedjen! (It doesn't work for the Apple Pay issues, though, which is why I didn't think to try it first.)

asmeurer commented 1 month ago

I have a git push key and an SSH signing key. I had an issue after updating to 14.5 where /Users/aaronmeurer/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/PublicKeys/ was empty and git couldn't find the ssh signing key (even though both keys appeared in the Secretive GUI). But then, after doing a push operation, my push and SSH signing key magically reappeared and everything worked again.

asmeurer commented 1 month ago

I could just be misremembering how things were, but it really feels like Secretive is slower after the Sonoma 14.5 update. A no-op git pull takes 5 seconds and git commit --allow-empty -m "test" with SSH signing enabled takes 3.5 seconds (git commit --allow-empty -m "test" --no-gpg-sign takes 0.08 seconds).

Even if it was actually always like this, if anything could be done to improve the performance that would be great.

maxgoedjen commented 1 month ago

Sounds like there's enough people hitting that to merit investigation. I'll track that separately in #552.