[llvm-bugs] [Bug 35064] New: Crash in WebAssembly register allocation

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 24 11:57:23 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=35064

            Bug ID: 35064
           Summary: Crash in WebAssembly register allocation
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedbugs at nondot.org
          Reporter: alonzakai at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19335
  --> https://bugs.llvm.org/attachment.cgi?id=19335&action=edit
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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171024/cd45dc32/attachment.html>


More information about the llvm-bugs mailing list