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