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/d0ae6dc513bdcec9cade to your computer and use it in GitHub Desktop.
Save creationix/d0ae6dc513bdcec9cade 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 ../lit/luvi-binaries/Darwin_x86_64/luvi
Current executable set to '../lit/luvi-binaries/Darwin_x86_64/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:59:10 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
luvi(30667,0x7fff78b3a300) malloc: *** error for object 0x40000000000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Process 30667 launched: '../lit/luvi-binaries/Darwin_x86_64/luvi' (x86_64)
bt
* thread #1: tid = 0xab60d, 0x00007fff96f5b286 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
* frame #0: 0x00007fff96f5b286 libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x00007fff8c6cd42f libsystem_pthread.dylib`pthread_kill + 90
frame #2: 0x00007fff8bcc1b53 libsystem_c.dylib`abort + 129
frame #3: 0x00007fff96f2c937 libsystem_malloc.dylib`free + 428
frame #4: 0x00000001001a0835 luvi`CRYPTO_free + 37
frame #5: 0x00000001001d113c luvi`sk_free + 28
frame #6: 0x00000001001dbb90 luvi`X509_STORE_free + 144
frame #7: 0x00000001000f9d56 luvi`SSL_CTX_free + 150
frame #8: 0x00000001000f9969 luvi`SSL_free + 537
frame #9: 0x00000001000c6b66 luvi`openssl_ssl_gc + 70
frame #10: 0x00000001000ab0db luvi`lj_BC_FUNCC + 52
frame #11: 0x00000001000a8973 luvi`gc_finalize + 243
frame #12: 0x0000000100039248 luvi`cpfinalize + 296
frame #13: 0x00000001000ab41c luvi`lj_vm_cpcall + 56
frame #14: 0x0000000100038c42 luvi`lua_close + 146
frame #15: 0x000000010000d710 luvi`main + 608
(lldb) run
There is a running process, kill it and restart?: [Y/n] y
Process 30670 launched: '../lit/luvi-binaries/Darwin_x86_64/luvi' (x86_64)
{ path = '/v1/devices/1/endpoint?access_token=2', method = 'GET' }
{ { 'Server', 'nginx/1.6.0' }, { 'Date', 'Thu, 05 Feb 2015 19:59:17 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
luvi(30670,0x7fff78b3a300) malloc: *** error for object 0x40000000000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Process 30670 stopped
* thread #1: tid = 0xab65e, 0x00007fff96f5b286 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x00007fff96f5b286 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill + 10:
-> 0x7fff96f5b286: jae 0x7fff96f5b290 ; __pthread_kill + 20
0x7fff96f5b288: movq %rax, %rdi
0x7fff96f5b28b: jmpq 0x7fff96f56c53 ; cerror_nocancel
0x7fff96f5b290: ret
(lldb) bt
* thread #1: tid = 0xab65e, 0x00007fff96f5b286 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
* frame #0: 0x00007fff96f5b286 libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x00007fff8c6cd42f libsystem_pthread.dylib`pthread_kill + 90
frame #2: 0x00007fff8bcc1b53 libsystem_c.dylib`abort + 129
frame #3: 0x00007fff96f2c937 libsystem_malloc.dylib`free + 428
frame #4: 0x00000001001a0835 luvi`CRYPTO_free + 37
frame #5: 0x00000001001d113c luvi`sk_free + 28
frame #6: 0x00000001001dbb90 luvi`X509_STORE_free + 144
frame #7: 0x00000001000f9d56 luvi`SSL_CTX_free + 150
frame #8: 0x00000001000f9969 luvi`SSL_free + 537
frame #9: 0x00000001000c6b66 luvi`openssl_ssl_gc + 70
frame #10: 0x00000001000ab0db luvi`lj_BC_FUNCC + 52
frame #11: 0x00000001000a8973 luvi`gc_finalize + 243
frame #12: 0x0000000100039248 luvi`cpfinalize + 296
frame #13: 0x00000001000ab41c luvi`lj_vm_cpcall + 56
frame #14: 0x0000000100038c42 luvi`lua_close + 146
frame #15: 0x000000010000d710 luvi`main + 608
(lldb) run
There is a running process, kill it and restart?: [Y/n] y
Process 30673 launched: '../lit/luvi-binaries/Darwin_x86_64/luvi' (x86_64)
{ path = '/v1/devices/1/endpoint?access_token=2', method = 'GET' }
{ { 'Server', 'nginx/1.6.0' }, { 'Date', 'Thu, 05 Feb 2015 19:59:25 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
Process 30673 stopped
* thread #1: tid = 0xab685, 0x00000001001d17ec luvi`sk_value + 28, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
frame #0: 0x00000001001d17ec luvi`sk_value + 28
luvi`sk_value + 28:
-> 0x1001d17ec: movq (%rcx,%rax,8), %rax
0x1001d17f0: popq %rbp
0x1001d17f1: ret
0x1001d17f2: nopw %cs:(%rax,%rax)
(lldb) bt
* thread #1: tid = 0xab685, 0x00000001001d17ec luvi`sk_value + 28, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
* frame #0: 0x00000001001d17ec luvi`sk_value + 28
frame #1: 0x00000001001dbb3a luvi`X509_STORE_free + 58
frame #2: 0x00000001000f9d56 luvi`SSL_CTX_free + 150
frame #3: 0x00000001000f9969 luvi`SSL_free + 537
frame #4: 0x00000001000c6b66 luvi`openssl_ssl_gc + 70
frame #5: 0x00000001000ab0db luvi`lj_BC_FUNCC + 52
frame #6: 0x00000001000a8973 luvi`gc_finalize + 243
frame #7: 0x0000000100039248 luvi`cpfinalize + 296
frame #8: 0x00000001000ab41c luvi`lj_vm_cpcall + 56
frame #9: 0x0000000100038c42 luvi`lua_close + 146
frame #10: 0x000000010000d710 luvi`main + 608
(lldb) run
There is a running process, kill it and restart?: [Y/n] y
Process 30676 launched: '../lit/luvi-binaries/Darwin_x86_64/luvi' (x86_64)
{ path = '/v1/devices/1/endpoint?access_token=2', method = 'GET' }
{ { 'Server', 'nginx/1.6.0' }, { 'Date', 'Thu, 05 Feb 2015 19:59:37 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
Process 30676 stopped
* thread #1: tid = 0xab6d1, 0x00000001001d17ec luvi`sk_value + 28, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x1248b000)
frame #0: 0x00000001001d17ec luvi`sk_value + 28
luvi`sk_value + 28:
-> 0x1001d17ec: movq (%rcx,%rax,8), %rax
0x1001d17f0: popq %rbp
0x1001d17f1: ret
0x1001d17f2: nopw %cs:(%rax,%rax)
(lldb) bt
* thread #1: tid = 0xab6d1, 0x00000001001d17ec luvi`sk_value + 28, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x1248b000)
* frame #0: 0x00000001001d17ec luvi`sk_value + 28
frame #1: 0x00000001001dbb3a luvi`X509_STORE_free + 58
frame #2: 0x00000001000f9d56 luvi`SSL_CTX_free + 150
frame #3: 0x00000001000f9969 luvi`SSL_free + 537
frame #4: 0x00000001000c6b66 luvi`openssl_ssl_gc + 70
frame #5: 0x00000001000ab0db luvi`lj_BC_FUNCC + 52
frame #6: 0x00000001000a8973 luvi`gc_finalize + 243
frame #7: 0x0000000100039248 luvi`cpfinalize + 296
frame #8: 0x00000001000ab41c luvi`lj_vm_cpcall + 56
frame #9: 0x0000000100038c42 luvi`lua_close + 146
frame #10: 0x000000010000d710 luvi`main + 608
(lldb)
➜ vsl git:(5ecc208) md5 ../lit/luvi-binaries/Darwin_x86_64/luvi
MD5 (../lit/luvi-binaries/Darwin_x86_64/luvi) = 57d72006e51b8f088fca87240b3005e5
➜ vsl git:(5ecc208) LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2 ../lit/luvi-binaries/Darwin_x86_64/luvi
{ path = '/v1/devices/1/endpoint?access_token=2', method = 'GET' }
{ { 'Server', 'nginx/1.6.0' }, { 'Date', 'Thu, 05 Feb 2015 19:57:15 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
[1] 30605 segmentation fault LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2
➜ vsl git:(5ecc208) LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2 ../lit/luvi-binaries/Darwin_x86_64/luvi
{ path = '/v1/devices/1/endpoint?access_token=2', method = 'GET' }
{ { 'Server', 'nginx/1.6.0' }, { 'Date', 'Thu, 05 Feb 2015 19:57:16 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
luvi(30615,0x7fff78b3a300) malloc: *** error for object 0x7fa31142000d: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[1] 30615 abort LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2
➜ vsl git:(5ecc208) LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2 ../lit/luvi-binaries/Darwin_x86_64/luvi
{ path = '/v1/devices/1/endpoint?access_token=2', method = 'GET' }
{ { 'Server', 'nginx/1.6.0' }, { 'Date', 'Thu, 05 Feb 2015 19:57:18 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
luvi(30625,0x7fff78b3a300) malloc: *** error for object 0x3246de0000000000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[1] 30625 abort LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2
➜ vsl git:(5ecc208) LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2 ../lit/luvi-binaries/Darwin_x86_64/luvi
{ path = '/v1/devices/1/endpoint?access_token=2', method = 'GET' }
{ { 'Server', 'nginx/1.6.0' }, { 'Date', 'Thu, 05 Feb 2015 19:57:20 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
luvi(30635,0x7fff78b3a300) malloc: *** error for object 0x7faaf941000a: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[1] 30635 abort LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2
➜ vsl git:(5ecc208) LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2 ../lit/luvi-binaries/Darwin_x86_64/luvi
{ path = '/v1/devices/1/endpoint?access_token=2', method = 'GET' }
{ { 'Server', 'nginx/1.6.0' }, { 'Date', 'Thu, 05 Feb 2015 19:57:21 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
[1] 30645 segmentation fault LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2
➜ vsl git:(5ecc208) LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2 ../lit/luvi-binaries/Darwin_x86_64/luvi
{ path = '/v1/devices/1/endpoint?access_token=2', method = 'GET' }
{ { 'Server', 'nginx/1.6.0' }, { 'Date', 'Thu, 05 Feb 2015 19:57:23 GMT' },
{ 'Content-Type', 'text/html' }, { 'Content-Length', '172' },
{ 'Connection', 'close' }, keepAlive = false, reason = 'Bad Request',
code = 400, version = 1.1 }
[1] 30655 segmentation fault LUVI_APP=. SPARK_DEVICE_ID=1 SPARK_ACCESS_TOKEN=2
➜ vsl git:(5ecc208)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment