<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 in WebAssembly register allocation"
href="https://bugs.llvm.org/show_bug.cgi?id=35064">35064</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash in WebAssembly register allocation
</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: WebAssembly
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alonzakai@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19335" name="attach_19335" title="bitcode file">attachment 19335</a> <a href="attachment.cgi?id=19335&action=edit" title="bitcode file">[details]</a></span>
bitcode file
Found by csmith. Command and output:
$ /home/alon/Dev/llvm/build/bin/llc emcc-1-linktime.bc -march=wasm32
-filetype=asm -asm-verbose=false -o tmpXuOmge.wb.s -thread-model=single
#0 0x000000000127c47a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/alon/Dev/llvm/build/bin/llc+0x127c47a)
#1 0x000000000127a56e llvm::sys::RunSignalHandlers()
(/home/alon/Dev/llvm/build/bin/llc+0x127a56e)
#2 0x000000000127a6bc SignalHandler(int)
(/home/alon/Dev/llvm/build/bin/llc+0x127a6bc)
#3 0x00007f8244a3a390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#4 0x0000000000b464b7 llvm::LiveRange::Query(llvm::SlotIndex) const
(/home/alon/Dev/llvm/build/bin/llc+0xb464b7)
#5 0x0000000000b9545e (anonymous
namespace)::JoinVals::computeAssignment(unsigned int, (anonymous
namespace)::JoinVals&) (/home/alon/Dev/llvm/build/bin/llc+0xb9545e)
#6 0x0000000000b95fdb (anonymous
namespace)::RegisterCoalescer::joinVirtRegs(llvm::CoalescerPair&) [clone
.constprop.329] (/home/alon/Dev/llvm/build/bin/llc+0xb95fdb)
#7 0x0000000000b99aef (anonymous
namespace)::RegisterCoalescer::copyCoalesceWorkList(llvm::MutableArrayRef<llvm::MachineInstr*>)
[clone .constprop.324] (/home/alon/Dev/llvm/build/bin/llc+0xb99aef)
#8 0x0000000000b9cb98 (anonymous
namespace)::RegisterCoalescer::runOnMachineFunction(llvm::MachineFunction&)
(/home/alon/Dev/llvm/build/bin/llc+0xb9cb98)
#9 0x0000000000ac5ac1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/alon/Dev/llvm/build/bin/llc+0xac5ac1)
#10 0x0000000000d7d67a llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/alon/Dev/llvm/build/bin/llc+0xd7d67a)
#11 0x0000000000d7d723 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/alon/Dev/llvm/build/bin/llc+0xd7d723)
#12 0x0000000000d7d234 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/alon/Dev/llvm/build/bin/llc+0xd7d234)
#13 0x00000000006005a7 compileModule(char**, llvm::LLVMContext&) [clone
.constprop.394] (/home/alon/Dev/llvm/build/bin/llc+0x6005a7)
#14 0x00000000005bc3e5 main (/home/alon/Dev/llvm/build/bin/llc+0x5bc3e5)
#15 0x00007f8243bda830 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x20830)
#16 0x00000000005f5129 _start (/home/alon/Dev/llvm/build/bin/llc+0x5f5129)
Stack dump:
0. Program arguments: /home/alon/Dev/llvm/build/bin/llc emcc-1-linktime.bc
-march=wasm32 -filetype=asm -asm-verbose=false -o tmpXuOmge.wb.s
-thread-model=single
1. Running pass 'Function Pass Manager' on module 'emcc-1-linktime.bc'.
2. Running pass 'Simple Register Coalescing' on function '@func_1'
Segmentation fault</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>