[LLVMbugs] [Bug 18668] New: Clang crashes when compiling any program c Program

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 29 19:22:11 PST 2014


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

            Bug ID: 18668
           Summary: Clang crashes when compiling any program c Program
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sam.w.coulter at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11974
  --> http://llvm.org/bugs/attachment.cgi?id=11974&action=edit
Files the error message told me to include.

clang crashes when compiling the following c program (clang test.c)

int main() {
   int i = 1;
   return i;
}

This is a 32 bit debian virtual machine running on Oracle VM VirtualBox 4.3.6
which is running on a 64 bit Win7 PC

Error Message:

clang test.c
clang-3.3: /home/kzvr/llfi/llvmsrc/lib/IR/Value.cpp:559: void
llvm::ValueHandleBase::RemoveFromUseList(): Assertion `VP.getPointer() &&
VP.getPointer()->HasValueHandle && "Pointer doesn't have a use list!"' failed.
0  clang-3.3 0x0971b28a llvm::sys::PrintStackTrace(_IO_FILE*) + 50
1  clang-3.3 0x0971b4dd
2  clang-3.3 0x0971aee4
3            0xb7784400 __kernel_sigreturn + 0
4            0xb7784422 __kernel_vsyscall + 2
5  libc.so.6 0xb74e9941 gsignal + 81
6  libc.so.6 0xb74ecd72 abort + 386
7  libc.so.6 0xb74e2b58 __assert_fail + 248
8  clang-3.3 0x0963ed0d llvm::ValueHandleBase::RemoveFromUseList() + 103
9  clang-3.3 0x08d42654
10 clang-3.3 0x092e6244
11 clang-3.3 0x0975f1c0
12 clang-3.3 0x09759aba
clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl,
clang::QualType, llvm::Function*, clang::CodeGen::CGFunctionInfo const&,
clang::CodeGen::FunctionArgList const&, clang::SourceLocation) + 692
13 clang-3.3 0x0975a589
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 473
14 clang-3.3 0x0976b822
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 650
15 clang-3.3 0x09768a93
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 383
16 clang-3.3 0x097684a9
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 587
17 clang-3.3 0x0976e638
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 252
18 clang-3.3 0x0974b446
19 clang-3.3 0x0974a63f
20 clang-3.3 0x09a6b136 clang::ParseAST(clang::Sema&, bool, bool) + 484
21 clang-3.3 0x0998da40 clang::ASTFrontendAction::ExecuteAction() + 284
22 clang-3.3 0x09749b2a clang::CodeGenAction::ExecuteAction() + 1090
23 clang-3.3 0x0998d5f5 clang::FrontendAction::Execute() + 183
24 clang-3.3 0x09969615
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 559
25 clang-3.3 0x097200c9
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 939
26 clang-3.3 0x08856b6b cc1_main(char const**, char const**, char const*,
void*) + 624
27 clang-3.3 0x08851500 main + 523
28 libc.so.6 0xb74d5e46 __libc_start_main + 230
29 clang-3.3 0x0884fec1
Stack dump:
0.    Program arguments: /home/kzvr/llfi/clang/bin/clang-3.3 -cc1 -triple
i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier
-main-file-name test.c -mrelocation-model static -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu pentium4
-resource-dir /home/kzvr/llfi/clang/bin/../lib/clang/3.3 -internal-isystem
/usr/local/include -internal-isystem
/home/kzvr/llfi/clang/bin/../lib/clang/3.3/include -internal-externc-isystem
/usr/include/i386-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -fdebug-compilation-dir
/home/kzvr/llfi/runs/factorial -ferror-limit 19 -fmessage-length 80
-mstackrealign -fobjc-runtime=gcc -fobjc-default-synthesize-properties
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o /tmp/test-5cXCng.o -x c test.c 
1.    <eof> parser at end of file
2.    test.c:1:5: LLVM IR generation of declaration 'main'
3.    test.c:1:5: Generating code for declaration 'main'
clang-3.3: error: unable to execute command: Aborted
clang-3.3: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (tags/RELEASE_33/final)
Target: i386-pc-linux-gnu
Thread model: posix
clang-3.3: 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.3: 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.3: note: diagnostic msg: /tmp/test-8q4Q3g.c
clang-3.3: note: diagnostic msg: /tmp/test-8q4Q3g.sh
clang-3.3: note: diagnostic msg: 

********************

-- 
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/20140130/5f4db595/attachment.html>


More information about the llvm-bugs mailing list