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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to