[llvm-bugs] [Bug 31209] New: Compiler crash with -fprofile-instr-use at -O0
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 29 10:19:28 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31209
Bug ID: 31209
Summary: Compiler crash with -fprofile-instr-use at -O0
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: rob.lougher at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 17686
--> https://llvm.org/bugs/attachment.cgi?id=17686&action=edit
crashdump
$ clang --version
clang version 4.0.0 (trunk 288143)
Reduced test-case:
$ cat foo.cpp
void fn1(void) __attribute__((__noreturn__));
void foo(void) {fn1(); }
Text-based IR profile:
$ cat profile.txt
# IR level Instrumentation Flag
:ir
_Z3foov
# Func Hash:
12884901887
# Num Counters:
1
# Counter Values:
0
Steps to reproduce crash:
$ llvm-profdata merge profile.txt --output=out.profdata
$ clang foo.cpp -O0 -c -fprofile-instr-use=out.profdata
#0 0x000000000367cfc7 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/llvm/lib/Support/Unix/Signals.inc:402:0
...
(crash dump attached)
The crash does not occur at -O1 or -O2.
--
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/20161129/9bc2ce18/attachment.html>
More information about the llvm-bugs
mailing list