(gdb) catch throw Catchpoint 1 (throw) (gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) n Program not restarted. (gdb) c Continuing. mtn: 36.8 M | 62.6 k | 0/588 | 0/147 Catchpoint 1 (exception thrown) 0x2890d1e5 in __cxa_throw () from /usr/lib/libstdc++.so.4 (gdb) bt #0 0x2890d1e5 in __cxa_throw () from /usr/lib/libstdc++.so.4 #1 0x2891023e in operator new () from /usr/lib/libstdc++.so.4 #2 0x0807997e in __gnu_cxx::new_allocator::allocate () #3 0x288c9aa2 in std::string::_Rep::_S_create () from /usr/lib/libstdc++.so.4 #4 0x288c9be9 in std::string::_Rep::_M_clone () from /usr/lib/libstdc++.so.4 #5 0x288c77b8 in std::string::reserve () from /usr/lib/libstdc++.so.4 #6 0x288c7bdc in std::string::append () from /usr/lib/libstdc++.so.4 #7 0x082fd2e4 in std::length_error::~length_error () #8 0x082f99cc in std::length_error::~length_error () #9 0x082f9bbb in std::length_error::~length_error () #10 0x081b35cf in std::invalid_argument::~invalid_argument () #11 0x0822c24c in std::setfill () #12 0x08232d17 in std::setfill () #13 0x082b09ea in std::distance () #14 0x08350d26 in __gnu_cxx::new_allocator::new_allocator () #15 0x08355894 in __gnu_cxx::new_allocator::new_allocator () #16 0x08357025 in __gnu_cxx::new_allocator::new_allocator () #17 0x08358dc2 in __gnu_cxx::new_allocator::new_allocator () #18 0x083664c3 in __gnu_cxx::new_allocator::new_allocator () #19 0x080a9c34 in boost::detail::sp_counted_base::~sp_counted_base () #20 0x0807d302 in boost::detail::sp_counted_base::~sp_counted_base () #21 0x084f0dbe in std::_Rb_tree, std::_Select1st<---Type to continue, or q to quit--- std::pair >, std::less, std::allocator > >::insert_unique () #22 0x084f383b in std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::insert_unique () #23 0x084f3b52 in std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::insert_unique () #24 0x084f4042 in std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::insert_unique () #25 0x08057041 in ?? () #26 0x00000006 in ?? () #27 0xbfbfe814 in ?? () #28 0xbfbfe830 in ?? () #29 0x08057036 in ?? () #30 0x086385b8 in __moddi3 () #31 0x00000006 in ?? () (gdb) The program is running. Exit anyway? (y or n) y