<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 using llvm-cov with missing function names in profile data"
href="https://bugs.llvm.org/show_bug.cgi?id=33517">33517</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash using llvm-cov with missing function names in profile data
</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>vsk@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>efriedma@codeaurora.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I ran into a bug with binutils ld dropping the __llvm_prf_names section in my
profile binary. (Apparently, this is fixed in version 2.26, but my system has
2.24 installed.) The generated profile file was therefore missing the names.
llvm-cov then crashed with the following assertion:
llvm-cov: llvm/include/llvm/ADT/StringSet.h:33: std::pair<typename
base::iterator, bool>
llvm::StringSet<llvm::MallocAllocator>::insert(llvm::StringReflocatorTy =
llvm::MallocAllocator]: Assertion `!Key.empty()' failed.
I ran into this running a build LLVM with -DLLVM_BUILD_INSTRUMENTED_COVERAGE=On
on Ubuntu 14.04, then using prepare-code-coverage-artifact.py on llvm-tblgen.
I specified CC to point to at trunk clang; host binutils is 2.24.
Having trouble coming up with a testcase, short of uploading the llvm-tblgen
that ran into the problem. (It doesn't seem to happen for all binaries.)
Apparently I ended up with something slightly different from what would happen
if you just ran "strip -R __llvm_prf_names" on a binary with instrumentation;
that also leads to a crash, but it's a slightly different one in llvm-profdata.
I can dig a bit more if I had some idea what I'm looking for.</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>