[ 0:00] | load /home/xrockai/src/divine/nightly/test/pthread/div/deadlock-partial.c deadlock-partial.c [ 0:00] | expect --result error --location deadlock-partial.c:10 [ 0:00] | expect --trace FAULT: --trace-count 1 [ 0:00] | cc -o testcase.bc deadlock-partial.c [ 0:00] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --leakcheck exit testcase.bc [ 0:00] compiling deadlock-partial.c [ 0:00] loading bitcode … DiOS … LART … RR … constants … done [ 0:03] booting … done [ 0:03] states per second: 587.883 [ 0:04] state count: 786 [ 0:04] mips: 0.53 [ 0:04] [ 0:05] error found: yes [ 0:05] error trace: | [ 0:05] FAULT: deadlock: circular wait on a mutex [ 0:05] [0] FATAL: locking error in userspace [ 0:05] [ 0:05] active stack: [ 0:05] - symbol: void __dios::FaultBase::handler<__dios::Context>(_VM_Fault, _VM_Frame*, void (*)()) [ 0:05] location: /dios/sys/fault.hpp:118 [ 0:05] - symbol: __dios_fault [ 0:05] location: /dios/arch/divm/fault.c:12 [ 0:05] - symbol: __dios::_mutex_lock(__dios::_InterruptMask&, pthread_mutex_t*, bool) [ 0:05] location: /dios/libc/pthread/pthread-mutex.cpp:51 [ 0:05] - symbol: pthread_mutex_lock [ 0:05] location: /dios/libc/pthread/pthread-mutex.cpp:173 [ 0:05] - symbol: thr [ 0:05] location: deadlock-partial.c:10 [ 0:05] - symbol: main [ 0:05] location: deadlock-partial.c:38 [ 0:05] - symbol: __dios_start [ 0:05] location: /dios/libc/sys/start.cpp:94 [ 0:05] + divine sim --batch --skip-init --load-report verify.out [ 0:06] [ 0:08] ^ —————. —.— . . —.— . . .————— . . [ 0:08] ——— | | | | | | |\ | | | | [ 0:08] —(o)— | | | | | | | \ | |———— '————| [ 0:08] ——————— | | | \ / | | \| | | [ 0:08] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:08] [ 0:08] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:08] traced states: [ 0:09] ▶ state #11 [new] -- active threads: [0:0] 0:1 0:2 0:3 -- [ 0:09] T: FAULT: deadlock: circular wait on a mutex [ 0:09] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:09] # NOTE: $frame in __dios_fault [ 0:09] > backtrace [ 0:09] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:09] __dios_fault at /dios/arch/divm/fault.c:12 [ 0:09] __dios::_mutex_lock(__dios::_InterruptMask&, pthread_mutex_t*, bool) at /dios/libc/pthread/pthread-mutex.cpp:51 [ 0:09] pthread_mutex_lock at /dios/libc/pthread/pthread-mutex.cpp:173 [ 0:09] thr at deadlock-partial.c:10 [ 0:09] main at deadlock-partial.c:38 [ 0:09] __dios_start at /dios/libc/sys/start.cpp:94 [ 0:09] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:09] # NOTE: $frame in __dios_fault