GNU gdb 6.3.50-20050815 (Apple version gdb-1822) (Sun Aug 5 03:00:42 UTC 2012) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .... done [?1034h(gdb) r Starting program: /Users/dxy/Documents/Projects/test/a.out Reading symbols for shared libraries +++............................. done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x00000001003fe911 in boost::unit_test::framework::get () (gdb) bt fa ull #0 0x00000001003fe911 in boost::unit_test::framework::get () No symbol table info available. #1 0x000000010040a100 in boost::unit_test::results_collector_t::assertion_result () No symbol table info available. #2 0x0000000100007c13 in boost::unit_test::framework::assertion_result (passed=true) at framework.ipp:470 to = ('boost::unit_test::test_observer' *) 0x100110488 _fe_con_469 = false _fe_cur_469 = (static_any_t) @0x7fff5fbfd448: {} _fe_end_469 = (static_any_t) @0x7fff5fbfd420: {} #3 0x000000010000c079 in boost::test_tools::tt_detail::check_impl (pr=@0x7fff5fbfe4c0, check_descr=@0x7fff5fbfe4a0, file_name={m_begin = 0x1000bc9c5 "boost_test_segfault.cc", m_end = 0x1000bc9db ""}, line_num=7, tl=boost::test_tools::tt_detail::PASS, ct=boost::test_tools::tt_detail::CHECK_PRED, num_of_args=0) at test_tools.ipp:357 ll = boost::unit_test::log_successful_tests prefix = 0x1000bbd01 "check " suffix = 0x1000bbd08 " passed" #4 0x000000010001d2d9 in test1::test_method (this=0x7fff5fbfe518) at boost_test_segfault.cc:7 No locals. #5 0x000000010001d1b1 in test1_invoker () at boost_test_segfault.cc:5 t = { = {}, } #6 0x0000000100038016 in boost::unit_test::ut_detail::invoker::invoke (this=0x7fff5fbfe578, f=@0x100603e08) at callback.hpp:56 No locals. #7 0x0000000100037feb in boost::unit_test::ut_detail::callback0_impl_t::invoke (this=0x100603e00) at callback.hpp:89 No locals. #8 0x000000010002f916 in boost::unit_test::callback0::operator() (this=0x100604208) at callback.hpp:118 No locals. #9 0x000000010002aad8 in boost::unit_test::(anonymous namespace)::zero_return_wrapper_t >::operator() (this=0x100605e38) at unit_test_monitor.ipp:41 No locals. #10 0x000000010002aab9 in boost::unit_test::ut_detail::invoker::invoke > > (this=0x7fff5fbfe620, f=@0x100605e38) at callback.hpp:42 No locals. #11 0x000000010002aa8b in boost::unit_test::ut_detail::callback0_impl_t > >::invoke (this=0x100605e30) at callback.hpp:89 No locals. #12 0x00000001000892c6 in boost::unit_test::callback0::operator() (this=0x7fff5fbfebb8) at callback.hpp:118 No locals. #13 0x000000010002fb57 in boost::detail::do_invoke, boost::unit_test::callback0 > (tr=@0x1001104a8, F=@0x7fff5fbfebb8) at execution_monitor.ipp:281 No locals. #14 0x000000010000efbf in boost::execution_monitor::catch_signals (this=0x100110498, F=@0x7fff5fbfebb8) at execution_monitor.ipp:885 local_signal_handler = { m_prev_handler = 0x0, m_timeout = 0, m_ILL_action = { m_sig = 4, m_installed = true, m_new_action = { __sigaction_u = { __sa_handler = 0x10000e4f0 , __sa_sigaction = 0x10000e4f0 }, sa_mask = 0, sa_flags = 65 }, m_old_action = { __sigaction_u = { __sa_handler = 0, __sa_sigaction = 0 }, sa_mask = 1669365499, sa_flags = 0 } }, m_FPE_action = { m_sig = 8, m_installed = true, m_new_action = { __sigaction_u = { __sa_handler = 0x10000e4f0 , __sa_sigaction = 0x10000e4f0 }, sa_mask = 0, sa_flags = 67 }, m_old_action = { __sigaction_u = { __sa_handler = 0, __sa_sigaction = 0 }, sa_mask = 0, sa_flags = 2 } }, m_SEGV_action = { m_sig = 11, m_installed = true, m_new_action = { __sigaction_u = { __sa_handler = 0x10000e4f0 , __sa_sigaction = 0x10000e4f0 }, sa_mask = 0, sa_flags = 65 }, m_old_action = { __sigaction_u = { __sa_handler = 0, __sa_sigaction = 0 }, sa_mask = 1669365499, sa_flags = 0 } }, m_BUS_action = { m_sig = 10, m_installed = true, m_new_action = { __sigaction_u = { __sa_handler = 0x10000e4f0 , __sa_sigaction = 0x10000e4f0 }, sa_mask = 0, sa_flags = 65 }, m_old_action = { __sigaction_u = { __sa_handler = 0, __sa_sigaction = 0 }, sa_mask = 1669365499, sa_flags = 0 } }, m_CHLD_action = { m_sig = 20, m_installed = true, m_new_action = { __sigaction_u = { __sa_handler = 0x10000e4f0 , __sa_sigaction = 0x10000e4f0 }, sa_mask = 0, sa_flags = 65 }, m_old_action = { __sigaction_u = { __sa_handler = 0, __sa_sigaction = 0 }, sa_mask = 0, sa_flags = 0 } }, m_POLL_action = { m_sig = 1100312, m_installed = false, m_new_action = { __sigaction_u = { __sa_handler = 0x7fff5fbfe838, __sa_sigaction = 0x7fff5fbfe838 }, sa_mask = 1606412304, sa_flags = 32767 }, m_old_action = { __sigaction_u = { __sa_handler = 0x10004350d const, boost::runtime::environment::rt_env_detail::variable_data> >::_Rb_tree_iterator(std::_Rb_tree_node const, boost::runtime::environment::rt_env_detail::variable_data> >*)+29>, __sa_sigaction = 0x10004350d const, boost::runtime::environment::rt_env_detail::variable_data> >::_Rb_tree_iterator(std::_Rb_tree_node const, boost::runtime::environment::rt_env_detail::variable_data> >*)+29> }, sa_mask = 1100312, sa_flags = 1 } }, m_ABRT_action = { m_sig = 6, m_installed = true, m_new_action = { __sigaction_u = { __sa_handler = 0x10000e4f0 , __sa_sigaction = 0x10000e4f0 }, sa_mask = 0, sa_flags = 65 }, m_old_action = { __sigaction_u = { __sa_handler = 0, __sa_sigaction = 0 }, sa_mask = 1669365499, sa_flags = 0 } }, m_ALRM_action = { m_sig = 14, m_installed = false, m_new_action = { __sigaction_u = { __sa_handler = 0x10010ca18 , __sa_sigaction = 0x10010ca18 }, sa_mask = 1606412448, sa_flags = 32767 }, m_old_action = { __sigaction_u = { __sa_handler = 0x100044ad8 , std::pair const, boost::runtime::environment::rt_env_detail::variable_data>, std::_Select1st const, boost::runtime::environment::rt_env_detail::variable_data> >, std::less >, std::allocator const, boost::runtime::environment::rt_env_detail::variable_data> > >::find(boost::unit_test::basic_cstring const&)+248>, __sa_sigaction = 0x100044ad8 , std::pair const, boost::runtime::environment::rt_env_detail::variable_data>, std::_Select1st const, boost::runtime::environment::rt_env_detail::variable_data> >, std::less >, std::allocator const, boost::runtime::environment::rt_env_detail::variable_data> > >::find(boost::unit_test::basic_cstring const&)+248> }, sa_mask = 1606412584, sa_flags = 32767 } }, m_sigjmp_buf = {0, 0, 1606412560, 32767, 1606411920, 32767, 0, 0, 0, 0, 0, 0, 0, 0, 61324, 1, 5204480, 1, 8064, 895, 0, 1, 0, 1, 2, 0, 24, 0, 310744, 0, 5193968, 1, 6291458, 1, 5204484, 1, 2, 32767}, m_sys_sig = { m_sig_info = 0x0, m_context = 0x0 }, static s_active_handler = 0x7fff5fbfe708 } #15 0x000000010000541a in boost::execution_monitor::execute (this=0x100110498, F=@0x7fff5fbfebb8) at execution_monitor.ipp:1211 ex = 0x10002ab5c "" ex = (string &) @0x100523000: { _M_dataplus = { > = { <__gnu_cxx::new_allocator> = {}, }, members of std::basic_string::_Alloc_hider: _M_p = 0x1004f3000 "" }, static npos = 18446744073709551615 } ex = (const 'std::bad_alloc' &) @0x100605e30: { = { _vptr$exception = 0x100111110 }, } ex = (const 'std::bad_cast' &) @0x7fff5fbfebc0: { = { _vptr$exception = 0x100608050 }, } ex = (const 'std::bad_typeid' &) @0x7fff5fbfebb8: { = { _vptr$exception = 0x100605e30 }, } ex = (const 'std::bad_exception' &) @0x7fff5fbfeaa0: { = { _vptr$exception = 0x7fff5fbfeac0 }, } ex = (const 'std::domain_error' &) @0x100605e30: { = { = { _vptr$exception = 0x100111110 }, members of std::logic_error: _M_msg = { _M_dataplus = { > = { <__gnu_cxx::new_allocator> = {}, }, members of std::basic_string::_Alloc_hider: _M_p = 0x100604208 "" }, static npos = 18446744073709551615 } }, } ex = (const 'std::invalid_argument' &) @0x100605e30: { = { = { _vptr$exception = 0x100111110 }, members of std::logic_error: _M_msg = { _M_dataplus = { > = { <__gnu_cxx::new_allocator> = {}, }, members of std::basic_string::_Alloc_hider: _M_p = 0x100604208 "" }, static npos = 18446744073709551615 } }, } ex = (const 'std::length_error' &) @0x7fff5fbfebb8: { = { = { _vptr$exception = 0x100605e30 }, members of std::logic_error: _M_msg = { _M_dataplus = { > = { <__gnu_cxx::new_allocator> = {}, }, members of std::basic_string::_Alloc_hider: _M_p = 0x100608050 "`\021\021" }, static npos = 18446744073709551615 } }, } ex = (const 'std::out_of_range' &) @0x7fff5fbfeac0: { = { = { _vptr$exception = 0x7fff5fbfeb10 }, members of std::logic_error: _M_msg = { _M_dataplus = { > = { <__gnu_cxx::new_allocator> = {}, }, members of std::basic_string::_Alloc_hider: _M_p = 0x10002a915 "H@]ÉHEMH}Í\a" }, static npos = 18446744073709551615 } }, } ex = (const 'std::range_error' &) @0x10002a95d: { = { = { _vptr$exception = 0x6666c35d10c48348 }, members of std::runtime_error: _M_msg = { _M_dataplus = { > = { <__gnu_cxx::new_allocator> = {}, }, members of std::basic_string::_Alloc_hider: _M_p = 0x841f0f2e6666
}, static npos = 18446744073709551615 } }, } ex = (const 'std::overflow_error' &) @0x100605e30: { = { = { _vptr$exception = 0x100111110 }, members of std::runtime_error: _M_msg = { _M_dataplus = { > = { <__gnu_cxx::new_allocator> = {}, }, members of std::basic_string::_Alloc_hider: _M_p = 0x100604208 "" }, static npos = 18446744073709551615 } }, } ex = (const 'std::underflow_error' &) @0x7fff5fbfebb8: { = { = { _vptr$exception = 0x100605e30 }, members of std::runtime_error: _M_msg = { _M_dataplus = { > = { <__gnu_cxx::new_allocator> = {}, }, members of std::basic_string::_Alloc_hider: _M_p = 0x100608050 "`\021\021" }, static npos = 18446744073709551615 } }, } ex = (const 'std::logic_error' &) @0x7fff5fbfeb10: { = { _vptr$exception = 0x7fff5fbfeb30 }, members of std::logic_error: _M_msg = { _M_dataplus = { > = { <__gnu_cxx::new_allocator> = {}, }, members of std::basic_string::_Alloc_hider: _M_p = 0x7fff5fbfebb8 "0^`" }, static npos = 18446744073709551615 } } ex = ('std::runtime_error' &) @0x10002a915: { = { _vptr$exception = 0xd189c35d40c48348 }, members of std::runtime_error: _M_msg = { _M_dataplus = { > = { <__gnu_cxx::new_allocator> = {}, }, members of std::basic_string::_Alloc_hider: _M_p = 0x48dc4d89e0458948
}, static npos = 18446744073709551615 } } ex = ('std::exception' &) @0x100605e30: { _vptr$exception = 0x100111110 } ex = (const 'boost::exception' &) @0x100605e30: { _vptr$exception = 0x100111110, data_ = { px_ = 0x100604208 }, throw_function_ = 0x10010ebf0 " \006", throw_file_ = 0x1
, throw_line_ = 6316056 } ex = (const 'boost::system_error' &) @0x7fff5fbfebb8: { p_errno = { > = { value = 4301282864 }, }, p_failed_exp = { > = { value = 0x100608050 "`\021\021" }, } } ex = ('boost::detail::system_signal_exception' &) @0x7fff5fbfeb28: { m_sig_info = 0x7fff5fbfebb8, m_context = 0x7fff5fbfebf0 } #16 0x0000000100016f38 in boost::unit_test::unit_test_monitor_t::execute_and_translate (this=0x100110498, tc=@0x1006041b0) at unit_test_monitor.ipp:69 ex = (const 'boost::execution_exception' &) @0xe: #17 0x000000010009a401 in boost::unit_test::framework_impl::visit (this=0x100111f00, tc=@0x1006041b0) at framework.ipp:156 _fe_end_150 = (static_any_t) @0x7fff5fbfef40: {} bkup = 4294967295 _fe_end_165 = (static_any_t) @0x10010ca18: {} _fe_cur_150 = (static_any_t) @0x7fff5fbfef68: {} tc_timer = { _start_time = 17332 } run_result = 32767 elapsed = 4301275744 _fe_cur_165 = (static_any_t) @0x7fff5fbfee40: {} #18 0x000000010001b54f in boost::unit_test::traverse_test_tree (tc=@0x1006041b0, V=@0x100111f00) at unit_test_suite.ipp:193 No locals. #19 0x00000001000076a9 in boost::unit_test::traverse_test_tree (id=65536, V=@0x100111f00) at unit_test_suite.ipp:232 No locals. #20 0x000000010001b7e5 in boost::unit_test::traverse_test_tree (suite=@0x100604290, V=@0x100111f00) at unit_test_suite.ipp:207 id = 65536 _fe_con_206 = false _fe_cur_206 = (static_any_t) @0x7fff5fbff2f0: {} _fe_end_206 = (static_any_t) @0x7fff5fbff2c8: {} #21 0x00000001000076c3 in boost::unit_test::traverse_test_tree (id=1, V=@0x100111f00) at unit_test_suite.ipp:234 No locals. #22 0x00000001000071ca in boost::unit_test::framework::run (id=1, continue_test=true) at framework.ipp:442 tcc = { = { _vptr$test_tree_visitor = 0x100110b40 }, members of boost::unit_test::test_case_counter: p_count = { > = { > = { value = 1 }, }, } } call_start_finish = true was_in_progress = false #23 0x0000000100016bbe in boost::unit_test::unit_test_main (init_func=0x100016da0 , argc=1, argv=0x7fff5fbffaf0) at unit_test_main.ipp:185 ex = ('boost::unit_test::framework::internal_error' &) @0x39976564891e8226: #24 0x0000000100016d91 in main (argc=1, argv=0x7fff5fbffaf0) at unit_test_main.ipp:237 init_func = (init_unit_test_func) 0x100016da0 (gdb) The program is running. Exit anyway? (y or n)