<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 crash (EXC_BAD_ACCESS) with -Wcomsumed"
href="http://llvm.org/bugs/show_bug.cgi?id=17150">17150</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang crash (EXC_BAD_ACCESS) with -Wcomsumed
</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>All
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>devlists@shadowlab.org
</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=11161" name="attach_11161" title="Minimal test case">attachment 11161</a> <a href="attachment.cgi?id=11161&action=edit" title="Minimal test case">[details]</a></span>
Minimal test case
When building the attached file with -Wcomsumed (and so -Weverything), clang
crashed.
The involved code is simply an empty function with an empty @try/@catch block.
-------------------- WBSerialQueue.m
static
void wb_dispatch_execute() {
@try {
} @catch (id) {
}
}
--------------------
clang "-cc1" "-fsyntax-only" "-disable-free" "-Wconsumed" "-fobjc-exceptions"
"-x" "objective-c" "WBSerialQueue.m"
0 clang 0x0000000109486298 llvm::sys::PrintStackTrace(__sFILE*) +
40
1 clang 0x0000000109486794 SignalHandler(int) + 548
2 libsystem_c.dylib 0x00007fff8457794a _sigtramp + 26
3 libsystem_c.dylib 0x000000005727a058 _sigtramp + 3536856872
4 clang 0x00000001099e4270
clang::sema::AnalysisBasedWarnings::IssueWarnings(clang::sema::AnalysisBasedWarnings::Policy,
clang::sema::FunctionScopeInfo*, clang::Decl const*, clang::BlockExpr const*) +
4688
5 clang 0x0000000109a1e79b
clang::Sema::PopFunctionScopeInfo(clang::sema::AnalysisBasedWarnings::Policy
const*, clang::Decl const*, clang::BlockExpr const*) + 315
6 clang 0x0000000109abc1c1
clang::Sema::ActOnFinishFunctionBody(clang::Decl*, clang::Stmt*, bool) + 2881
…</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>