[llvm-bugs] [Bug 33870] New: Fatal error when compiling with dataflow sanitizer (DFSan) - "fatal error: error in backend: Broken function found, compilation aborted!"
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 20 20:48:07 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33870
Bug ID: 33870
Summary: Fatal error when compiling with dataflow sanitizer
(DFSan) - "fatal error: error in backend: Broken
function found, compilation aborted!"
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: rtrieu at google.com
CC: llvm-bugs at lists.llvm.org
$ cat blacklist.txt
fun:snprintf=uninstrumented
fun:snprintf=custom
$ cat reduce.cpp
extern "C" void snprintf(...);
void Foo() {
char a[1];
snprintf(0, a);
}
$ clang -cc1 -emit-obj -O1 -fsanitize=dataflow
-fsanitize-blacklist=dfsan_abilist.txt -x c++ reduce.cpp
Wrong types for attribute: byval inalloca nest noalias nocapture nonnull
readnone readonly sret dereferenceable(1) dereferenceable_or_null(1)
call void (i16*, ...) @__dfsw_snprintf(i16* %3, i32 nonnull 0, i8* %0) #5
fatal error: error in backend: Broken function found, compilation aborted!
--
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/20170721/714c25bd/attachment.html>
More information about the llvm-bugs
mailing list