有没有办法防止'Gtk::Main::iteration()‘捕获异常?
每当在处理程序中抛出异常时,它就会捕获,然后程序以SIGTRAP (在linux中)结束。带着这样的信息:
(test.debug.bin:32233): glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: test
在按ctrl+c时,我得到了以下错误
^Cctrl-c
terminate called without an active exception
Aborted (core dumped)
这里是gdb stackstrace:
(gdb) bt
#0 0x0000003a47432625 in raise () from /lib64/libc.so.6
#1 0x0000003a47433e05 in abort () from /lib64/libc.so.6
#2 0x0000003a4a46007d in __gnu_cxx::__verbose_terminate_handl