<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::bindArray()"
href="https://bugs.llvm.org/show_bug.cgi?id=40022">40022</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure in RegionStoreManager::bindArray()
</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>hokein@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dcoughlin@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ cat test-RegionStoreManager__bindArray.cc
struct f {
typedef int b[];
};
struct g {
f::b c;
};
using d = long;
using e = g;
struct i {
d cookie;
};
struct j : i {
e h;
};
void k() { j a{}; }
$ ./clang-tidy -checks="-*,clang-analyzer*"
test-RegionStoreManager__bindArray.cc -- -std=c++17
F1214 14:18:39.208130 39861 logging.cc:82] assert.h assertion failed at
third_party/llvm/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h:105
in T clang::ento::SVal::castAs() const [T = clang::ento::nonloc::CompoundVal]:
T::isKind(*this)
*** Check failure stack trace: ***
@ 0x56443e738c76 __assert_fail
@ 0x56443c254b15 (anonymous
namespace)::RegionStoreManager::bindArray()
@ 0x56443c255073 (anonymous
namespace)::RegionStoreManager::bindStruct()
@ 0x56443c25516b (anonymous
namespace)::RegionStoreManager::bindStruct()
@ 0x56443c24a798 (anonymous namespace)::RegionStoreManager::Bind()
@ 0x56443c264e5f clang::ento::ProgramState::bindLoc()
@ 0x56443c02e069
clang::ento::retaincountchecker::RetainCountChecker::checkBind()
@ 0x56443c035466 clang::ento::check::Bind::_checkBind<>()
@ 0x56443c2a1629 clang::ento::CheckerManager::runCheckersForBind()
@ 0x56443c2b4eb3 clang::ento::ExprEngine::evalBind()
@ 0x56443c2d424e clang::ento::ExprEngine::VisitDeclStmt()
@ 0x56443c2b43fd clang::ento::ExprEngine::Visit()
@ 0x56443c2b06af clang::ento::ExprEngine::ProcessStmt()
@ 0x56443c2b0398 clang::ento::ExprEngine::processCFGElement()
@ 0x56443c2ce4c5 clang::ento::CoreEngine::HandlePostStmt()
@ 0x56443c2cd8be clang::ento::CoreEngine::ExecuteWorkList()
@ 0x56443bfd2715 (anonymous namespace)::AnalysisConsumer::HandleCode()
@ 0x56443bfbdd50 (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
@ 0x56443c53120c clang::MultiplexConsumer::HandleTranslationUnit()
@ 0x56443c6ec414 clang::ParseAST()
@ 0x56443c52ad63 clang::FrontendAction::Execute()
@ 0x56443c3df7e1 clang::CompilerInstance::ExecuteAction()
@ 0x56443c3387d1
clang::tooling::FrontendActionFactory::runInvocation()
@ 0x56443bc3ac27
clang::tidy::runClangTidy()::ActionFactory::runInvocation()
@ 0x56443c33853a clang::tooling::ToolInvocation::runInvocation()
@ 0x56443c337f26 clang::tooling::ToolInvocation::run()
@ 0x56443c33a625 clang::tooling::ClangTool::run()
@ 0x56443bc3696f clang::tidy::runClangTidy()
@ 0x5644396051f4 main</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>