[llvm-bugs] [Bug 34460] New: Assertion failure in clang::ento::SVal::castAs
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 4 09:04:04 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34460
Bug ID: 34460
Summary: Assertion failure in clang::ento::SVal::castAs
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
Assignee: ganna at apple.com
Reporter: alexfh at google.com
CC: llvm-bugs at lists.llvm.org
$ cat castAs-crash.cc
void mempcpy(void *, void *, long);
short a;
class b {
int c;
long g;
void d() {
int e = c;
f += e;
mempcpy(f, &a, g);
}
unsigned *f;
};
$ clang-tidy -checks=-*,clang-analyzer-unix.cstring* castAs-crash.cc --
-std=c++11
assert.h assertion failed at
llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h:93 in
T clang::ento::SVal::castAs() const [T = clang::ento::loc::MemRegionVal]:
T::isKind(*this)
@ 0x544749a __assert_fail
@ 0x2839e1a clang::ento::SVal::castAs<>()
@ 0x2cdecd5 (anonymous
namespace)::CStringChecker::evalCopyCommon()
@ 0x2cdc59e (anonymous namespace)::CStringChecker::evalMempcpy()
@ 0x2cdc384 (anonymous namespace)::CStringChecker::evalCall()
@ 0x2cdb140 clang::ento::eval::Call::_evalCall<>()
@ 0x2dfb722 clang::ento::CheckerFn<>::operator()()
@ 0x2df879a clang::ento::CheckerManager::runCheckersForEvalCall()
@ 0x2e5a2d9 clang::ento::ExprEngine::evalCall()
@ 0x2e5a19b clang::ento::ExprEngine::VisitCallExpr()
@ 0x2e12f24 clang::ento::ExprEngine::Visit()
@ 0x2e0fe44 clang::ento::ExprEngine::ProcessStmt()
@ 0x2e0faca clang::ento::ExprEngine::processCFGElement()
@ 0x2e3dc66 clang::ento::CoreEngine::HandlePostStmt()
@ 0x2e3d566 clang::ento::CoreEngine::dispatchWorkItem()
@ 0x2e3d0a8 clang::ento::CoreEngine::ExecuteWorkList()
@ 0x2138e05 clang::ento::ExprEngine::ExecuteWorkList()
@ 0x20e1802 (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
@ 0x20e15c1 (anonymous
namespace)::AnalysisConsumer::RunPathSensitiveChecks()
@ 0x20e1285 (anonymous namespace)::AnalysisConsumer::HandleCode()
@ 0x20d4963 (anonymous
namespace)::AnalysisConsumer::HandleDeclsCallGraph()
@ 0x20d2be7 (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
@ 0x25136ce clang::MultiplexConsumer::HandleTranslationUnit()
@ 0x2f59506 clang::ParseAST()
@ 0x250109a clang::ASTFrontendAction::ExecuteAction()
@ 0x2500b30 clang::FrontendAction::Execute()
@ 0x23192c2 clang::CompilerInstance::ExecuteAction()
@ 0x21eac92
clang::tooling::FrontendActionFactory::runInvocation()
@ 0x21eab33 clang::tooling::ToolInvocation::runInvocation()
--
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/20170904/f6a47030/attachment-0001.html>
More information about the llvm-bugs
mailing list