[ 0:00] | load /home/xrockai/src/divine/nightly/test/verify/stdin-err.c stdin-err.c [ 0:00] | expect --result error --location stdin-err.c:12 [ 0:00] | expect --trace FAULT: --trace-count 1 [ 0:00] | cc -o testcase.bc stdin-err.c [ 0:00] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --leakcheck exit --stdin /home/xrockai/src/divine/nightly/test/verify/stdin.bin -o nofail:malloc testcase.bc [ 0:00] compiling stdin-err.c [ 0:00] stdin-err.c:11:14: warning: implicitly declaring library function 'memcmp' with type 'int (const void *, const void *, unsigned long)' [ 0:00] assert( !memcmp( buf, want, 4 ) ); [ 0:00] ^ [ 0:00] stdin-err.c:11:14: note: include the header or explicitly provide a declaration for 'memcmp' [ 0:00] 1 warning generated. [ 0:00] loading bitcode … DiOS … LART … RR … constants … done [ 0:04] booting … done [ 0:04] states per second: 86.9565 [ 0:04] state count: 4 [ 0:04] mips: 0.24 [ 0:04] [ 0:04] error found: yes [ 0:04] error trace: | [ 0:04] FAULT: stdin-err.c:12: int main(): assertion 'read( 0, &buf, 4 ) == 1' failed [ 0:04] [0] FATAL: assertion failure in userspace [ 0:04] [ 0:04] active stack: [ 0:04] - 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:05] location: stdin-err.c:12 [ 0:05] - symbol: __dios_start [ 0:05] location: /dios/libc/sys/start.cpp:94 [ 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:08] T: FAULT: stdin-err.c:12: int main(): assertion 'read( 0, &buf, 4 ) == 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 at stdin-err.c:12 [ 0:08] __dios_start at /dios/libc/sys/start.cpp:94 [ 0:08] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:09] # NOTE: $frame in __dios_fault