<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 - Assertion failure in RegionStoreManager::getBinding"
href="https://bugs.llvm.org/show_bug.cgi?id=36474">36474</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure in RegionStoreManager::getBinding
</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>dcoughlin@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alexfh@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>ekarpenkov@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ cat test-RegionStoreManager__getBinding.c
a;
b(void **c) {
*c = a;
int *d;
b(&d);
*d;
}
$ clang-tidy -checks=-*,clang-analyzer* test-RegionStoreManager__getBinding.c
--
assert.h assertion failed at
llvm/tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp:1408 in
clang::ento::SVal (anonymous
namespace)::RegionStoreManager::getBinding(RegionBindingsConstRef,
clang::ento::Loc, clang::QualType): !T->isVoidType() && "Attempting to
dereference a void pointer!"
@ 0x564dda45a0e6 __assert_fail
@ 0x564dd8ecd09d (anonymous
namespace)::RegionStoreManager::getBinding()
@ 0x564dd8ec6ba4 (anonymous
namespace)::RegionStoreManager::getBinding()
@ 0x564dd8f04bf8 clang::ento::ProgramState::getSVal()
@ 0x564dd841cd30 clang::ento::check::Location::_checkLocation<>()
@ 0x564dd8f43b1c clang::ento::CheckerManager::runCheckersForLocation()
@ 0x564dd8f5ea9f clang::ento::ExprEngine::evalLocation()
@ 0x564dd8f5ece4 clang::ento::ExprEngine::evalLoadCommon()
@ 0x564dd8f5de77 clang::ento::ExprEngine::evalLoad()
@ 0x564dd8f7a97c clang::ento::ExprEngine::VisitCast()
@ 0x564dd8f5429b clang::ento::ExprEngine::Visit()
@ 0x564dd8f5179e clang::ento::ExprEngine::ProcessStmt()
@ 0x564dd8f5149b clang::ento::ExprEngine::processCFGElement()
@ 0x564dd8f72f85 clang::ento::CoreEngine::HandlePostStmt()
@ 0x564dd8f7223d clang::ento::CoreEngine::ExecuteWorkList()
@ 0x564dd7f9b9c3 (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
@ 0x564dd7f9b546 (anonymous namespace)::AnalysisConsumer::HandleCode()
@ 0x564dd7f858c4 (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()</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>