<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 - Clang fsanitize-coverage crashes on Windows"
href="https://bugs.llvm.org/show_bug.cgi?id=32399">32399</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang fsanitize-coverage crashes on Windows
</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>adamf88@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=18160" name="attach_18160" title="Test data">attachment 18160</a> <a href="attachment.cgi?id=18160&action=edit" title="Test data">[details]</a></span>
Test data
If I compile my code on Windows with option: -fsanitize-coverage=trace-pc-guard
then I receive crash :
Assertion failed: !NodePtr->isKnownSentinel(), file
D:\src\llvm_package_298093\llvm\include\llvm/ADT/ilist_iterator.h, line 139
Source Code:
struct A{
A() {}
~A(){ delete[] d; }
void PB(const int& value) {
c *= 2;
if(c) throw 0;
d = new int[c];
}
int* d;
unsigned int c;
};
int main() {
A v;
v.PB(0);
try {
v.PB(0);
}catch (int e){}
return 0;
}
Sample program in attachment</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>