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