[LLVMbugs] [Bug 5633] New: Clang fails on unreadable headers

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Nov 28 04:38:15 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=5633

           Summary: Clang fails on unreadable headers
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: NetBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: neil at daikokuya.co.uk
                CC: llvmbugs at cs.uiuc.edu


$ ~/bin/clang -E -I/tmp /tmp/bug.c
Stack dump:
0.      Program arguments:
/home/neil/src/nobackup/llvm/Release-Asserts/bin/clang-cc -triple
i386-unknown-netbsdelf5.99.15 -E -disable-free -main-file-name bug.c
--relocation-model static --disable-fp-elim --unwind-tables=0 --mcpu=pentium4
--fmath-errno=1 -I/tmp -fmessage-length 80 -fexceptions=0
-fdiagnostics-show-option -fcolor-diagnostics -o - -x c /tmp/bug.c 
clang: error: preprocessor command failed due to signal 11 (use -v to see
invocation)

Here /tmp/bug.c is the one-liner 

#include <stdio.h>

and /tmp/stdio.h is an unreadable file with mode 0.  Note the -I/tmp on the
command line.

$ ~/bin/clang -v
clang version 1.1 (trunk 86834)
Target: i386-unknown-netbsdelf5.99.15
Thread model: posix


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list