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