[Bug target/94087] std::random_device often fails when used from multiple threads

rguenther at suse dot de gcc-bugzilla@gcc.gnu.org
Thu May 14 11:37:11 GMT 2020


--- Comment #16 from rguenther at suse dot de <rguenther at suse dot de> ---
On Thu, 14 May 2020, redi at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94087
> --- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
> (In reply to wnereiz from comment #9)
> > This issue seems not limit to a certain GCC version. I tried the code with
> > gcc7, gcc9 and gcc10 on openSUSE Tumbleweed. All failed.
> As Richard said, the code to use rdseed was added for GCC 10, so there is no
> way you're seeing the same problem on earlier releases.

We only ship a single C++ runtime which is usually from the latest
compiler thus a GCC 7 compiled binary run on openSUSE Tumbleweed
picks up libstdc++.so.6 built from GCC 10 sources.

More information about the Gcc-bugs mailing list