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