This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/42734] trivial use of std::thread fails with "pure virtual method called"
- From: "damien.buhl at lecbna dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 Dec 2014 00:26:32 +0000
- Subject: [Bug libstdc++/42734] trivial use of std::thread fails with "pure virtual method called"
- Auto-submitted: auto-generated
- References: <bug-42734-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42734
--- Comment #46 from Damien Buhl (daminetreg) <damien.buhl at lecbna dot org> ---
As a pretier alternative you can use boost::thread with boost::atomic as
backend as we did in a yocto cross toolchain with the same issue where latomic
also segfaulted.
Cheers
fenixk19 at mail dot ru <gcc-bugzilla@gcc.gnu.org> a ÃcritÂ:
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42734
>
>--- Comment #45 from Alexander Varnin <fenixk19 at mail dot ru> ---
>(In reply to Damien Buhl (daminetreg) from comment #44)
>
>While given test works properly with -latomic on my installation, my
>application doesn't. It fails with segfault in approximately half of launches.
>Core dump points to some thread execution code. I suppose, it is still broken
>in some way.
>
>Replacing std::thread in my code with pthread_* makes it work properly.
>
>So I conclude, that this std::thread and atomic things is broken on my gcc
>4.8.2 arm freescale imx53 yocto build.
>
>--
>You are receiving this mail because:
>You are on the CC list for the bug.