<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - clang analyzer crash when compiling hash.c from bahamut ircd."
href="http://llvm.org/bugs/show_bug.cgi?id=16945">16945</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang analyzer crash when compiling hash.c from bahamut ircd.
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>kremenek@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>crigler@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=11074" name="attach_11074" title="reduced test case">attachment 11074</a> <a href="attachment.cgi?id=11074&action=edit" title="reduced test case">[details]</a></span>
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 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a>
d9def9e75e6fae8f215223da4e78c7ec7e3fa4ac) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
7b0a79601b277581dc3c089af71fed641887c38d)
Target: x86_64-unknown-linux-gnu
compiled with gcc version 4.7.2 (Debian 4.7.2-5)</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>