[ 0:01] | load /home/xrockai/src/divine/nightly/test/pthread/div/exit-visible-a.cpp exit-visible-a.cpp [ 0:01] | expect --result error --location exit-visible-a.cpp:12 [ 0:01] | expect --trace FAULT: --trace-count 1 [ 0:01] | cc -o testcase.bc -std=c++14 exit-visible-a.cpp [ 0:01] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --leakcheck exit testcase.bc [ 0:01] compiling exit-visible-a.cpp [ 0:01] loading bitcode … DiOS … LART … RR … constants … done [ 0:03] booting … done [ 0:04] states per second: 113.208 [ 0:04] state count: 6 [ 0:04] mips: 0.24 [ 0:04] [ 0:04] error found: yes [ 0:04] error trace: | [ 0:04] FAULT: exit-visible-a.cpp:12: auto main()::(anonymous class)::operator()(void *) const: assertion 'x == 0 || y == 1' failed [ 0:04] [1] FATAL: assertion failure 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: __assert_fail [ 0:05] location: /dios/libc/_PDCLIB/assert.c:24 [ 0:05] - symbol: main::$_0::operator()(void*) const [ 0:05] location: exit-visible-a.cpp:12 [ 0:05] - symbol: main::$_0::__invoke(void*) [ 0:05] location: exit-visible-a.cpp:11 [ 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: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:08] ▶ state #3 [new] -- active threads: 0:0 [0:1] -- [ 0:08] T: FAULT: exit-visible-a.cpp:12: auto main()::(anonymous class)::operator()(void *) const: assertion 'x == 0 || y == 1' failed [ 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] __assert_fail at /dios/libc/_PDCLIB/assert.c:24 [ 0:08] main::$_0::operator()(void*) const at exit-visible-a.cpp:12 [ 0:08] main::$_0::__invoke(void*) at exit-visible-a.cpp:11 [ 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