[LLVMbugs] [Bug 16547] New: Regression: clang analyzer prefixes /tmp/ to output file
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jul 5 06:19:33 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16547
Bug ID: 16547
Summary: Regression: clang analyzer prefixes /tmp/ to output
file
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: pelle at morth.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Steps to reproduce (on linux):
:; cat > bad.c <<EOT
#include <stdlib.h>
int
warning(void) {
char *x;
free(x);
}
EOT
:; strace -f clang --analyze -Xanalyzer -analyzer-output=html bad.c -o
bad.analyse |& grep html
Expected result (cleaned, from clang-3.2):
[pid 7019] mkdir("bad.analyse", 0770) = 0
[pid 7019] open("bad.analyse/report-5CmV5o", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
[pid 7019] rename("bad.analyse/report-5CmV5o",
"bad.analyse/report-5CmV5o.html") = 0
[pid 7019] open("bad.analyse/report-5CmV5o.html", O_WRONLY|O_CREAT|O_TRUNC,
0664) = 3
Actual result:
[pid 21986] mkdir("bad.analyse", 0770) = 0
[pid 21986] open("/tmp/bad.analyse/report-35e1c7.html", O_RDWR|O_CREAT|O_EXCL,
0600) = -1 ENOENT (No such file or directory)
Notes:
Regression since 3.2.
I tried bisecting but it turned out to be too difficult to find revisions that
actually compiled. Maybe I didn't have decency tracking setup right...
--
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/20130705/7f763e05/attachment.html>
More information about the llvm-bugs
mailing list