Boost logo

Boost Users :

From: Roger Wilco (wilco909_at_[hidden])
Date: 2004-02-29 23:22:44


On Win32:

        {
                // Verify boost tss bug is fixed. (still present as of 1.31.0)
                // This bug will not trigger until application termination.
                boost::thread_specific_ptr<bool> tss;

                bool * testPtr = new bool;
                tss.reset(testPtr);
                tss.reset(NULL); // testPtr is deleted and is now invalid. tss.get()
returns NULL.
                // When tss goes out of scope, an unpatched Boost will erroneously
delete testPtr a second time.
        }

I've posted and emailed this bug at least a dozen times now... I hope
this gets through this time.

This bug seems very blatant; like it would affect lots of people. Is
this bug known? Is Boost threads being actively maintained? This bug has
been present for at least a year.


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