Bug 70298 - std::call_once hangs on second call if first threw an exception
Summary: std::call_once hangs on second call if first threw an exception
Status: RESOLVED DUPLICATE of bug 66146
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-18 15:12 UTC by Anthony Williams
Modified: 2016-03-18 15:35 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
call_once_bug.cpp (207 bytes, text/x-csrc)
2016-03-18 15:12 UTC, Anthony Williams
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Williams 2016-03-18 15:12:09 UTC
Created attachment 38026 [details]
call_once_bug.cpp

The attached code will hang on the second call to std::call_once.
Comment 1 nsz 2016-03-18 15:28:07 UTC
i think this is the same as 66146, i'll add an update comment there.

*** This bug has been marked as a duplicate of bug 66146 ***
Comment 2 Jonathan Wakely 2016-03-18 15:31:25 UTC
PR66146 is non-x86, whereas this fails on x86 too. It's possibly related though.
Comment 3 Jonathan Wakely 2016-03-18 15:35:32 UTC
Or more accurately, non-(x86-*-gnu), since x86 with musl libc has the same problem as non-x86 glibc.