On Mon, Sep 14, 2009 at 5:37 PM, Alastair Rankine <arsptr@internode.on.net> wrote:
Hi, I found an issue with testing my Spirit app, but after some investigation it seems to be more of an issue with Boost Test.

The error message is as follows:


Running 2 test cases...

*** No errors detected
spirit2(53940) malloc: *** error for object 0x30001013006d0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug


As the error message suggests I set a breakpoint and got this stack trace:


(gdb) bt
#0  0x00007fff88021b91 in malloc_error_break ()
#1  0x00007fff87f4b083 in free ()
#2  0x000000010006c3ac in boost::unit_test::framework_impl::clear (this=0x1000deec0) at framework.ipp:133
#3  0x000000010006c4aa in boost::unit_test::framework_impl::~framework_impl (this=0x1000deec0) at framework.ipp:122
#4  0x000000010006da1e in __tcf_1 () at framework.ipp:225
#5  0x00007fff87f57274 in __cxa_finalize ()
#6  0x00007fff87f5718c in exit ()
#7  0x000000010000b7bb in start () at unit_test_parameters.ipp:172


Did this get resolved?

--Beman