[LLVMbugs] [Bug 11016] New: Regression: Crash in exception handling codegen

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 26 14:49:56 PDT 2011


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

           Summary: Regression: Crash in exception handling codegen
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu


We're seeing this stack when compiling some internal file:

The unwind destination does not have a landingpad instruction!
  invoke void @FXMEM_DefaultFree(i8* %4, i32 0)
          to label %invoke.cont.i.i.us unwind label %lpad.i.i
LandingPadInst not the first non-PHI instruction in the block.
  %12 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)*
@__gxx_personality_v0 to i8*)
          cleanup, !dbg !9984
Broken module found, compilation aborted!
0  clang             0x0000000101373f52 PrintStackTrace(void*) + 34
1  clang             0x0000000101374539 SignalHandler(int) + 713
2  libSystem.B.dylib 0x00007fff81a9c1ba _sigtramp + 26
3  clang             0x0000000100ecf11d
llvm::CompileUnit::addRegisterOp(llvm::DIE*, unsigned int) + 163
4  clang             0x000000010001ca16 abort + 22
5  clang             0x00000001012fb123 (anonymous
namespace)::Verifier::abortIfBroken() + 311
6  clang             0x00000001012fa67c (anonymous
namespace)::Verifier::runOnFunction(llvm::Function&) + 2246
7  clang             0x00000001012dbe5d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 341
8  clang             0x00000001012d747b
llvm::FPPassManager::runOnModule(llvm::Module&) + 61
9  clang             0x00000001012dbb6a
llvm::MPPassManager::runOnModule(llvm::Module&) + 318
10 clang             0x00000001012dcf71
llvm::PassManagerImpl::run(llvm::Module&) + 303
11 clang             0x00000001012dcff1 llvm::PassManager::run(llvm::Module&) +
13
12 clang             0x00000001001508c5
clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4645
13 clang             0x0000000100234ca2
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 278
14 clang             0x00000001002567ff clang::ParseAST(clang::Sema&, bool) +
431
15 clang             0x0000000100233c7e clang::CodeGenAction::ExecuteAction() +
852
16 clang             0x0000000100038c82
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 958
17 clang             0x0000000100024161
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2193
18 clang             0x000000010001e76b cc1_main(char const**, char const**,
char const*, void*) + 2923
19 clang             0x00000001000211c0 main + 640
20 clang             0x000000010001dbf4 start + 52

I'll try to come up with a cleaned up repro that I can attach to this bug.

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