<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 - Non-deterministic debug info with LTO"
href="https://bugs.llvm.org/show_bug.cgi?id=44147">44147</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Non-deterministic debug info with LTO
</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>Linux
</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>mh+llvm@glandium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22867" name="attach_22867" title="testcase archive">attachment 22867</a> <a href="attachment.cgi?id=22867&action=edit" title="testcase archive">[details]</a></span>
testcase archive
Steps to reproduce:
- Download and extract attachment
- Run the following command:
```
clang -m32 -pthread -g -O3 -shared -Wl,-z,defs -Wl,--gc-sections
-Wl,-h,libmozavutil.so -o libmozavutil.so avstring.o bprint.o buffer.o
channel_layout.o cpu.o crc.o dict.o error.o eval.o fifo.o fixed_dsp.o
float_dsp.o frame.o hwcontext.o imgutils.o log.o log2_tab.o mathematics.o mem.o
opt.o parseutils.o pixdesc.o rational.o reverse.o samplefmt.o slicethread.o
time.o utils.o -flto=thin -Wl,-plugin-opt=-import-instr-limit=10 -lpthread
-Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc
-Wl,-Bsymbolic-functions -Wl,--build-id=sha1
-Wl,--version-script,libmozavutil.so.symbols -ldl -lrt -lm -latomic
```
- Save the generated libmozavutil.so
- Repeat enough times.
This is reproducible with BFD ld, gold, and lld. I've got 4 different variants
of the generated library so far with thousands of attempts. Frequency is 94.3%
for the most frequent variant, 2~3% each for two other ones, and 0.1% for the
last one.
This is also reproducible with current trunk (initially hit with clang 9 ; the
object files from the testcase were compiled with clang 9).</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>