-
Notifications
You must be signed in to change notification settings - Fork 234
Open
Description
$ lldb ./bin/skhd
(lldb) target create "./bin/skhd"
Current executable set to '/Users/knarf/projects/other/skhd/bin/skhd' (x86_64).
(lldb) run
Process 75656 launched: '/Users/knarf/projects/other/skhd/bin/skhd' (x86_64)
skhd: must be run with accessibility access! abort..
Process 75656 exited with status = 0 (0x00000000)
(lldb) run
Process 75691 launched: '/Users/knarf/projects/other/skhd/bin/skhd' (x86_64)
2025-05-19 08:53:00.129654+0200 skhd[75691:10044672] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=75691
2025-05-19 08:53:00.129719+0200 skhd[75691:10044672] SecTaskCopyDebugDescription: skhd[75691]/0#-1 LF=22
Process 75691 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
frame #0: 0x0000000100005494 skhd`hash_string(key=0x0000000000000000) at hotkey.c:86:5
83 unsigned long hash_string(char *key)
84 {
85 unsigned long hash = 0, high;
-> 86 while(*key) {
87 hash = (hash << 4) + *key++;
88 high = hash & 0xF0000000;
89 if(high) {
Target 0: (skhd) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
* frame #0: 0x0000000100005494 skhd`hash_string(key=0x0000000000000000) at hotkey.c:86:5
frame #1: 0x0000000100000c1a skhd`table_get_bucket(table=0x000000010000d4b0, key=0x0000000000000000) at hashtable.h:49:48
frame #2: 0x0000000100000bbd skhd`table_find(table=0x000000010000d4b0, key=0x0000000000000000) at hashtable.h:87:30
frame #3: 0x0000000100006fdd skhd`key_handler(proxy=0x00006000014c8730, type=10, event=0x00006000037ea5a0, reference=0x000000010000d4d0) at skhd.c:172:13
frame #4: 0x00007ff81fdab3b8 SkyLight`processEventTapData(void*, unsigned int, unsigned int, unsigned int, unsigned char*, unsigned int) + 707
frame #5: 0x00007ff82000f464 SkyLight`_XPostEventTapData + 295
frame #6: 0x00007ff81fdab097 SkyLight`eventTapMessageHandler(__CFMachPort*, void*, long, void*) + 144
frame #7: 0x00007ff81a17d9d9 CoreFoundation`__CFMachPortPerform + 244
frame #8: 0x00007ff81a153218 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
frame #9: 0x00007ff81a153157 CoreFoundation`__CFRunLoopDoSource1 + 543
frame #10: 0x00007ff81a151da5 CoreFoundation`__CFRunLoopRun + 2748
frame #11: 0x00007ff81a150cb2 CoreFoundation`CFRunLoopRunSpecific + 536
frame #12: 0x00007ff81a1c7ade CoreFoundation`CFRunLoopRun + 40
frame #13: 0x000000010000633d skhd`main(argc=1, argv=0x00007ff7bfefefa8) at skhd.c:524:5
frame #14: 0x00007ff819cc5530 dyld`start + 3056$ ./bin/skhd --version
skhd-v0.3.9Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
