$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] 1.36 Threads/ASIO causing SEGV when cleaning up thread specific storage
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2008-09-18 04:13:32
spiderlama <spiderlama_at_[hidden]> writes:
> Here's some code that breaks:
>
> boost::thread_specific_ptr<int> tss;
> tss.reset(new int(10));
>
> It seems that the shared_ptr (inside thread_specific_ptr) uses an internal
> memory manager for the reference counter which has already been destructed
> so when the shared_ptr tries to delete this memory it goes boom!
On its own, that doesn't break when I try it. What are your build settings?
Anthony
-- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL