[ 0:01] | load /home/xrockai/src/divine/next-staging/test/lang-cpp/exception-uncaught.cpp exception-uncaught.cpp [ 0:01] | expect --result error --symbol __terminate [ 0:01] | cc -o testcase.bc -std=c++14 exception-uncaught.cpp [ 0:01] | verify --max-memory 4GiB --max-time 600 --threads 2 --report-filename verify.out --leakcheck exit testcase.bc [ 0:01] compiling exception-uncaught.cpp [ 0:01] loading bitcode … DiOS … LART … RR … constants … done [ 0:04] booting … done [ 0:04] states per second: 252.427 [ 0:04] state count: 26 [ 0:04] mips: 0.34 [ 0:04] [ 0:04] error found: yes [ 0:04] error trace: | [ 0:04] [0] terminating with uncaught exception of type int [ 0:04] FAULT: Uncaught signal. [ 0:04] [0] FATAL: control error in kernel [ 0:04] [ 0:04] active stack: [ 0:06] - symbol: void __dios::FaultBase::handler<__dios::Context>(_VM_Fault, _VM_Frame*, void (*)()) [ 0:08] location: /dios/sys/fault.hpp:118 [ 0:08] - symbol: __dios_fault [ 0:08] location: /dios/arch/divm/fault.c:12 [ 0:08] - symbol: int __dios::Scheduler<__dios::Clock<__dios::NondetChoose<__dios::Base> > >::_kill<__dios::ProcessManager<__dios::Fault<__dios::Scheduler<__dios::Clock<__dios::NondetChoose<__dios::Base> > > > >::kill(int, int)::'lambda'(auto*)>(int, int, auto) [ 0:08] location: /dios/sys/sched_base.hpp:407 [ 0:08] - symbol: __dios::ProcessManager<__dios::Fault<__dios::Scheduler<__dios::Clock<__dios::NondetChoose<__dios::Base> > > > >::kill(int, int) [ 0:08] location: /dios/sys/procmanager.hpp:275 [ 0:08] - symbol: __dios::SysProxy::kill(int, int) [ 0:08] location: /dios/include/sys/argpad.hpp:53 [ 0:08] - symbol: __libc_kill [ 0:08] location: /dios/include/sys/argpad.hpp:113 [ 0:08] - symbol: raise [ 0:08] location: /dios/libc/_PDCLIB/glue.c:175 [ 0:08] - symbol: abort [ 0:08] location: /dios/libc/stdlib/abort.c:14 [ 0:08] - symbol: abort_message [ 0:08] location: /dios/libcxxabi/src/abort_message.cpp:77 [ 0:08] - symbol: demangling_terminate_handler() [ 0:08] location: /dios/libcxxabi/src/cxa_default_handlers.cpp:68 [ 0:08] + divine sim --batch --skip-init --load-report verify.out [ 0:08] [ 0:11] ^ —————. —.— . . —.— . . .————— . . [ 0:11] ——— | | | | | | |\ | | | | [ 0:11] —(o)— | | | | | | | \ | |———— '————| [ 0:11] ——————— | | | \ / | | \| | | [ 0:11] ————————— —————' —'— ' —'— ' ' '————— ' [ 0:11] [ 0:11] Welcome to 'divine sim', an interactive debugger. Type 'help' to get started. [ 0:11] traced states: [ 0:11] ▶ state #7 [new] -- active threads: [0:0] -- [ 0:11] T: [0] terminating with uncaught exception of type int [ 0:11] T: FAULT: Uncaught signal. [ 0:11] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:11] # NOTE: $frame in __dios_fault [ 0:11] > backtrace [ 0:11] void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:11] __dios_fault at /dios/arch/divm/fault.c:12 [ 0:11] int {Scheduler}::_kill<{ProcMan}::kill(int, int)::'lambda'(auto*)>(int, int, auto) at /dios/sys/sched_base.hpp:407 [ 0:11] {ProcMan}::kill(int, int) at /dios/sys/procmanager.hpp:275 [ 0:11] __dios::SysProxy::kill(int, int) at /dios/include/sys/argpad.hpp:53 [ 0:11] __libc_kill at /dios/include/sys/argpad.hpp:113 [ 0:11] raise at /dios/libc/_PDCLIB/glue.c:175 [ 0:11] abort at /dios/libc/stdlib/abort.c:14 [ 0:11] abort_message at /dios/libcxxabi/src/abort_message.cpp:77 [ 0:11] demangling_terminate_handler() at /dios/libcxxabi/src/cxa_default_handlers.cpp:68 [ 0:11] std::__terminate(void (*)()) at /dios/libcxxabi/src/cxa_handlers.cpp:61 [ 0:11] __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) at /dios/libcxxabi/src/cxa_exception.cpp:154 [ 0:11] __cxa_throw at /dios/libcxxabi/src/cxa_exception.cpp:286 [ 0:11] foo() at exception-uncaught.cpp:7 [ 0:11] main at exception-uncaught.cpp:12 [ 0:11] __dios_start at /dios/libc/sys/start.cpp:94 [ 0:11] # executing void __dios::FaultBase::handler<{Context}>(_VM_Fault, _VM_Frame*, void (*)()) at /dios/sys/fault.hpp:118 [ 0:12] # NOTE: $frame in __dios_fault