Boost logo

Boost :

Subject: Re: [boost] [test] crash with the following test
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2010-09-27 10:44:31


On Fri, Sep 24, 2010 at 8:38 AM, Felipe Magno de Almeida
<felipe.m.almeida_at_[hidden]> wrote:
> Hello,
>
> Since I couldn't solve the problem in boost-users list I'm forwarding here.
>
> ---------- Forwarded message ----------
> From: Felipe Magno de Almeida <felipe.m.almeida_at_[hidden]>
> Date: Wed, Sep 22, 2010 at 2:07 PM
> Subject: [test] crash with the following test
> To: boost-users_at_[hidden]
>
>
> With boost 1.44.0 (the same happens with 1.43) the following test
> causes a crash in framework.ipp:388 with a dereference of a NULL
> pointer. The test_unit* res returns NULL from
> s_frk_impl().m_test_units[id] where id is 1.
>
> id is equal to 1 because when unit_test::framework::run is ran, id is
> INV_TEST_UNIT_ID is passed to it. Then in framework.ipp:399 if id ==
> INV_TEST_UNIT_ID id is assigned the value in master_test_suite().p_id
> which is 1.
>
> I've verified that when master_test_suite is constructed it assigns
> INV_TEST_UNIT_ID to p_id, so I'm lost why this is 1 here.
>
> Then, back in framework.ipp:386 s_frk_impl().m_test_units there's only
> one element in the map and the id is 65535 and not one.
>
> -- test.cpp --
> #define BOOST_TEST_MODULE parse_empty_import_documents
> #include <boost/test/included/unit_test.hpp>
>
> BOOST_AUTO_TEST_CASE (parse_empty_import_documents)
> {
> }
> -- test.cpp --

ping?

> Any help would be appreciated.
> --
> Felipe Magno de Almeida

-- 
Felipe Magno de Almeida

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk