[llvm-bugs] [Bug 36474] New: Assertion failure in RegionStoreManager::getBinding
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 22 04:53:25 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36474
Bug ID: 36474
Summary: Assertion failure in RegionStoreManager::getBinding
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
Assignee: dcoughlin at apple.com
Reporter: alexfh at google.com
CC: ekarpenkov at apple.com, llvm-bugs at lists.llvm.org
$ 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()
--
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/20180222/1e7c7f63/attachment.html>
More information about the llvm-bugs
mailing list