44 lines · plain
1# REQUIRES: python, native && system-darwin2 3# RUN: mkdir -p %t.dir4# RUN: yaml2obj %S/Inputs/interactive_crashlog/multithread-test.yaml > %t.dir/multithread-test5# RUN: %lldb -o 'command script import lldb.macosx.crashlog' \6# RUN: -o 'crashlog -a -i -t %t.dir/multithread-test %S/Inputs/interactive_crashlog/multithread-test.crash' \7# RUN: -o "thread list" -o "bt all" 2>&1 | FileCheck %s8 9# CHECK: "crashlog" {{.*}} commands have been installed, use the "--help" options on these commands10 11# CHECK: (lldb) process status12# CHECK-NEXT: Process 22511 stopped13# CHECK-NEXT: * thread #3, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)14# CHECK-NEXT: frame #0: 0x0000000100ec58f4 multithread-test`bar15 16# CHECK: (lldb) thread backtrace17# CHECK-NEXT: * thread #3, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)18# CHECK-NEXT: * frame #0: 0x0000000100ec58f4 multithread-test`bar{{.*}} [synthetic]19# CHECK-NEXT: frame #1: 0x0000000100ec591b multithread-test`foo{{.*}} [synthetic]20# CHECK-NEXT: frame #2: 0x0000000100ec5a87 multithread-test`compute_pow{{.*}} [synthetic]21 22# CHECK: (lldb) thread list23# CHECK-NEXT: Process 22511 stopped24# CHECK-NEXT: thread #1: tid = 0x0000, 0x000000019cc40b84{{.*}}25# CHECK-NEXT: thread #2: tid = 0x0001, 0x000000019cc42c9c{{.*}}26# CHECK-NEXT: * thread #3: tid = 0x0002, 0x0000000100ec58f4 multithread-test`bar{{.*}}, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)27 28# CHECK: (lldb) bt all29# CHECK: thread #130# CHECK: frame #{{[0-9]+}}: 0x000000019cc40b84{{.*}} [synthetic]31# CHECK: frame #{{[0-9]+}}: 0x0000000100ec5b3b multithread-test`main{{.*}} [synthetic]32# CHECK: frame #{{[0-9]+}}: 0x00000002230f8da7{{.*}} [synthetic]33# CHECK-NEXT: thread #234# CHECK-NEXT: frame #0: 0x000000019cc42c9c{{.*}} [synthetic]35# CHECK: frame #{{[0-9]+}}: 0x0000000100ec5957 multithread-test`call_and_wait{{.*}} [synthetic]36# CHECK: frame #{{[0-9]+}}: 0x000000019cc7e06b{{.*}} [synthetic]37# CHECK: frame #{{[0-9]+}}: 0x000000019cc78e2b{{.*}} [synthetic]38# CHECK-NEXT:* thread #3, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)39# CHECK-NEXT: * frame #0: 0x0000000100ec58f4 multithread-test`bar{{.*}} [synthetic]40# CHECK-NEXT: frame #1: 0x0000000100ec591b multithread-test`foo{{.*}} [synthetic]41# CHECK-NEXT: frame #2: 0x0000000100ec5a87 multithread-test`compute_pow{{.*}} [synthetic]42# CHECK: frame #{{[0-9]+}}: 0x000000019cc7e06b{{.*}} [synthetic]43# CHECK: frame #{{[0-9]+}}: 0x000000019cc78e2b{{.*}} [synthetic]44