[LLVMbugs] [Bug 8490] New: clang crashes while optimizing a snippet of C code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 27 16:05:15 PDT 2010


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

           Summary: clang crashes while optimizing a snippet of C code
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pipping at exherbo.org
                CC: nicholas at mxc.ca, llvmbugs at cs.uiuc.edu
        Depends on: 8336,8471


I've tried to compile gimp with clang 2.9-trunk.

While compiling app/gegl/gimpoperationcolorbalance.c, clang crashes. This
happens with -O1 but not with -O0 or with gcc 4.4.5.

I'm on amd64 linux 2.6.36.

*** Attempting to perform final cleanups: opt: Instructions.cpp:1624: void
llvm::BinaryOperator::init(llvm::Instruction::BinaryOps): Assertion
`getType()->isIntOrIntVectorTy() && "Tried to create an integer operation on a
non-integer type!"' failed.
0  libLLVM-2.9svn.so 0x00007f631accde4f
1  libLLVM-2.9svn.so 0x00007f631acce439
2  libpthread.so.0   0x00007f631a237ca0
3  libc.so.6         0x00007f631955bea5 gsignal + 53
4  libc.so.6         0x00007f631955d13f abort + 383
5  libc.so.6         0x00007f6319555061 __assert_fail + 241
6  libLLVM-2.9svn.so 0x00007f631ad640ff
llvm::BinaryOperator::init(llvm::Instruction::BinaryOps) + 639
7  libLLVM-2.9svn.so 0x00007f631ad652e5
llvm::BinaryOperator::CreateNeg(llvm::Value*, llvm::Twine const&,
llvm::Instruction*) + 309
8  libLLVM-2.9svn.so 0x00007f631ab5e377
9  libLLVM-2.9svn.so 0x00007f631ab7959e
10 libLLVM-2.9svn.so 0x00007f631ab7a05f
11 libLLVM-2.9svn.so 0x00007f631ad825ab
llvm::FPPassManager::runOnFunction(llvm::Function&) + 331
12 libLLVM-2.9svn.so 0x00007f631ad8288b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
13 libLLVM-2.9svn.so 0x00007f631ad829d8
llvm::MPPassManager::runOnModule(llvm::Module&) + 280
14 libLLVM-2.9svn.so 0x00007f631ad82f72
llvm::PassManagerImpl::run(llvm::Module&) + 210
15 libLLVM-2.9svn.so 0x00007f631ad834cd llvm::PassManager::run(llvm::Module&) +
13
16 opt               0x000000000040fb17 main + 4983
17 libc.so.6         0x00007f6319548b6d __libc_start_main + 253
18 opt               0x000000000040a069
Stack dump:
0.      Program arguments: /usr/bin/opt -o bugpoint-output.bc -instcombine
bugpoint-input.bc 
1.      Running pass 'Function Pass Manager' on module 'bugpoint-input.bc'.
2.      Running pass 'Combine redundant instructions' on function
'@gimp_operation_color_balance_map'
Crashed with signal #6
Dumped core
Emitted bitcode to 'bugpoint-reduced-simplified.bc'

*** You can reproduce the problem with: opt bugpoint-reduced-simplified.bc
-instcombine

-- 
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