[ 0:00] | load /home/xrockai/src/divine/nightly/test/demo/memory.cpp memory.cpp [ 0:00] | load /home/xrockai/src/divine/nightly/test/demo/demo.h demo.h [ 0:00] | expect --result error --location memory.cpp:7 [ 0:00] | expect --trace FAULT: --trace-count 1 [ 0:00] | cc -o testcase.bc -std=c++14 memory.cpp [ 0:00] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --leakcheck exit testcase.bc [ 0:00] compiling memory.cpp [ 0:00] loading bitcode … DiOS … LART … RR … constants … done [ 0:03] booting … done [ 0:03] states per second: 58.8235 [ 0:03] state count: 4 [ 0:03] mips: 0.24 [ 0:03] [ 0:04] error found: yes [ 0:04] error trace: | [ 0:04] [0] writing at index 0 [ 0:04] [0] writing at index 1 [ 0:04] [0] writing at index 2 [ 0:04] [0] writing at index 3 [ 0:04] [0] writing at index 4 [ 0:04] FAULT: access of size 4 at [alloca* 8e83c68 10h ddp] is 4 bytes out of bounds [ 0:04] [0] FATAL: memory error in userspace [ 0:04] [ 0:04] active stack: [ 0:04] - symbol: void __dios::FaultBase::handler<__dios::Context>(_VM_Fault, _VM_Frame*, void (*)()) [ 0:04] location: /dios/sys/fault.hpp:118 [ 0:04] - symbol: foo(int*) [ 0:04] location: memory.cpp:7 [ 0:04] - symbol: main [ 0:04] location: memory.cpp:13 [ 0:04] - symbol: __dios_start [ 0:04] location: /dios/libc/sys/start.cpp:94 [ 0:04] + divine sim --batch --skip-init --load-report verify.out [ 0:04] [ 0:06] ^ —————. —.— . . —.— . . .————— . . [ 0:06] ——— | | | | | | |\ | | | | [ 0:06] —(o)— | | | | | | | \ | |———— '————| [ 0:06] ——————— | | | \ / | | \| | | [ 0:06] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:06] [ 0:06] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:06] traced states: [ 0:07] trace: [ 0:07] T: [0] writing at index 0 [ 0:07] T: [0] writing at index 1 [ 0:07] T: [0] writing at index 2 [ 0:07] T: [0] writing at index 3 [ 0:07] ▶ state #3 [new] -- active threads: [0:0] -- [ 0:07] T: [0] writing at index 4 [ 0:07] T: FAULT: access of size 4 at [alloca* 8e83c68 10h ddp] is 4 bytes out of bounds [ 0:07] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:07] # NOTE: $frame in foo(int*) [ 0:07] > backtrace [ 0:07] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:07] foo(int*) at memory.cpp:7 [ 0:07] main at memory.cpp:13 [ 0:07] __dios_start at /dios/libc/sys/start.cpp:94 [ 0:07] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:07] # NOTE: $frame in foo(int*)