<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 clang::ento::ElementRegion::ElementRegion"
href="https://bugs.llvm.org/show_bug.cgi?id=36458">36458</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure in clang::ento::ElementRegion::ElementRegion
</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-ElementRegion__ElementRegion.c
typedef struct {
void *a
} b;
c(*e) {
b *d = g();
*e = d->a;
int *f;
c(&f);
*f = 1;
}
$ clang-tidy -checks=-*,clang-analyzer* test-ElementRegion__ElementRegion.c --
assert.h assertion failed at
llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1083
in clang::ento::ElementRegion::ElementRegion(clang::QualType,
clang::ento::NonLoc, const clang::ento::SubRegion *): !elementType.isNull() &&
!elementType->isVoidType() && "Invalid region type!"
@ 0x5600957f9b76 __assert_fail
@ 0x5600942c0f60 clang::ento::ElementRegion::ElementRegion()
@ 0x5600942c0de5 clang::ento::MemRegionManager::getElementRegion()
@ 0x56009426f19e (anonymous namespace)::RegionStoreManager::bind()
@ 0x560094264e58 (anonymous namespace)::RegionStoreManager::Bind()
@ 0x5600942a1f45 clang::ento::ProgramState::bindLoc()
@ 0x5600942f47a0 clang::ento::ExprEngine::evalBind()
@ 0x5600942fc855 clang::ento::ExprEngine::evalStore()
@ 0x56009431725f clang::ento::ExprEngine::VisitBinaryOperator()
@ 0x5600942f41ae clang::ento::ExprEngine::Visit()
@ 0x5600942ef89e clang::ento::ExprEngine::ProcessStmt()
@ 0x5600942ef59b clang::ento::ExprEngine::processCFGElement()
@ 0x560094311095 clang::ento::CoreEngine::HandlePostStmt()
@ 0x56009431034d clang::ento::CoreEngine::ExecuteWorkList()
@ 0x5600933389a2 (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
@ 0x560093338526 (anonymous namespace)::AnalysisConsumer::HandleCode()
@ 0x5600933228d4 (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>