[llvm-bugs] [Bug 34976] New: Use of 'concurrency::parallel_for_each' with the Multi-threaded Debug (/MTd) run-time library causes unhandled exceptions on program exit
llvm-bugs at lists.llvm.org
Tue Oct 17 06:31:54 PDT 2017
Bug ID: 34976
Summary: Use of 'concurrency::parallel_for_each' with the
Multi-threaded Debug (/MTd) run-time library causes
unhandled exceptions on program exit
OS: Windows NT
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: gbreynoo at gmail.com
CC: llvm-bugs at lists.llvm.org
Use of 'parallel_for_each' when compiling with the Visual C++ Compiler uses the
Windows Concurrency Library. We have found that when compiling with /MTd, the
use of 'concurrency::parallel_for_each' can cause unhandled exceptions when the
program is exiting.
This is problematic when debugging or testing.
This issue does not occur when compiling to release or DLL run-time libraries,
and the issue has been raised with Microsoft. However in the meantime we
suggest the removal of this MSVC specific functionality and use the generic
To reproduce this issue consistently:
- Create an an executable with calls to 'parallel_for_each'
- Run executable multiple times in parallel
- The exit codes will be as below:
-1073741819 = C0000005 = Access Violation exception
See attached files for example
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs