Skip to content

Instantly share code, notes, and snippets.

@creationix
Last active August 29, 2015 14:14
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 creationix/f467e77c3f228f59e2d6 to your computer and use it in GitHub Desktop.
Save creationix/f467e77c3f228f59e2d6 to your computer and use it in GitHub Desktop.
➜ vsl git:(5ecc208) LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2 lldb -o run `which luvi`
Current executable set to '/usr/local/bin/luvi' (x86_64).
(lldb) { path = '/v1/devices/1/endpoint?access_token=2', method = 'GET' }
{ { 'Server', 'nginx/1.6.0' }, { 'Date', 'Thu, 05 Feb 2015 19:48:55 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
Process 30303 launched: '/usr/local/bin/luvi' (x86_64)
^C
(lldb) run
There is a running process, kill it and restart?: [Y/n] y
Process 30306 launched: '/usr/local/bin/luvi' (x86_64)
{ path = '/v1/devices/1/endpoint?access_token=2', method = 'GET' }
{ { 'Server', 'nginx/1.6.0' }, { 'Date', 'Thu, 05 Feb 2015 19:49:02 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
Process 30306 stopped
* thread #1: tid = 0xaa613, 0x00000001001d0bec luvi`sk_value + 28, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x2001f000)
frame #0: 0x00000001001d0bec luvi`sk_value + 28
luvi`sk_value + 28:
-> 0x1001d0bec: movq (%rcx,%rax,8), %rax
0x1001d0bf0: popq %rbp
0x1001d0bf1: ret
0x1001d0bf2: nopw %cs:(%rax,%rax)
(lldb) bt
* thread #1: tid = 0xaa613, 0x00000001001d0bec luvi`sk_value + 28, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x2001f000)
* frame #0: 0x00000001001d0bec luvi`sk_value + 28
frame #1: 0x00000001001daf3a luvi`X509_STORE_free + 58
frame #2: 0x00000001000f9156 luvi`SSL_CTX_free + 150
frame #3: 0x00000001000f8d69 luvi`SSL_free + 537
frame #4: 0x00000001000c5f66 luvi`openssl_ssl_gc + 70
frame #5: 0x00000001000aa4db luvi`lj_BC_FUNCC + 52
frame #6: 0x00000001000a7d73 luvi`gc_finalize + 243
frame #7: 0x0000000100038648 luvi`cpfinalize + 296
frame #8: 0x00000001000aa81c luvi`lj_vm_cpcall + 56
frame #9: 0x0000000100038042 luvi`lua_close + 146
frame #10: 0x000000010000cb10 luvi`main + 608
(lldb) run
There is a running process, kill it and restart?: [Y/n] y
Process 30309 launched: '/usr/local/bin/luvi' (x86_64)
{ path = '/v1/devices/1/endpoint?access_token=2', method = 'GET' }
{ { 'Server', 'nginx/1.6.0' }, { 'Date', 'Thu, 05 Feb 2015 19:49:23 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
Process 30309 stopped
* thread #1: tid = 0xaa69a, 0x00000001001daf3d luvi`X509_STORE_free + 61, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
frame #0: 0x00000001001daf3d luvi`X509_STORE_free + 61
luvi`X509_STORE_free + 61:
-> 0x1001daf3d: movq 0x8(%r12), %rax
0x1001daf42: testq %rax, %rax
0x1001daf45: je 0x1001daf55 ; X509_STORE_free + 85
0x1001daf47: movq 0x20(%rax), %rax
(lldb) bt
* thread #1: tid = 0xaa69a, 0x00000001001daf3d luvi`X509_STORE_free + 61, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
* frame #0: 0x00000001001daf3d luvi`X509_STORE_free + 61
frame #1: 0x00000001000f9156 luvi`SSL_CTX_free + 150
frame #2: 0x00000001000f8d69 luvi`SSL_free + 537
frame #3: 0x00000001000c5f66 luvi`openssl_ssl_gc + 70
frame #4: 0x00000001000aa4db luvi`lj_BC_FUNCC + 52
frame #5: 0x00000001000a7d73 luvi`gc_finalize + 243
frame #6: 0x0000000100038648 luvi`cpfinalize + 296
frame #7: 0x00000001000aa81c luvi`lj_vm_cpcall + 56
frame #8: 0x0000000100038042 luvi`lua_close + 146
frame #9: 0x000000010000cb10 luvi`main + 608
(lldb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment