[LLVMbugs] [Bug 11374] New: test/CodeGenObjC/exceptions.m causes assertion failure

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 14 13:39:19 PST 2011


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

             Bug #: 11374
           Summary: test/CodeGenObjC/exceptions.m causes assertion failure
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ben.langmuir at intel.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The clang regression test CodeGenObjC/exceptions.m causes an assertion failure
in llvm/lib/VMCore/Value.cpp when built with CMAKE_BUILD_TYPE=Debug.

cmake -DCMAKE_BUILD_TYPE=Debug ...
make
make clang-test

Stack trace:
#0  0x00007ffff6eccba5 in raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007ffff6ed06b0 in abort () at abort.c:92
#2  0x00007ffff6ec5a71 in __assert_fail (assertion=0x2f60610 "VP == Next->VP &&
\"Added to wrong list?\"", file=<value optimized out>, line=428, 
    function=0x2f614c0 "void
llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)") at
assert.c:81
#3  0x00000000027e5def in llvm::ValueHandleBase::AddToExistingUseList
(this=0x7fffffffba60, List=0x39fba78) at
/home/blangmui/llvm/lib/VMCore/Value.cpp:428
#4  0x0000000001018b5b in llvm::ValueHandleBase::ValueHandleBase
(this=0x7fffffffba60, Kind=llvm::ValueHandleBase::Weak, RHS=...)
    at /home/blangmui/llvm/include/llvm/Support/ValueHandle.h:70
#5  0x000000000107f095 in llvm::WeakVH::WeakVH (this=0x7fffffffba60, RHS=...)
at /home/blangmui/llvm/include/llvm/Support/ValueHandle.h:139
#6  0x000000000256bee6 in (anonymous
namespace)::CGPassManager::RefreshCallGraph (this=0x3a141d0, CurSCC=...,
CG=..., CheckingMode=false)
    at /home/blangmui/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:238
#7  0x000000000256c9af in (anonymous
namespace)::CGPassManager::RunAllPassesOnSCC (this=0x3a141d0, CurSCC=...,
CG=..., DevirtualizedCall=@0x7fffffffbdbe)
    at /home/blangmui/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:415
#8  0x000000000256cb58 in (anonymous namespace)::CGPassManager::runOnModule
(this=0x3a141d0, M=...) at
/home/blangmui/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:455
#9  0x00000000027cb8fb in llvm::MPPassManager::runOnModule (this=0x3a0ec50,
M=...) at /home/blangmui/llvm/lib/VMCore/PassManager.cpp:1588
#10 0x00000000027cbe02 in llvm::PassManagerImpl::run (this=0x3a0e900, M=...) at
/home/blangmui/llvm/lib/VMCore/PassManager.cpp:1672
#11 0x00000000027cc34b in llvm::PassManager::run (this=0x39a1210, M=...) at
/home/blangmui/llvm/lib/VMCore/PassManager.cpp:1716
#12 0x0000000001050ada in (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly (this=0x7fffffffc010,
Action=clang::Backend_EmitLL, OS=0x39b1d70)
    at /home/blangmui/clang/lib/CodeGen/BackendUtil.cpp:391
#13 0x0000000001050bf1 in clang::EmitBackendOutput (Diags=..., CGOpts=...,
TOpts=..., LOpts=..., M=0x39b9950, Action=clang::Backend_EmitLL, OS=0x39b1d70)
    at /home/blangmui/clang/lib/CodeGen/BackendUtil.cpp:408
#14 0x000000000104c2d9 in clang::BackendConsumer::HandleTranslationUnit
(this=0x39b2f60, C=...) at
/home/blangmui/clang/lib/CodeGen/CodeGenAction.cpp:152
#15 0x00000000012f1c2d in clang::ParseAST (S=..., PrintStats=false) at
/home/blangmui/clang/lib/Parse/ParseAST.cpp:101
#16 0x0000000001276495 in clang::ASTFrontendAction::ExecuteAction
(this=0x39a6860) at /home/blangmui/clang/lib/Frontend/FrontendAction.cpp:411
#17 0x000000000104adaa in clang::CodeGenAction::ExecuteAction (this=0x39a6860)
at /home/blangmui/clang/lib/CodeGen/CodeGenAction.cpp:402
#18 0x00000000012760e6 in clang::FrontendAction::Execute (this=0x39a6860) at
/home/blangmui/clang/lib/Frontend/FrontendAction.cpp:331
#19 0x00000000012560a7 in clang::CompilerInstance::ExecuteAction
(this=0x39a4c00, Act=...) at
/home/blangmui/clang/lib/Frontend/CompilerInstance.cpp:659
#20 0x0000000001021236 in clang::ExecuteCompilerInvocation (Clang=0x39a4c00) at
/home/blangmui/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:173
#21 0x000000000101761c in cc1_main (ArgBegin=0x7fffffffcc00,
ArgEnd=0x7fffffffcc60, Argv0=0x39a4578 "/home/blangmui/clang/build/bin/clang",
MainAddr=0x10106f4)
    at /home/blangmui/clang/tools/driver/cc1_main.cpp:160
#22 0x0000000001011eb4 in main (argc_=14, argv_=0x7fffffffdcc8) at
/home/blangmui/clang/tools/driver/driver.cpp:354

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