<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 - [ThinLTO] Core dump - "Expected a single module""
href="https://bugs.llvm.org/show_bug.cgi?id=35227">35227</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[ThinLTO] Core dump - "Expected a single module"
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>5.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</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>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>russell_gallop@sn.scee.net
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Tested at master (r317500) and release50 (r316607).
$ cat test.cpp
struct C {
virtual void m_fn1();
};
struct D : C {
// void m_fn1();
} a;
$ clang -o test.o -flto-thin -c test.cpp
$ llvm-lto --thinlto-action=run test.o
error: can't create module summary index for buffer: Expected a single module
LLVMSymbolizer: error reading file: No such file or directory
...
Stack dump:
0. Program arguments: llvm-lto --thinlto-action=run test.cpp.o
Segmentation fault (core dumped)
Note that the following warning is given for this file by -Weverything
$ clang -Weverything -c test.cpp
test.cpp:4:8: warning: 'D' has no out-of-line virtual method definitions; its
vtable will be emitted in every translation unit [-Wweak-vtables]
struct D : C {
^
When fixed (uncomment line 5 in test.cpp) the above example builds okay.</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>