[ 0:01] | load /var/obj/divine-nightly/semidbg/test/_expand/weakmem/x86-tso/sb.pkg.c/x1y1.c x1y1.c [ 0:01] | expect --result error --location x1y1.c:60 [ 0:01] | expect --trace FAULT: --trace-count 1 [ 0:01] | cc -o testcase.bc -DCHECK=3 x1y1.c [ 0:01] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --relaxed-memory tso testcase.bc [ 0:01] compiling x1y1.c [ 0:01] loading bitcode … DiOS … LART … RR … constants … done [ 0:04] booting … done [ 0:04] states per second: 20.0869 [ 0:10] state count: 111 [ 0:10] mips: 0.31 [ 0:10] relaxed memory: tso [ 0:12] [ 0:12] error found: yes [ 0:12] error trace: | [ 0:12] FAULT: x1y1.c:60: int main() [ 0:12] [0] FATAL: assertion failure in userspace [ 0:12] [ 0:12] active stack: [ 0:35] - symbol: void __dios::FaultBase::handler<__dios::Context>(_VM_Fault, _VM_Frame*, void (*)()) [ 0:36] location: /dios/sys/fault.hpp:118 [ 0:36] - symbol: __dios_fault [ 0:36] location: /dios/arch/divm/fault.c:12 [ 0:36] - symbol: __assert_fail [ 0:36] location: /dios/libc/_PDCLIB/assert.c:24 [ 0:36] - symbol: main [ 0:36] location: x1y1.c:60 [ 0:36] - symbol: __dios_start [ 0:36] location: /dios/libc/sys/start.cpp:94 [ 0:36] + divine sim --batch --skip-init --load-report verify.out [ 0:36] [ 0:39] ^ —————. —.— . . —.— . . .————— . . [ 0:39] ——— | | | | | | |\ | | | | [ 0:39] —(o)— | | | | | | | \ | |———— '————| [ 0:39] ——————— | | | \ / | | \| | | [ 0:39] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:39] [ 0:39] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:39] traced states: [ 0:45] ▶ state #9 [new] -- active threads: [0:0] -- [ 0:45] T: FAULT: x1y1.c:60: int main() [ 1:01] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 1:01] # NOTE: $frame in __dios_fault [ 1:01] > backtrace [ 1:01] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 1:01] __dios_fault at /dios/arch/divm/fault.c:12 [ 1:01] __assert_fail at /dios/libc/_PDCLIB/assert.c:24 [ 1:01] main at x1y1.c:60 [ 1:01] __dios_start at /dios/libc/sys/start.cpp:94 [ 1:01] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 1:01] # NOTE: $frame in __dios_fault