[llvm-bugs] [Bug 45373] New: std::shuffle freeze up
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 31 06:28:40 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45373
Bug ID: 45373
Summary: std::shuffle freeze up
Product: libc++
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: release blocker
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: sdanie at protonmail.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Created attachment 23297
--> https://bugs.llvm.org/attachment.cgi?id=23297&action=edit
C++ source file showcasing the problem.
Using std::shuffle with a generator that yields the same value for all calls
causes std::shuffle to freeze up. I attached a C++ source file showcasing the
problem.
Replicates on:
Apple clang version 11.0.0 (clang-1100.0.33.12)
Target: x86_64-apple-darwin19.3.0
Thread model: posix
Replication:
clang++ -o bug.exe -std=c++17 bug.cpp && ./bug.exe
The application will freeze when trying to shuffle the elements.
The application will no longer freeze if the 17th element is removed from
samples.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200331/8b96a4b9/attachment-0001.html>
More information about the llvm-bugs
mailing list