[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

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 17 06:31:54 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34976

            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
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         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
implementation.

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...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171017/b975bfc4/attachment.html>


More information about the llvm-bugs mailing list