Boost logo

Boost :

Subject: [boost] [task][fiber] question about memory leaks
From: Dorogan' Konstantin (saydex_at_[hidden])
Date: 2010-11-11 03:21:16


  Sorry for my "good" english. :)

I'am try to use boost.task 0.4.2 in my project.

I found some leaks in the files handle.hpp and task.hpp related
use_count member initialization. So boost::intrusive_ptr can't release
allocated resources.

After fixing promblem of the use_count initialization, i ran my unit
tests again, but some leaks still living. I discovered that the problem
is in the boost.fiber (v 0.5.1).
If i try to run compiled unit tests of the boost.fiber manually, the
garbage collector of the boost.test shows the leaks. In hopes of finding
the place of data leaks, I perform these tests under Rational Purify,
but Puify reports that no leaks were detected.

Is the garbage collector of the boost.test lies, or the leaks is real!?

Tested environment:
Windows 7 x64, Windows XP
boost 1.42.0
boost.context 0.2.0
boost.task 0.4.2
boost.fiber 0.5.1


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