[ 0:01] | load /home/xrockai/src/divine/next-staging/test/lang-c/global-ctors-dtors.c global-ctors-dtors.c [ 0:01] | expect --result error --location global-ctors-dtors.c:31 [ 0:01] | expect --trace FAULT: --trace-count 1 [ 0:01] | cc -o testcase.bc global-ctors-dtors.c [ 0:01] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --leakcheck exit testcase.bc [ 0:01] compiling global-ctors-dtors.c [ 0:01] loading bitcode … DiOS … LART … RR … constants … done [ 0:03] booting … done [ 0:03] states per second: 93.75 [ 0:03] state count: 3 [ 0:03] mips: 0.34 [ 0:03] [ 0:03] error found: yes [ 0:03] error trace: | [ 0:03] FAULT: global-ctors-dtors.c:31: void dt_last(): assertion '0' failed [ 0:03] [0] FATAL: assertion failure in userspace [ 0:03] [ 0:03] active stack: [ 0:03] - symbol: void __dios::FaultBase::handler<__dios::Context>(_VM_Fault, _VM_Frame*, void (*)()) [ 0:04] location: /dios/sys/fault.hpp:118 [ 0:04] - symbol: __dios_fault [ 0:04] location: /dios/arch/divm/fault.c:12 [ 0:04] - symbol: __assert_fail [ 0:04] location: /dios/libc/_PDCLIB/assert.c:24 [ 0:04] - symbol: dt_last [ 0:04] location: global-ctors-dtors.c:31 [ 0:04] - symbol: __dios_call_global_dtors [ 0:04] location: (unknown location) [ 0:04] - symbol: __dios_run_dtors [ 0:04] location: /dios/libc/sys/start.cpp:54 [ 0:04] - symbol: _exit [ 0:04] location: /dios/libc/sys/start.cpp:65 [ 0:04] - symbol: _Exit [ 0:04] location: /dios/libc/stdlib/_Exit.c:19 [ 0:04] - symbol: exit [ 0:04] location: /dios/libc/stdlib/exit.c:6 [ 0:04] - symbol: __dios_start [ 0:04] location: /dios/libc/sys/start.cpp:113 [ 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:06] ▶ state #2 [new] -- active threads: [0:0] -- [ 0:06] T: FAULT: global-ctors-dtors.c:31: void dt_last(): assertion '0' failed [ 0:06] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:06] # NOTE: $frame in __dios_fault [ 0:06] > backtrace [ 0:06] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:06] __dios_fault at /dios/arch/divm/fault.c:12 [ 0:06] __assert_fail at /dios/libc/_PDCLIB/assert.c:24 [ 0:06] dt_last at global-ctors-dtors.c:31 [ 0:06] __dios_call_global_dtors at (unknown location) [ 0:06] __dios_run_dtors at /dios/libc/sys/start.cpp:54 [ 0:06] _exit at /dios/libc/sys/start.cpp:65 [ 0:06] _Exit at /dios/libc/stdlib/_Exit.c:19 [ 0:06] exit at /dios/libc/stdlib/exit.c:6 [ 0:06] __dios_start at /dios/libc/sys/start.cpp:113 [ 0:06] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:06] # NOTE: $frame in __dios_fault