[LLVMbugs] [Bug 22257] New: Assertion failed: (DISubprogram(Scope).describes(MF->getFunction())), function getOrCreateRegularScope, file LexicalScopes.cpp, line 179

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jan 18 11:13:53 PST 2015


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

            Bug ID: 22257
           Summary: Assertion failed:
                    (DISubprogram(Scope).describes(MF->getFunction())),
                    function getOrCreateRegularScope, file
                    LexicalScopes.cpp, line 179
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: akim.demaille at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Hi!

clang++-mp-3.6 crashes on the following source file.

$ clang++-mp-3.6 --version                                                     
                                                               clang version
3.6.0 (branches/release_36 226372)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

$ clang++-mp-3.6 -O3 -g -std=c++14 -c /tmp/foo.ii
Assertion failed: (DISubprogram(Scope).describes(MF->getFunction())), function
getOrCreateRegularScope, file LexicalScopes.cpp, line 179.
0  libLLVM-3.6.dylib        0x0000000108234cff
llvm::sys::PrintStackTrace(__sFILE*) + 57
1  libLLVM-3.6.dylib        0x00000001082351e9 SignalHandler(int) + 217
2  libsystem_platform.dylib 0x00007fff845fdf1a _sigtramp + 26
3  libLLVM-3.6.dylib        0x0000000108d76814 llvm::InlineCostAnalysis::ID +
118578
4  libLLVM-3.6.dylib        0x000000010823506f abort + 22
5  libLLVM-3.6.dylib        0x0000000108235059 abort + 0
6  libLLVM-3.6.dylib        0x00000001079a49ba
llvm::LexicalScopes::getMachineBasicBlocks(llvm::DebugLoc,
llvm::SmallPtrSetImpl<llvm::MachineBasicBlock const*>&) + 0
7  libLLVM-3.6.dylib        0x00000001079a44ad
llvm::LexicalScopes::getOrCreateLexicalScope(llvm::DebugLoc) + 113
8  libLLVM-3.6.dylib        0x00000001079a47b5
llvm::LexicalScopes::getOrCreateInlinedScope(llvm::MDNode*, llvm::MDNode*) +
101
9  libLLVM-3.6.dylib        0x00000001079a47e8
llvm::LexicalScopes::getOrCreateInlinedScope(llvm::MDNode*, llvm::MDNode*) +
152
10 libLLVM-3.6.dylib        0x00000001079a44a3
llvm::LexicalScopes::getOrCreateLexicalScope(llvm::DebugLoc) + 103
11 libLLVM-3.6.dylib        0x00000001079a47b5
llvm::LexicalScopes::getOrCreateInlinedScope(llvm::MDNode*, llvm::MDNode*) +
101
12 libLLVM-3.6.dylib        0x00000001079a44a3
llvm::LexicalScopes::getOrCreateLexicalScope(llvm::DebugLoc) + 103
13 libLLVM-3.6.dylib        0x00000001079a47b5
llvm::LexicalScopes::getOrCreateInlinedScope(llvm::MDNode*, llvm::MDNode*) +
101
14 libLLVM-3.6.dylib        0x00000001079a47e8
llvm::LexicalScopes::getOrCreateInlinedScope(llvm::MDNode*, llvm::MDNode*) +
152
15 libLLVM-3.6.dylib        0x00000001079a44a3
llvm::LexicalScopes::getOrCreateLexicalScope(llvm::DebugLoc) + 103
16 libLLVM-3.6.dylib        0x00000001079a4187
llvm::LexicalScopes::extractLexicalScopes(llvm::SmallVectorImpl<std::__1::pair<llvm::MachineInstr
const*, llvm::MachineInstr const*> >&, llvm::DenseMap<llvm::MachineInstr
const*, llvm::LexicalScope*, llvm::DenseMapInfo<llvm::MachineInstr const*>,
llvm::detail::DenseMapPair<llvm::MachineInstr const*, llvm::LexicalScope*> >&)
+ 461
17 libLLVM-3.6.dylib        0x00000001079a3f49
llvm::LexicalScopes::initialize(llvm::MachineFunction const&) + 97
18 libLLVM-3.6.dylib        0x00000001079a662f
llvm::LiveDebugVariables::runOnMachineFunction(llvm::MachineFunction&) + 635
19 libLLVM-3.6.dylib        0x00000001079ed4fe
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 48
20 libLLVM-3.6.dylib        0x0000000107b96ead
llvm::FPPassManager::runOnFunction(llvm::Function&) + 297
21 libLLVM-3.6.dylib        0x0000000107b97045
llvm::FPPassManager::runOnModule(llvm::Module&) + 41
22 libLLVM-3.6.dylib        0x0000000107b9739b
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 647
23 clang                    0x0000000105eef467
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
6305
24 clang                    0x0000000105feb2f7
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 515
25 clang                    0x000000010605dc8a clang::ParseAST(clang::Sema&,
bool, bool) + 391
26 clang                    0x0000000105fea4a7
clang::CodeGenAction::ExecuteAction() + 563
27 clang                    0x0000000105db172f clang::FrontendAction::Execute()
+ 67
28 clang                    0x0000000105d8d167
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 547
29 clang                    0x0000000105d5c570
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3912
30 clang                    0x0000000105d54a6c cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1068
31 clang                    0x0000000105d5a919 main + 8418
32 libdyld.dylib            0x00007fff81d285c9 start + 1
33 libdyld.dylib            0x0000000000000036 start + 21
Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.6/bin/clang -cc1 -triple
x86_64-apple-macosx10.10.0 -emit-obj -disable-free -main-file-name foo.ii
-mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 236.3
-gdwarf-2 -dwarf-column-info -coverage-file /Users/akim/src/lrde/2/foo.ii
-resource-dir /opt/local/libexec/llvm-3.6/bin/../lib/clang/3.6.0 -O3 -std=c++14
-fdeprecated-macro -fdebug-compilation-dir /Users/akim/src/lrde/2 -ferror-limit
19 -fmessage-length 181 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature
-fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -o foo.o -x c++-cpp-output
/tmp/foo.ii 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module '/tmp/foo.ii'.
4.    Running pass 'Debug Variable Analysis' on function
'@_ZN4vcsn6detail20focus_automaton_implILm0ENSt3__110shared_ptrINS0_22mutable_automaton_implINS_7contextINS_8tuplesetIJNS_9lettersetINS_12set_alphabetINS_12char_lettersEEEEESB_EEENS_18variadic_mul_mixinINS0_6b_implEEEEEEEEEEC2ERKSI_'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.0 (branches/release_36 226372)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150118/9adda070/attachment.html>


More information about the llvm-bugs mailing list