Boost logo

Boost Users :

Subject: Re: [Boost-users] strange "fatal errors" with Boost.Test
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2010-03-12 17:44:39


Christoph Groth <cwg <at> falma.de> writes:

>
> Dear boost experts,
>
> while adding regression tests to my project I experience very strange
> errors. I am using boost 1.40 and g++ 4.4 as packaged in Debian
> testing.
>
> Program received signal SIGILL, Illegal instruction.
> 0x0000000000410106 in boost::itest::expectations_logger::data_flow
(this=Cannot access memory at
> address 0x3fdffffffffffe38
> ) at /usr/include/boost/test/impl/logged_expectations.ipp:188
> 188 BOOST_CHECK_EQUAL( *tit, DATA_SIG ); ++tit;
> (gdb) bt
> #0 0x0000000000410106 in boost::itest::expectations_logger::data_flow
(this=Cannot access memory
> at address 0x3fdffffffffffe38
> ) at /usr/include/boost/test/impl/logged_expectations.ipp:188
> Cannot access memory at address 0x3fe0000000000008
> ################################################################
>
> The test case (file test_glass.cc) is just:
> ################################################################
> #define BOOST_TEST_MODULE lg
> #include <boost/test/included/unit_test.hpp>
>
> #include "defs.hh"
> #include "glass.hh"
>
> BOOST_AUTO_TEST_CASE(sq_dist)
> {
> Levy::Vecd a(2, 1);
> Levy::Glass sys(Levy::Vecd(1, 1), Levy::Vecb(true, true));
> }

This makes no sense. Your test program does not refer to the itest facilities.
There is single testing tool involved as well. Something seriously screwing up
the stack.

Can you try to go step by step in the debugger? Can you also try build UTF as
external library?

Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net