[LLVMbugs] [Bug 21131] New: New clang crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 2 08:56:24 PDT 2014


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

            Bug ID: 21131
           Summary: New clang crash
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: andrew.b.adams at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13114
  --> http://llvm.org/bugs/attachment.cgi?id=13114&action=edit
Crashing preprocessed source.

trunk clang crashes on the attached file. Worked on the morning of Oct 1,
doesn't work now. Looks debug related.

Script:


"/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64/bin/clang-3.6"
-cc1 -triple i386-unknown-unknown-unknown -emit-llvm -disable-free
-main-file-name opencl.cpp -mrelocation-model static -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -g
-dwarf-column-info -D "DEBUG_RUNTIME" -D "COMPILING_HALIDE_RUNTIME" -D
"BITS_32" -Wall -Werror -Wno-unused-function -Wcast-qual -fdeprecated-macro
-ferror-limit 19 -fmessage-length 0 -ffreestanding -mstackrealign
-fobjc-runtime=gcc -fdiagnostics-show-option -x c++ opencl-1cedac.cpp

Backtrace:

clang-3.6:
/usr/local/google/home/abadams/projects/Halide/llvm/trunk/lib/IR/DebugInfo.cpp:163:
uint64_t llvm::DIExpression::getElement(unsigned int) const: Assertion `false
&& "non-existing complex address element requested"' failed.
0  clang-3.6       0x00000000011ac7a2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang-3.6       0x00000000011abca9
2  libpthread.so.0 0x00002b151b53bcb0
3  libc.so.6       0x00002b151c1b20d5 gsignal + 53
4  libc.so.6       0x00002b151c1b583b abort + 379
5  libc.so.6       0x00002b151c1aad9e
6  libc.so.6       0x00002b151c1aae42
7  clang-3.6       0x0000000000e24bfd llvm::DIExpression::getElement(unsigned
int) const + 125
8  clang-3.6       0x0000000000e29140
llvm::DIExpression::printInternal(llvm::raw_ostream&) const + 80
9  clang-3.6       0x0000000000e29fd0
llvm::DIDescriptor::print(llvm::raw_ostream&) const + 528
10 clang-3.6       0x0000000000dec771
llvm::AssemblyWriter::printMDNodeBody(llvm::MDNode const*) + 241
11 clang-3.6       0x0000000000dec9d8 llvm::AssemblyWriter::writeAllMDNodes() +
360
12 clang-3.6       0x0000000000def6ee
llvm::AssemblyWriter::printModule(llvm::Module const*) + 942
13 clang-3.6       0x0000000000df03be llvm::Module::print(llvm::raw_ostream&,
llvm::AssemblyAnnotationWriter*) const + 254
14 clang-3.6       0x0000000000eaae5c llvm::PrintModulePass::run(llvm::Module*)
+ 44
15 clang-3.6       0x0000000000eaaec4
16 clang-3.6       0x0000000000ed01e0
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 800
17 clang-3.6       0x00000000015a5001
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
2865
18 clang-3.6       0x0000000001593d5d
19 clang-3.6       0x0000000001aab425 clang::ParseAST(clang::Sema&, bool, bool)
+ 741
20 clang-3.6       0x0000000001594bbb clang::CodeGenAction::ExecuteAction() +
59
21 clang-3.6       0x0000000001325e16 clang::FrontendAction::Execute() + 118
22 clang-3.6       0x00000000013014f1
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 337
23 clang-3.6       0x00000000013b7463
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2147
24 clang-3.6       0x00000000006a96d8 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 1208
25 clang-3.6       0x0000000000687e52 main + 4594
26 libc.so.6       0x00002b151c19d76d __libc_start_main + 237
27 clang-3.6       0x00000000006a6009
Stack dump:
0.    Program arguments:
/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64/bin/clang-3.6
-cc1 -triple i386-unknown-unknown-unknown -emit-llvm -disable-free
-main-file-name opencl.cpp -mrelocation-model static -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -g
-dwarf-column-info -coverage-file
/usr/local/google/home/abadams/projects/Halide/build/initmod.opencl_32_debug.ll
-resource-dir
/usr/local/google/home/abadams/projects/Halide_trunk/llvm/trunk/build-64/bin/../lib/clang/3.6.0
-dependency-file build/initmod.opencl_32_debug.d -MT
build/initmod.opencl_32_debug.ll -MP -D DEBUG_RUNTIME -D
COMPILING_HALIDE_RUNTIME -D BITS_32 -Wall -Werror -Wno-unused-function
-Wcast-qual -fdeprecated-macro -fdebug-compilation-dir
/usr/local/google/home/abadams/projects/Halide -ferror-limit 19
-fmessage-length 147 -ffreestanding -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -o build/initmod.opencl_32_debug.ll -x c++
src/runtime/opencl.cpp 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Unnamed pass: implement Pass::getPassName()' on module
'src/runtime/opencl.cpp'.
clang-3.6: error: unable to execute command: Aborted (core dumped)
clang-3.6: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.0 (218578)
Target: i386-unknown-unknown-unknown
Thread model: posix
clang-3.6: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.6: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.6: note: diagnostic msg: /tmp/opencl-74d673.cpp
clang-3.6: note: diagnostic msg: /tmp/opencl-74d673.sh
clang-3.6: note: diagnostic msg: 

********************
make: *** [build/initmod.opencl_32_debug.ll] Error 254

-- 
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/20141002/de6b69bd/attachment.html>


More information about the llvm-bugs mailing list