[LLVMbugs] [Bug 10710] New: clang++ crashed with assertion failure in SCCP

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 20 01:58:12 PDT 2011


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

           Summary: clang++ crashed with assertion failure in SCCP
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: yoshiki at xemacs.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


I was compiling Open Shogi Library (available at
http://gps.tanaka.ecc.u-tokyo.ac.jp/cgi-bin/viewvc.cgi/trunk/osl/) revision
4371 with llvm and clang revision 137824 and got the following error.  Please
let me know if you need more information.

clang: /home/yoshiki/llvm/lib/Transforms/Scalar/SCCP.cpp:379:
<unnamed>::LatticeVal&<unnamed>::SCCPSolver::getValueState(llvm::Value*):
Assertion `!V->getType()->isStructTy() && "Should use getStructValueState"'
failed.
0  clang           0x000000000294929e
1  clang           0x0000000002949091
2  libpthread.so.0 0x00002ac375d29f60
3  libc.so.6       0x00002ac37691b165 gsignal + 53
4  libc.so.6       0x00002ac37691df70 abort + 384
5  libc.so.6       0x00002ac3769142b1 __assert_fail + 241
6  clang           0x00000000025e8668
7  clang           0x00000000025ec239
8  clang           0x00000000025edad6
9  clang           0x0000000002877986
llvm::MPPassManager::runOnModule(llvm::Module&) + 456
10 clang           0x0000000002877e98 llvm::PassManagerImpl::run(llvm::Module&)
+ 130
11 clang           0x00000000028783ed llvm::PassManager::run(llvm::Module&) +
39
12 clang           0x00000000011d4949
13 clang           0x00000000011d4a69
clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 140
14 clang           0x00000000011d1ae5
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 451
15 clang           0x00000000013507c6 clang::ParseAST(clang::Sema&, bool) + 727
16 clang           0x00000000010733c5 clang::ASTFrontendAction::ExecuteAction()
+ 263
17 clang           0x00000000011d0e06 clang::CodeGenAction::ExecuteAction() +
986
18 clang           0x0000000001073018 clang::FrontendAction::Execute() + 326
19 clang           0x0000000001057b3d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 751
20 clang           0x0000000001029705
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1002
21 clang           0x000000000101a3b2 cc1_main(char const**, char const**, char
const*, void*) + 945
22 clang           0x0000000001024d31 main + 484
23 libc.so.6       0x00002ac376907c4d __libc_start_main + 253
24 clang           0x0000000001019a79
Stack dump:
0.      Program arguments: /home/yoshiki/build/Debug+Asserts/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
binaryIO.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu amdfam10
-target-linker-version 2.20.1 -momit-leaf-frame-pointer -g -coverage-file
misc/binaryIO.o -resource-dir
/home/yoshiki/build/Debug+Asserts/bin/../lib/clang/3.0 -D
OSL_HOME="/home/yoshiki/osl" -D DEBUG -D OSL_SMP -D _REENTRANT -I ../include
-O2 -Wno-deprecated -Wall -Wwrite-strings -Wextra -Wstrict-aliasing=2
-Woverloaded-virtual -Wwrite-strings -Wpointer-arith -Wno-unused-parameter
-Wno-missing-field-initializers -Werror -Wunused-parameter -fconst-strings
-ferror-limit 19 -fmessage-length 178 -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o misc/binaryIO.o -x c++
misc/binaryIO.cc
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'Interprocedural Sparse Conditional Constant Propagation'
on module 'misc/binaryIO.cc'.
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/cc-MCV2rX.ii

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