<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Crash with SEH and -fprofile-generate"
href="https://bugs.llvm.org/show_bug.cgi?id=41279">41279</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash with SEH and -fprofile-generate
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dmajor@mozilla.com
</td>
</tr>
<tr>
<th>CC</th>
<td>david.majnemer@gmail.com, htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, mcastelluccio@mozilla.com, michaelwoerister@posteo.net, rnk@google.com
</td>
</tr></table>
<p>
<div>
<pre>Reproducer:
void f() {
__try { f(); }
__except (1) { return; }
__try { f(); }
__except (1) { }
}
clang-cl.exe -O2 -clang:-fprofile-generate -c test.cpp
Here's the stack though I'm not sure how much it helps, given the inlining in
my release build:
00 clang!`anonymous namespace'::PruneEH::runOnSCC
01 clang!`anonymous namespace'::CGPassManager::runOnModule
02 clang!llvm::legacy::PassManagerImpl::run
03 clang!clang::EmitBackendOutput
04 clang!clang::BackendConsumer::HandleTranslationUnit
05 clang!clang::ParseAST
I wonder if this is the PGO-analogue to the SEH gcov crash in <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Test case using __try/__except/__finaly crashes if the GCOV profiling pass is enabled"
href="show_bug.cgi?id=34833">bug 34833</a>.</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>