Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created May 9, 2014 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BitPuffin/39288172adc487609acd to your computer and use it in GitHub Desktop.
Save BitPuffin/39288172adc487609acd to your computer and use it in GitHub Desktop.
lldb test
Current executable set to 'test' (x86_64).
(lldb) r
Process 17788 launched: '/Users/isak/src/xxx/xxx-client-lib-universal/test' (x86_64)
Init
Initializing chickentest
Process 17788 stopped
* thread #1: tid = 0xc8d91, 0x00000001000015d9 test`f_16 + 127, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
frame #0: 0x00000001000015d9 test`f_16 + 127
test`f_16 + 127:
-> 0x1000015d9: movq 0x8(%rax), %rsi
0x1000015dd: testb $0x3, %sil
0x1000015e1: movq 0xa38(%rip), %rbx ; (void *)0x00000001003225ef: C_invalid_procedure
0x1000015e8: jne 0x1000015f8 ; f_16 + 158
(lldb) bt
* thread #1: tid = 0xc8d91, 0x00000001000015d9 test`f_16 + 127, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
* frame #0: 0x00000001000015d9 test`f_16 + 127
frame #1: 0x00000001002eb3ab libchicken.dylib`C_do_apply + 83
frame #2: 0x00000001002eb134 libchicken.dylib`C_callback + 179
frame #3: 0x000000010031fa6c libchicken.dylib`C_callback_wrapper + 67
frame #4: 0x0000000100001b88 test`main + 56 at main.c:10
(lldb) q
Quitting LLDB will kill one or more processes. Do you really want to proceed: [Y/n] y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment