[ 0:01] | load /var/obj/divine-nightly/semidbg/test/_expand/svcomp/pthread/reorder.pkg.c/2-2.c 2-2.c [ 0:01] | expect --result error --location 2-2.c:63 [ 0:01] | expect --trace FAULT: --trace-count 1 [ 0:01] | cc -o testcase.bc -DSET=2 -DCHECK=2 2-2.c [ 0:01] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --leakcheck exit -o nofail:malloc testcase.bc [ 0:01] compiling 2-2.c [ 0:01] loading bitcode … DiOS … LART … RR … constants … done [ 0:04] booting … done [ 0:04] states per second: 147.253 [ 0:05] state count: 134 [ 0:05] mips: 0.36 [ 0:05] [ 0:06] error found: yes [ 0:06] error trace: | [ 0:06] FAULT: 2-2.c:63: void *checkThread(void *): assertion '(a == 0 && b == 0) || (a == 1 && b == -1)' failed [ 0:06] [3] FATAL: assertion failure in userspace [ 0:06] [ 0:06] active stack: [ 0:06] - symbol: void __dios::FaultBase::handler<__dios::Context>(_VM_Fault, _VM_Frame*, void (*)()) [ 0:06] location: /dios/sys/fault.hpp:118 [ 0:06] - symbol: __dios_fault [ 0:06] location: /dios/arch/divm/fault.c:12 [ 0:06] - symbol: __assert_fail [ 0:06] location: /dios/libc/_PDCLIB/assert.c:24 [ 0:06] - symbol: checkThread [ 0:06] location: 2-2.c:63 [ 0:06] - symbol: __pthread_start [ 0:06] location: /dios/libc/pthread/pthread-init.cpp:79 [ 0:06] - symbol: __pthread_entry [ 0:06] location: /dios/libc/pthread/pthread-core.cpp:50 [ 0:06] + divine sim --batch --skip-init --load-report verify.out [ 0:06] [ 0:11] ^ —————. —.— . . —.— . . .————— . . [ 0:11] ——— | | | | | | |\ | | | | [ 0:11] —(o)— | | | | | | | \ | |———— '————| [ 0:11] ——————— | | | \ / | | \| | | [ 0:11] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:11] [ 0:11] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:11] traced states: [ 0:12] ▶ state #7 [new] -- active threads: 0:0 0:1 0:2 [0:3] -- [ 0:12] T: FAULT: 2-2.c:63: void *checkThread(void *): assertion '(a == 0 && b == 0) || (a == 1 && b == -1)' failed [ 0:12] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:12] # NOTE: $frame in __dios_fault [ 0:12] > backtrace [ 0:12] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:12] __dios_fault at /dios/arch/divm/fault.c:12 [ 0:12] __assert_fail at /dios/libc/_PDCLIB/assert.c:24 [ 0:12] checkThread at 2-2.c:63 [ 0:12] __pthread_start at /dios/libc/pthread/pthread-init.cpp:79 [ 0:12] __pthread_entry at /dios/libc/pthread/pthread-core.cpp:50 [ 0:12] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:12] # NOTE: $frame in __dios_fault