<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 - D70157 "align branches within 32-Byte boundary" patch hangs on small assembly example"
href="https://bugs.llvm.org/show_bug.cgi?id=44215">44215</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>D70157 "align branches within 32-Byte boundary" patch hangs on small assembly example
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>fedor.v.sergeev@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22888" name="attach_22888" title="hang-mc.s">attachment 22888</a> <a href="attachment.cgi?id=22888&action=edit" title="hang-mc.s">[details]</a></span>
hang-mc.s
I have been playing with <a href="https://reviews.llvm.org/D70157">https://reviews.llvm.org/D70157</a> patch and found a
problem with it.
It hangs in MCAssembler somewhere in vicinity of the new code.
] cd llvm-upstream/builds/release-assert
] bin/llvm-mc -x86-branches-within-32B-boundaries=true hang-mc.s -filetype=obj
-o /dev/null
....
when interrupting in debugger I get this backtrace:
#0 0x00007ffff4d43a5a in getFixedValue(llvm::MCMachineDependentFragment
const*) () from llvm-upstream/builds/release-assert/bin/../lib/libLLVM-10git.so
#1 0x00007ffff4d43cef in
llvm::MCAssembler::relaxMachineDependent(llvm::MCAsmLayout&,
llvm::MCMachineDependentFragment&) () from
llvm-upstream/builds/release-assert/bin/../lib/libLLVM-10git.so
#2 0x00007ffff4d445aa in
llvm::MCAssembler::layoutSectionOnce(llvm::MCAsmLayout&, llvm::MCSection&) ()
from llvm-upstream/builds/release-assert/bin/../lib/libLLVM-10git.so
#3 0x00007ffff4d446fa in llvm::MCAssembler::layoutOnce(llvm::MCAsmLayout&) ()
from llvm-upstream/builds/release-assert/bin/../lib/libLLVM-10git.so
#4 0x00007ffff4d42a1b in llvm::MCAssembler::layout(llvm::MCAsmLayout&) () from
llvm-upstream/builds/release-assert/bin/../lib/libLLVM-10git.so
#5 0x00007ffff4d4336e in llvm::MCAssembler::Finish() () from
.llvm-upstream/builds/release-assert/bin/../lib/libLLVM-10git.so
...</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>