[PATCH] D18350: Fixing DILexicalBlockFile issue in r263424

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 24 13:34:08 PDT 2016


Since we have a public (if inconvenient) reproduction, can one of you
please revert for now?

Thanks!

-eric

On Thu, Mar 24, 2016 at 1:32 PM Reid Kleckner <rnk at google.com> wrote:

> rnk added a subscriber: rnk.
>
> ================
> Comment at: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:888
> @@ +887,3 @@
> +  const DILocalScope *Scope = LS->getScopeNode();
> +  assert(!isa<DILexicalBlockFile>(Scope) && "Don't expect Lexical Block
> File!");
> +  auto &LSInfo = getLSDieInfoMap()[Scope];
> ----------------
> This assert fails during a build of Chrome for iOS:
>
> https://build.chromium.org/p/chromium.fyi/builders/ClangToTiOS/builds/6190/steps/compile/logs/stdio
> ```
> Assertion failed: (!isa<DILexicalBlockFile>(Scope) && "Don't expect
> Lexical Block File!"), function addLocalScopeDieToLexicalScope, file
> /b/build/slave/ClangToTiOS/build/src/third_party/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp,
> line 888.
> 0  clang-3.9                0x000000010b7bed1b
> llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
> 1  clang-3.9                0x000000010b7bdf36
> llvm::sys::RunSignalHandlers() + 70
> 2  clang-3.9                0x000000010b7bf53f abort + 767
> 3  libsystem_platform.dylib 0x00007fff9417ff1a _sigtramp + 26
> 4  clang-3.9                0x000000010daca298
> clang::Stmt::StatisticsEnabled + 220476
> 5  clang-3.9                0x000000010b7bf256 abort + 22
> 6  clang-3.9                0x000000010b7bf231 __assert_rtn + 81
> 7  clang-3.9                0x000000010bd277ab
> llvm::DwarfCompileUnit::addLocalScopeDieToLexicalScope(llvm::LexicalScope*,
> llvm::DIE*) + 379
> 8  clang-3.9                0x000000010bd26c66
> llvm::DwarfCompileUnit::constructScopeDIE(llvm::LexicalScope*,
> llvm::SmallVectorImpl<llvm::DIE*>&) + 470
> 9  clang-3.9                0x000000010bd274fe
> llvm::DwarfCompileUnit::createScopeChildrenDIE(llvm::LexicalScope*,
> llvm::SmallVectorImpl<llvm::DIE*>&, bool*) + 686
> 10 clang-3.9                0x000000010bd26b3b
> llvm::DwarfCompileUnit::constructScopeDIE(llvm::LexicalScope*,
> llvm::SmallVectorImpl<llvm::DIE*>&) + 171
> 11 clang-3.9                0x000000010bd274fe
> llvm::DwarfCompileUnit::createScopeChildrenDIE(llvm::LexicalScope*,
> llvm::SmallVectorImpl<llvm::DIE*>&, bool*) + 686
> 12 clang-3.9                0x000000010bd2884f
> llvm::DwarfCompileUnit::constructSubprogramScopeDIE(llvm::LexicalScope*) +
> 287
> 13 clang-3.9                0x000000010bd344c6
> llvm::DwarfDebug::endFunction(llvm::MachineFunction const*) + 1174
> 14 clang-3.9                0x000000010bd090a4
> llvm::AsmPrinter::EmitFunctionBody() + 5764
> 15 clang-3.9                0x000000010a76ac5c
> std::__1::__tree<std::__1::__value_type<llvm::MachineInstr*, unsigned int>,
> std::__1::__map_value_compare<llvm::MachineInstr*,
> std::__1::__value_type<llvm::MachineInstr*, unsigned int>,
> std::__1::less<llvm::MachineInstr*>, true>,
> std::__1::allocator<std::__1::__value_type<llvm::MachineInstr*, unsigned
> int> >
> >::destroy(std::__1::__tree_node<std::__1::__value_type<llvm::MachineInstr*,
> unsigned int>, void*>*) + 2524
> 16 clang-3.9                0x000000010b19f72c
> llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 140
> 17 clang-3.9                0x000000010b398978
> llvm::FPPassManager::runOnFunction(llvm::Function&) + 328
> 18 clang-3.9                0x000000010b398bcb
> llvm::FPPassManager::runOnModule(llvm::Module&) + 43
> 19 clang-3.9                0x000000010b399116
> llvm::legacy::PassManagerImpl::run(llvm::Module&) + 998
> 20 clang-3.9                0x000000010b935f51
> clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
> const&, clang::TargetOptions const&, clang::LangOptions const&,
> llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
> llvm::raw_pwrite_stream*) + 9601
> 21 clang-3.9                0x000000010bad16ab
> clang::EmitObjAction::EmitObjAction(llvm::LLVMContext*) + 1547
> 22 clang-3.9                0x000000010c20bec5
> clang::ParseAST(clang::Sema&, bool, bool) + 581
> 23 clang-3.9                0x000000010bcac80b
> clang::FrontendAction::Execute() + 75
> 24 clang-3.9                0x000000010bc71bc1
> clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1073
> 25 clang-3.9                0x000000010bcf0149
> clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4713
> 26 clang-3.9                0x000000010a5197d6
> cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1366
> ```
>
>
> Repository:
>   rL LLVM
>
> http://reviews.llvm.org/D18350
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160324/a75bd3e3/attachment-0001.html>


More information about the llvm-commits mailing list