<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - clang-analyzer crash: in clang::AnalysisDeclContext::getBody(bool&) ?"
href="https://bugs.llvm.org/show_bug.cgi?id=32820">32820</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-analyzer crash: in clang::AnalysisDeclContext::getBody(bool&) ?
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>kremenek@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lebedev.ri@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>