[LLVMbugs] [Bug 16945] New: clang analyzer crash when compiling hash.c from bahamut ircd.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Aug 20 11:18:21 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16945
Bug ID: 16945
Summary: clang analyzer crash when compiling hash.c from
bahamut ircd.
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: crigler at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11074
--> http://llvm.org/bugs/attachment.cgi?id=11074&action=edit
reduced test case
The attached reduced test case (from bahamut's hash.c) crashes the clang static
analyzer:
clang --analyze -Xanalyzer -analyzer-checker=alpha.security.ArrayBoundV2
-Xanalyzer -analyzer-checker=alpha.deadcode.IdempotentOperations hash.c
0 clang 0x0000000001c209d2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 clang 0x0000000001c207c9
2 libpthread.so.0 0x00007f24f6877030
3 clang 0x000000000105ae1a
clang::CFGReverseBlockReachabilityAnalysis::isReachable(clang::CFGBlock const*,
clang::CFGBlock const*) + 26
4 clang 0x0000000000db0228
5 clang 0x0000000000ebde44
clang::ento::CheckerManager::runCheckersForEndAnalysis(clang::ento::ExplodedGraph&,
clang::ento::BugReporter&, clang::ento::ExprEngine&) + 100
6 clang 0x0000000000ec7caf
clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*,
unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) + 239
7 clang 0x0000000000d76ee6
8 clang 0x0000000000d77fae
9 clang 0x0000000000d7fdce
10 clang 0x0000000000a0b85a clang::ParseAST(clang::Sema&, bool, bool)
+ 538
11 clang 0x0000000000759809 clang::FrontendAction::Execute() + 185
12 clang 0x000000000073a49a
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 282
13 clang 0x0000000000723f9a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1530
14 clang 0x000000000071f848 cc1_main(char const**, char const**, char
const*, void*) + 824
15 clang 0x000000000070fb5a main + 1402
16 libc.so.6 0x00007f24f5728ead __libc_start_main + 253
17 clang 0x000000000071f36d
clang version 3.4 (http://llvm.org/git/clang.git
d9def9e75e6fae8f215223da4e78c7ec7e3fa4ac) (http://llvm.org/git/llvm.git
7b0a79601b277581dc3c089af71fed641887c38d)
Target: x86_64-unknown-linux-gnu
compiled with gcc version 4.7.2 (Debian 4.7.2-5)
--
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/20130820/49c8a859/attachment.html>
More information about the llvm-bugs
mailing list