Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2007-04-30 12:23:38


"KLINIK Markus SDI2-G (AREVA NP GmbH)" <Markus.Klinik_at_[hidden]> wrote in
message
news:2ABE79BD730E7741ADF6C70557CEA87BA2510E_at_egeer00mx01.edom.ad.corp...
> Hi,
>
> there seems to be a problem if Boost.Test and mpatrol are used together.
> The following program hangs and constantly uses more and more memory.
>
> How to reproduce the behaviour:
>
> System: Windows XP Prof. SP2
> MS Visual Studio 7
> mpatrol-1.4.8
> boost-1.33.1
>
> <code>
> #define BOOST_AUTO_TEST_MAIN
> #include <boost/test/auto_unit_test.hpp>
>
> BOOST_AUTO_TEST_CASE(testA)
> {
> int* a = new int[100];
> }
> </code>
>
> After "sourcing" vsvars32.bat the following command was used to compile
> & link the sample.
> cl -Zi -EHsc -ML -Ic:\boost\include\boost-1_33_1 test.cpp -link
> -libpath:c:\local\lib mpatrol.lib -libpath:c:\boost\lib
> libboost_unit_test_framework-vc7-s.lib
>
> Static linkage of mpatrol results in the same behaviour:
> cl -Zi -EHsc -ML -Ic:\boost\include\boost-1_33_1 test.cpp -link
> -libpath:c:\local\lib libmpatrol.lib
> imagehlp.lib -libpath:c:\boost\lib
> libboost_unit_test_framework-vc7-s.lib
>
> Same with -MT, mpatrolmt.lib and
> libboost_unit_test_framework-vc7-mt-s.lib
>
> The combinations
> -MLd, mpatrol.lib and libboost_unit_test_framework-vc7-sgd.lib
> -MTd, mpatrolmt.lib and libboost_unit_test_framework-vc7-mt-sgd.lib
> do not result in the erroneous behaviour, but memory debugging is buggy
> because mpatrol and the M$ debug malloc implementation are incompatible
> (according to the mpatrol documentation/mailing list).

Hi, Markus

I've got no idea what mpatrol is. Did you try to debug it? Try to
use --catch_system_errors=no.

I might not be able to look at this with more details before BoostCon.

HTH,

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