[LLVMbugs] [Bug 15252] New: clang crashes when trying to compile a .ll file

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 13 06:21:18 PST 2013


            Bug ID: 15252
           Summary: clang crashes when trying to compile a .ll file
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alistair.low at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang crashes if I pass a .ll file as input below. I'm not sure if it's ever
useful to do that, but I noticed the crash and thought it was worth reporting
anyway. The crash should be reproducible with either an empty or non-empty
input file.

$ build/bin/clang test.ll
error: unable to create target: 'No available targets are compatible with this
triple, see -version for the available targets.'
0  clang-3.3       0x0000000001859c52 llvm::sys::PrintStackTrace(_IO_FILE*) +
1  clang-3.3       0x0000000001859ed9
2  clang-3.3       0x0000000001859928
3  libpthread.so.0 0x00007fbb2a625cb0
4  clang-3.3       0x0000000001893555
5  clang-3.3       0x00000000018938b3
6  clang-3.3       0x0000000001893b1f
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 136
7  clang-3.3       0x000000000188da88 clang::CodeGenAction::ExecuteAction() +
8  clang-3.3       0x0000000001b0d3c4 clang::FrontendAction::Execute() + 200
9  clang-3.3       0x0000000001ae8608
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 722
10 clang-3.3       0x000000000185ea8c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1018
11 clang-3.3       0x0000000000c5f603 cc1_main(char const**, char const**, char
const*, void*) + 722
12 clang-3.3       0x0000000000c59167 main + 496
13 libc.so.6       0x00007fbb29a6676d __libc_start_main + 237
14 clang-3.3       0x0000000000c578f9
Stack dump:
0.      Program arguments: /home/alistair/llvm/build/bin/clang-3.3 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
test.ll -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64
-momit-leaf-frame-pointer -resource-dir
-ferror-limit 19 -fmessage-length 237 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o /tmp/test-VOuIUQ.o -x ir test.ll
clang-3: error: unable to execute command: Segmentation fault (core dumped)
/usr/bin/ld: cannot find /tmp/test-VOuIUQ.o: No such file or directory
clang-3: error: clang frontend command failed due to signal (use -v to see
clang-3: error: linker command failed with exit code 1 (use -v to see
clang version 3.3
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3: note: diagnostic msg: PLEASE submit a bug report to  and include the
crash backtrace, preprocessed source, and associated run script.
clang-3: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

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/20130213/14d41488/attachment.html>

More information about the llvm-bugs mailing list