Fw: [Boost-users] Problem with shared_ptr and pthreads_mutex_lock

Paolo Carlini pcarlini@suse.de
Thu Oct 6 19:09:00 GMT 2005


Kurt Kohler wrote:

> I was already using 3.0.1 (specifically 1:3.0.1-1 from the Debian 
> repository). I've attached the output.

Ok, thanks.

> I should emphasize that this isn't just a problem with what valgrind 
> reports. In my real program I was seeing both hangs and asserts in 
> pthread_mutex_lock called from the destructor for shared_count until I 
> switched to using the boost version of shared_ptr.

Of course isn't just such a problem, otherwise you would have posted to 
the valgrind mailing list, right? ;)
But unfortunately, for some reason, the only useful debug info that we 
have so far, I cannot reproduce.

It would be useful to know at least something more about your 
application, for instance whether is heavily multithreaded or not. 
Really, you understand that if we cannot reproduce at least the valgrind 
messages we don't have much, concretely.

Thanks,
Paolo.



More information about the Libstdc++ mailing list