> We're getting there!  Can you run util_tests and math_tests under gdb,  
> and show me the stack traces involved?

Sorry for the late reply

math_tests

(gdb) run
Starting program: /Users/phil/src/contrib/ledger/math_tests
Reading symbols for shared libraries +++++++++++++... done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x12141970
0x9677f95f in __gnu_debug::_Safe_iterator_base::_M_detach ()
(gdb) bt
#0  0x9677f95f in __gnu_debug::_Safe_iterator_base::_M_detach ()
#1  0x9677f9ce in __gnu_debug::_Safe_iterator_base::_M_attach ()
#2  0x9677fad4 in __gnu_debug::_Safe_sequence_base::_M_detach_all ()
#3  0x00007355 in
__gnu_debug::_Safe_sequence_base::~_Safe_sequence_base
(this=0xbfffe78c) at safe_base.h:170
#4  0x00008941 in
__gnu_debug::_Safe_sequence<__gnu_debug_def::deque<std::string,
std::allocator<std::string> > >::~_Safe_sequence (this=0xbfffe78c) at
safe_sequence.h:97
#5  0x0000a647 in __gnu_debug_def::deque<std::string,
std::allocator<std::string> >::~deque (this=0xbfffe764) at deque:85
#6  0x000039b7 in __gnu_debug_def::deque<std::string,
std::allocator<std::string> >::~deque (this=0xbfffe764) at deque:85
#7  0x000039cf in CppUnit::Message::~Message (this=0xbfffe760) at
Message.h:39
#8  0x0000c2f9 in CppUnit::AdditionalMessage::~AdditionalMessage
(this=0xbfffe760) at AdditionalMessage.h:40
#9  0x0000c30d in CppUnit::AdditionalMessage::~AdditionalMessage
(this=0xbfffe760) at AdditionalMessage.h:40
#10 0x00004105 in CommodityTestCase::testPriceHistory (this=0x600f30)
at test/unit/t_commodity.cc:43
#11 0x0000c873 in CppUnit::TestCaller<CommodityTestCase>::runTest
(this=0x600f40) at TestCaller.h:166
#12 0x0020646a in CppUnit::TestCaseMethodFunctor::operator() ()
#13 0x001fab25 in CppUnit::DefaultProtector::protect ()
#14 0x00202b83 in CppUnit::ProtectorChain::ProtectFunctor::operator()
()
#15 0x00202911 in CppUnit::ProtectorChain::protect ()
#16 0x0020e5ee in CppUnit::TestResult::protect ()
#17 0x002061a4 in CppUnit::TestCase::run ()
#18 0x00206968 in CppUnit::TestComposite::doRunChildTests ()
#19 0x0020682a in CppUnit::TestComposite::run ()
#20 0x00206968 in CppUnit::TestComposite::doRunChildTests ()
#21 0x0020682a in CppUnit::TestComposite::run ()
#22 0x00206968 in CppUnit::TestComposite::doRunChildTests ()
#23 0x0020682a in CppUnit::TestComposite::run ()
#24 0x0020da8a in CppUnit::TestResult::runTest ()
#25 0x0021044e in CppUnit::TestRunner::run ()
#26 0x00001f18 in main (argc=1, argv=0xbffff2e0) at test/UnitTests.cc:
83

util_tests

(gdb) run
Starting program: /Users/phil/src/contrib/ledger/util_tests
Reading symbols for shared libraries +++++++++++++... done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x74696e61
0x9677f955 in __gnu_debug::_Safe_iterator_base::_M_detach ()
(gdb) bt
#0  0x9677f955 in __gnu_debug::_Safe_iterator_base::_M_detach ()
#1  0x9677f9ce in __gnu_debug::_Safe_iterator_base::_M_attach ()
#2  0x9677fad4 in __gnu_debug::_Safe_sequence_base::_M_detach_all ()
#3  0x0000748d in
__gnu_debug::_Safe_sequence_base::~_Safe_sequence_base
(this=0xbfffeb00) at safe_base.h:170
#4  0x0001aacd in
__gnu_debug::_Safe_sequence<__gnu_debug_def::deque<std::string,
std::allocator<std::string> > >::~_Safe_sequence (this=0xbfffeb00) at
safe_sequence.h:97
#5  0x0000468b in __gnu_debug_def::deque<std::string,
std::allocator<std::string> >::~deque (this=0xbfffead8) at deque:85
#6  0x0001ac81 in __gnu_debug_def::deque<std::string,
std::allocator<std::string> >::~deque (this=0xbfffead8) at deque:85
#7  0x0001ac99 in CppUnit::Message::~Message (this=0xbfffead4) at
Message.h:39
#8  0x0001ace9 in CppUnit::Message::~Message (this=0xbfffead4) at
Message.h:39
#9  0x000060ad in DateTimeTestCase::testConstructors (this=0x501000)
at test/unit/t_times.cc:66
#10 0x0001a9e5 in CppUnit::TestCaller<DateTimeTestCase>::runTest
(this=0x501010) at TestCaller.h:166
#11 0x000d946a in CppUnit::TestCaseMethodFunctor::operator() ()
#12 0x000cdb25 in CppUnit::DefaultProtector::protect ()
#13 0x000d5b83 in CppUnit::ProtectorChain::ProtectFunctor::operator()
()
#14 0x000d5911 in CppUnit::ProtectorChain::protect ()
#15 0x000e15ee in CppUnit::TestResult::protect ()
#16 0x000d91a4 in CppUnit::TestCase::run ()
#17 0x000d9968 in CppUnit::TestComposite::doRunChildTests ()
#18 0x000d982a in CppUnit::TestComposite::run ()
#19 0x000d9968 in CppUnit::TestComposite::doRunChildTests ()
#20 0x000d982a in CppUnit::TestComposite::run ()
#21 0x000d9968 in CppUnit::TestComposite::doRunChildTests ()
#22 0x000d982a in CppUnit::TestComposite::run ()
#23 0x000e0a8a in CppUnit::TestResult::runTest ()
#24 0x000e344e in CppUnit::TestRunner::run ()
#25 0x00002898 in main (argc=1, argv=0xbffff2e0) at test/UnitTests.cc:
83


Reply via email to