[llvm-bugs] [Bug 34622] New: Assertion failure in clang::ento::SValBuilder::evalBinOp
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Sep 15 05:13:36 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34622
Bug ID: 34622
Summary: Assertion failure in
clang::ento::SValBuilder::evalBinOp
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: llvm-bugs at lists.llvm.org
$ echo "void crash(bool *b) { EXPECT_TRUE(*b); }" >>
llvm.git/tools/clang/test/Analysis/gtest.cpp
$ clang-tidy llvm.git/tools/clang/test/Analysis/gtest.cpp
-checks=-*,clang-analyzer-apiModeling.google.GTest -- -std=c++11
-DGTEST_VERSION_1_8_AND_LATER=1
assert.h assertion failed at
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp:406 in clang::ento::SVal
clang::ento::SValBuilder::evalBinOp(clang::ento::ProgramStateRef,
BinaryOperator::Opcode, clang::ento::SVal, clang::ento::SVal, clang::QualType):
op == BO_Add
@ 0x52d94ca __assert_fail
@ 0x2c26793 clang::ento::SValBuilder::evalBinOp()
@ 0x2c26a41 clang::ento::SValBuilder::evalEQ()
@ 0x2a50428 (anonymous
namespace)::GTestChecker::assumeValuesEqual()
@ 0x2a50015 (anonymous
namespace)::GTestChecker::modelAssertionResultBoolConstructor()
@ 0x2a4f9bb (anonymous namespace)::GTestChecker::checkPostCall()
@ 0x2a4f780 clang::ento::check::PostCall::_checkCall<>()
@ 0x2d01842 clang::ento::CheckerFn<>::operator()()
@ 0x2cf537a (anonymous namespace)::CheckCallContext::runChecker()
@ 0x2cf2489 expandGraphWithCheckers<>()
@ 0x2cf2200
clang::ento::CheckerManager::runCheckersForCallEvent()
@ 0x2d55b48 clang::ento::CheckerManager::runCheckersForPostCall()
@ 0x2d53a10 clang::ento::ExprEngine::VisitCXXConstructExpr()
@ 0x2d10d99 clang::ento::ExprEngine::Visit()
@ 0x2d0dcd1 clang::ento::ExprEngine::ProcessStmt()
@ 0x2d0d98a clang::ento::ExprEngine::processCFGElement()
@ 0x2d3bff6 clang::ento::CoreEngine::HandlePostStmt()
@ 0x2d3b8f6 clang::ento::CoreEngine::dispatchWorkItem()
@ 0x2d3b458 clang::ento::CoreEngine::ExecuteWorkList()
@ 0x20309f5 clang::ento::ExprEngine::ExecuteWorkList()
@ 0x1fd8192 (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
@ 0x1fd7f51 (anonymous
namespace)::AnalysisConsumer::RunPathSensitiveChecks()
@ 0x1fd7c15 (anonymous namespace)::AnalysisConsumer::HandleCode()
@ 0x1fcb113 (anonymous
namespace)::AnalysisConsumer::HandleDeclsCallGraph()
@ 0x1fc9397 (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
@ 0x240173e clang::MultiplexConsumer::HandleTranslationUnit()
@ 0x2e58606 clang::ParseAST()
@ 0x23ef10a clang::ASTFrontendAction::ExecuteAction()
@ 0x23eeba0 clang::FrontendAction::Execute()
--
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/20170915/ac8b841a/attachment.html>
More information about the llvm-bugs
mailing list