a | b | |
---|
| 0 | + | ### crash1 |
---|
| 0 | + | |
---|
| 0 | + | dave@akai tmp % lldb process attach -n beam.smp |
---|
| 0 | + | Warning: program arguments are ignored when attaching. |
---|
| 0 | + | Attaching to process with: |
---|
| 0 | + | process attach -n "beam.smp" |
---|
| 0 | + | Process 82299 stopped |
---|
| 0 | + | Executable module set to "/usr/local/Cellar/erlang/R15B/lib/erlang/erts-5.9/bin/beam.smp". |
---|
| 0 | + | Architecture set to: x86_64. |
---|
| 0 | + | (lldb) c |
---|
| 0 | + | Process 82299 resuming |
---|
| 0 | + | Process 82299 stopped |
---|
| 0 | + | * thread #5: tid = 0x2403, 0x00007fff88b661ec libsystem_c.dylib`flockfile + 15, stop reason = EXC_BAD_ACCESS (code=1, address=0x68) |
---|
| 0 | + | frame #0: 0x00007fff88b661ec libsystem_c.dylib`flockfile + 15 |
---|
| 0 | + | libsystem_c.dylib`flockfile + 15: |
---|
| 0 | + | -> 0x7fff88b661ec: movq 104(%rbx), %rdi |
---|
| 0 | + | 0x7fff88b661f0: cmpq %rax, 72(%rdi) |
---|
| 0 | + | 0x7fff88b661f4: jne 0x00007fff88b661fe ; flockfile + 33 |
---|
| 0 | + | 0x7fff88b661f6: incl 80(%rdi) |
---|
| 0 | + | (lldb) thread list |
---|
| 0 | + | Process 82299 stopped |
---|
| 0 | + | thread #1: tid = 0x1f03, 0x00007fff87b7bdf2 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10 |
---|
| 0 | + | thread #2: tid = 0x2103, 0x00007fff87b7caf2 libsystem_kernel.dylib`read + 10 |
---|
| 0 | + | thread #3: tid = 0x2203, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #4: tid = 0x2303, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | * thread #5: tid = 0x2403, 0x00007fff88b661ec libsystem_c.dylib`flockfile + 15, stop reason = EXC_BAD_ACCESS (code=1, address=0x68) |
---|
| 0 | + | thread #6: tid = 0x2503, 0x00007fff88b1f149 libsystem_c.dylib`sched_yield + 11 |
---|
| 0 | + | thread #7: tid = 0x2603, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #8: tid = 0x2703, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #9: tid = 0x2803, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #10: tid = 0x2903, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #11: tid = 0x2a03, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #12: tid = 0x2b03, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #13: tid = 0x2c03, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | (lldb) thread backtrace |
---|
| 0 | + | * thread #5: tid = 0x2403, 0x00007fff88b661ec libsystem_c.dylib`flockfile + 15, stop reason = EXC_BAD_ACCESS (code=1, address=0x68) |
---|
| 0 | + | frame #0: 0x00007fff88b661ec libsystem_c.dylib`flockfile + 15 |
---|
| 0 | + | frame #1: 0x00007fff88b06938 libsystem_c.dylib`putc + 32 |
---|
| 0 | + | frame #2: 0x000000001dc60018 beam.smp`write_buf + 273 |
---|
| 0 | + | frame #3: 0x000000001dc6064d beam.smp`insert_buf + 481 |
---|
| 0 | + | frame #4: 0x000000001dc5fc46 beam.smp`put_chars + 9 |
---|
| 0 | + | frame #5: 0x000000001dc5f276 beam.smp`ttysl_from_erlang + 110 |
---|
| 0 | + | frame #6: 0x000000001db8c3a0 beam.smp`erts_write_to_port + 2875 |
---|
| 0 | + | frame #7: 0x000000001db8d75c beam.smp`erts_port_command + 256 |
---|
| 0 | + | frame #8: 0x000000001db854c7 beam.smp`do_send + 1319 |
---|
| 0 | + | frame #9: 0x000000001db84ce0 beam.smp`erl_send + 38 |
---|
| 0 | + | frame #10: 0x000000001dc0e6c8 beam.smp`process_main + 18935 |
---|
| 0 | + | frame #11: 0x000000001db9a52a beam.smp`sched_thread_func + 506 |
---|
| 0 | + | frame #12: 0x000000001dc79c08 beam.smp`thr_wrapper + 111 |
---|
| 0 | + | frame #13: 0x00007fff88b1e8bf libsystem_c.dylib`_pthread_start + 335 |
---|
| 0 | + | frame #14: 0x00007fff88b21b75 libsystem_c.dylib`thread_start + 13 |
---|
| 0 | + | |
---|
| 0 | + | ### crash2 |
---|
| 0 | + | dave@akai tmp % lldb process attach -n beam.smp |
---|
| 0 | + | Warning: program arguments are ignored when attaching. |
---|
| 0 | + | Attaching to process with: |
---|
| 0 | + | process attach -n "beam.smp" |
---|
| 0 | + | Process 16887 stopped |
---|
| 0 | + | Executable module set to "/usr/local/Cellar/erlang/R15B/lib/erlang/erts-5.9/bin/beam.smp". |
---|
| 0 | + | Architecture set to: x86_64. |
---|
| 0 | + | (lldb) c |
---|
| 0 | + | Process 16887 resuming |
---|
| 0 | + | Process 16887 stopped |
---|
| 0 | + | * thread #5: tid = 0x2403, 0x00007fff88b661ec libsystem_c.dylib`flockfile + 15, stop reason = EXC_BAD_ACCESS (code=1, address=0x68) |
---|
| 0 | + | frame #0: 0x00007fff88b661ec libsystem_c.dylib`flockfile + 15 |
---|
| 0 | + | libsystem_c.dylib`flockfile + 15: |
---|
| 0 | + | -> 0x7fff88b661ec: movq 104(%rbx), %rdi |
---|
| 0 | + | 0x7fff88b661f0: cmpq %rax, 72(%rdi) |
---|
| 0 | + | 0x7fff88b661f4: jne 0x00007fff88b661fe ; flockfile + 33 |
---|
| 0 | + | 0x7fff88b661f6: incl 80(%rdi) |
---|
| 0 | + | (lldb) thread list |
---|
| 0 | + | Process 16887 stopped |
---|
| 0 | + | thread #1: tid = 0x1f03, 0x00007fff87b7bdf2 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10 |
---|
| 0 | + | thread #2: tid = 0x2103, 0x00007fff87b7caf2 libsystem_kernel.dylib`read + 10 |
---|
| 0 | + | thread #3: tid = 0x2203, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #4: tid = 0x2303, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | * thread #5: tid = 0x2403, 0x00007fff88b661ec libsystem_c.dylib`flockfile + 15, stop reason = EXC_BAD_ACCESS (code=1, address=0x68) |
---|
| 0 | + | thread #6: tid = 0x2503, 0x00000000136e9cfe beam.smp`sched_spin_wait + 35 |
---|
| 0 | + | thread #7: tid = 0x2603, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #8: tid = 0x2703, 0x00007fff87b7bdf2 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10 |
---|
| 0 | + | thread #9: tid = 0x2803, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #10: tid = 0x2903, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #11: tid = 0x2a03, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #12: tid = 0x2b03, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | thread #13: tid = 0x2c03, 0x00007fff87b7bbca libsystem_kernel.dylib`__psynch_cvwait + 10 |
---|
| 0 | + | (lldb) thread backtrace |
---|
| 0 | + | * thread #5: tid = 0x2403, 0x00007fff88b661ec libsystem_c.dylib`flockfile + 15, stop reason = EXC_BAD_ACCESS (code=1, address=0x68) |
---|
| 0 | + | frame #0: 0x00007fff88b661ec libsystem_c.dylib`flockfile + 15 |
---|
| 0 | + | frame #1: 0x00007fff88b06938 libsystem_c.dylib`putc + 32 |
---|
| 0 | + | frame #2: 0x00000000137a5018 beam.smp`write_buf + 273 |
---|
| 0 | + | frame #3: 0x00000000137a564d beam.smp`insert_buf + 481 |
---|
| 0 | + | frame #4: 0x00000000137a4c46 beam.smp`put_chars + 9 |
---|
| 0 | + | frame #5: 0x00000000137a4276 beam.smp`ttysl_from_erlang + 110 |
---|
| 0 | + | frame #6: 0x00000000136d13a0 beam.smp`erts_write_to_port + 2875 |
---|
| 0 | + | frame #7: 0x00000000136d275c beam.smp`erts_port_command + 256 |
---|
| 0 | + | frame #8: 0x00000000136ca4c7 beam.smp`do_send + 1319 |
---|
| 0 | + | frame #9: 0x00000000136c9ce0 beam.smp`erl_send + 38 |
---|
| 0 | + | frame #10: 0x00000000137536c8 beam.smp`process_main + 18935 |
---|
| 0 | + | frame #11: 0x00000000136df52a beam.smp`sched_thread_func + 506 |
---|
| 0 | + | frame #12: 0x00000000137bec08 beam.smp`thr_wrapper + 111 |
---|
| 0 | + | frame #13: 0x00007fff88b1e8bf libsystem_c.dylib`_pthread_start + 335 |
---|
| 0 | + | frame #14: 0x00007fff88b21b75 libsystem_c.dylib`thread_start + 13 |
---|
| 0 | + | (lldb) q |
---|
... | |
---|