[llvm-bugs] [Bug 32820] New: clang-analyzer crash: in clang::AnalysisDeclContext::getBody(bool&) ?

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 26 14:01:49 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32820

            Bug ID: 32820
           Summary: clang-analyzer crash: in
                    clang::AnalysisDeclContext::getBody(bool&) ?
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: lebedev.ri at gmail.com
                CC: llvm-bugs at lists.llvm.org

clang version 5.0.0-svn301352-1~exp1 (trunk)

bt:
#0 0x00007fc513df9b8a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0x863b8a)
#1 0x00007fc513df7d1e llvm::sys::RunSignalHandlers()
(/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0x861d1e)
#2 0x00007fc513df7e42 (/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0x861e42)
#3 0x00007fc51681f0c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x110c0)
#4 0x00005607bb6020dd clang::AnalysisDeclContext::getBody(bool&) const
(/usr/lib/llvm-5.0/bin/clang+++0x146f0dd)
#5 0x00005607bb60223e clang::AnalysisDeclContext::getBody() const
(/usr/lib/llvm-5.0/bin/clang+++0x146f23e)
#6 0x00005607bb6030cc clang::AnalysisDeclContext::getParentMap()
(/usr/lib/llvm-5.0/bin/clang+++0x14700cc)
#7 0x00005607bb5bffa4 (/usr/lib/llvm-5.0/bin/clang+++0x142cfa4)
#8 0x00005607bb5c2d29
clang::ento::PathDiagnosticLocation::createBegin(clang::Stmt const*,
clang::SourceManager const&, llvm::PointerUnion<clang::LocationContext const*,
clang::AnalysisDeclContext*>) (/usr/lib/llvm-5.0/bin/clang+++0x142fd29)
#9 0x00005607bb2d1d11 (/usr/lib/llvm-5.0/bin/clang+++0x113ed11)
#10 0x00005607bb2d4fec (/usr/lib/llvm-5.0/bin/clang+++0x1141fec)
#11 0x00005607bb55c505
clang::ento::CheckerManager::runCheckersOnEndOfTranslationUnit(clang::TranslationUnitDecl
const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&)
(/usr/lib/llvm-5.0/bin/clang+++0x13c9505)
#12 0x00005607bac8d30e (/usr/lib/llvm-5.0/bin/clang+++0xafa30e)
#13 0x00005607bac93b48 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/lib/llvm-5.0/bin/clang+++0xb00b48)
#14 0x00005607baa3ac76 clang::FrontendAction::Execute()
(/usr/lib/llvm-5.0/bin/clang+++0x8a7c76)
#15 0x00005607baa0d3a6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/lib/llvm-5.0/bin/clang+++0x87a3a6)
#16 0x00005607baabba22
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/lib/llvm-5.0/bin/clang+++0x928a22)
#17 0x00005607ba6b6d48 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/lib/llvm-5.0/bin/clang+++0x523d48)
#18 0x00005607ba6a6549 main (/usr/lib/llvm-5.0/bin/clang+++0x513549)
#19 0x00007fc5127362b1 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x202b1)
#20 0x00005607ba6b4d6a _start (/usr/lib/llvm-5.0/bin/clang+++0x521d6a)
Stack dump:
0.      Program arguments: ... (see stderr)
1.      <eof> parser at end of file

-- 
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/20170426/ac1e88df/attachment.html>


More information about the llvm-bugs mailing list