[llvm-bugs] [Bug 31923] New: SEGV when starting thread with empty body
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 9 10:23:05 PST 2017
https://llvm.org/bugs/show_bug.cgi?id=31923
Bug ID: 31923
Summary: SEGV when starting thread with empty body
Product: clang
Version: 3.9
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: llvm at baszerr.eu
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 17962
--> https://llvm.org/bugs/attachment.cgi?id=17962&action=edit
example reproducing issue
starting thread, with empty function/lambda body causes SEGV, when compiled
with optimizations and profiling. adding any delay when starting thread (like
sleep for a nanosecond) fixes the issue.
example code is attached. compile it with:
clang++-3.9 -std=c++11 -O1 -pg -lpthread thread.cpp
i'm observing this behavior on clang++ starting with 3.5 up to 3.9,
inclusively.
--
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/20170209/8b61eabc/attachment-0001.html>
More information about the llvm-bugs
mailing list