[ 0:01] | load /home/xrockai/src/divine/nightly/test/libcxx/div-extra/thread-race.cpp thread-race.cpp [ 0:01] | expect --result error --location thread-race.cpp:19 [ 0:01] | expect --trace FAULT: --trace-count 1 [ 0:01] | cc -o testcase.bc -std=c++14 thread-race.cpp [ 0:01] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --leakcheck exit testcase.bc [ 0:01] compiling thread-race.cpp [ 0:01] loading bitcode … DiOS … LART … RR … constants … done [ 0:10] booting … done [ 0:11] states per second: 41.4634 [ 0:11] state count: 17 [ 0:11] mips: 0.2 [ 0:11] [ 0:11] error found: yes [ 0:11] error trace: | [ 0:11] FAULT: thread-race.cpp:19: int main(): assertion 'x == 2' failed [ 0:11] [0] FATAL: assertion failure in userspace [ 0:11] [ 0:11] active stack: [ 0:12] - symbol: void __dios::FaultBase::handler<__dios::Context>(_VM_Fault, _VM_Frame*, void (*)()) [ 0:13] location: /dios/sys/fault.hpp:118 [ 0:13] - symbol: __dios_fault [ 0:13] location: /dios/arch/divm/fault.c:12 [ 0:13] - symbol: __assert_fail [ 0:13] location: /dios/libc/_PDCLIB/assert.c:24 [ 0:13] - symbol: main [ 0:13] location: thread-race.cpp:19 [ 0:13] - symbol: __dios_start [ 0:13] location: /dios/libc/sys/start.cpp:94 [ 0:13] + divine sim --batch --skip-init --load-report verify.out [ 0:13] [ 0:19] ^ —————. —.— . . —.— . . .————— . . [ 0:19] ——— | | | | | | |\ | | | | [ 0:19] —(o)— | | | | | | | \ | |———— '————| [ 0:19] ——————— | | | \ / | | \| | | [ 0:19] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:19] [ 0:19] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:19] traced states: [ 0:19] ▶ state #5 [new] -- active threads: [0:0] 0:1 0:2 -- [ 0:19] T: FAULT: thread-race.cpp:19: int main(): assertion 'x == 2' failed [ 0:19] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:19] # NOTE: $frame in __dios_fault [ 0:19] > backtrace [ 0:19] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:19] __dios_fault at /dios/arch/divm/fault.c:12 [ 0:19] __assert_fail at /dios/libc/_PDCLIB/assert.c:24 [ 0:19] main at thread-race.cpp:19 [ 0:19] __dios_start at /dios/libc/sys/start.cpp:94 [ 0:19] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:19] # NOTE: $frame in __dios_fault