<html>
<head>
<base href="https://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 --- - SanitizerCoverage generates wrong PCs on ARMv7"
href="https://llvm.org/bugs/show_bug.cgi?id=28261">28261</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>SanitizerCoverage generates wrong PCs on ARMv7
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>s_bugzilla@nedprod.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>If you follow the example on <a href="http://clang.llvm.org/docs/SanitizerCoverage.html">http://clang.llvm.org/docs/SanitizerCoverage.html</a>
on an ARMv7 Linux system using clang/LLVM 3.9 trunk you'll get:
$ sancov -print *.sancov
0xc7c33
$ sancov -print-coverage-stats a.out*
Error: Coverage points in binary and .sancov file do not match.
The cause is the stored PC of 0xc7c33 - the correct value is 0xc7c30. I'd
suggest this is because your __sanitizer_cov() implementation is somehow
setting the bottom two bits of the PC written out (ARMv7 always has four byte
aligned program counters).
Niall</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>