Boost logo

Boost Users :

Subject: Re: [Boost-users] [atomic] ThreadSanitizer reports a data race when using the code from "reference counting" example
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2014-07-01 06:25:23


On 1 Jul 2014 at 9:12, Adam Romanek wrote:

> > I'd try replacing boost::atomic with std::atomic and see if the same
> > thing happens. Oh, and use a recent libstdc++. If it's only happening
> > in Boost, report it as a bug.
>
> The same happens with std::atomic from both libstdc++ [1] and libc++ [2]
> (I should be using pretty recent versions of these as I'm on Ubuntu
> 14.04). So this is not a Boost-only issue.

In this situation I'd report it to the clang thread sanitiser bug
tracker. The chances are low that both Boost and a recent STL are
simultaneously wrong.

Niall

-- 
ned Productions Limited Consulting
http://www.nedproductions.biz/ 
http://ie.linkedin.com/in/nialldouglas/



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