[llvm-bugs] [Bug 48211] New: Segfault in llvm::MachineRegisterInfo::addRegOperandToUseList
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 17 20:38:59 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48211
Bug ID: 48211
Summary: Segfault in
llvm::MachineRegisterInfo::addRegOperandToUseList
Product: new-bugs
Version: 11.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: tmandry at google.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
Created attachment 24178
--> https://bugs.llvm.org/attachment.cgi?id=24178&action=edit
Reproducer
This is a real crash hit with rustc. The segfault still occurs with assertions
enabled, unless I messed up the incremental build somehow.
> ~/frust/build/x86_64-unknown-linux-gnu/llvm/bin/llc -O0 bugpoint-reduced-simplified.bc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0. Program arguments:
/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/llc
-O0 bugpoint-reduced-simplified.bc
1. Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.bc'.
2. Running pass 'IRTranslator' on function
'@_ZN3std3sys4unix2fs5lstat17h30bd1f0595542181E'
#0 0x00007f2ce766c47c PrintStackTraceSignalHandler(void*)
(.llvm.14272527432730108163)
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x133747c)
#1 0x00007f2ce7669c3e llvm::sys::RunSignalHandlers()
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x1334c3e)
#2 0x00007f2ce766c905 SignalHandler(int)
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x1337905)
#3 0x00007f2ce630c140 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x14140)
#4 0x00007f2ce7aac790
llvm::MachineRegisterInfo::addRegOperandToUseList(llvm::MachineOperand*)
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x1777790)
#5 0x00007f2ce804d14a
llvm::MachineIRBuilder::buildDirectDbgValue(llvm::Register, llvm::MDNode
const*, llvm::MDNode const*)
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x1d1814a)
#6 0x00007f2ce8001da2
llvm::IRTranslator::translateKnownIntrinsic(llvm::CallInst const&, unsigned
int, llvm::MachineIRBuilder&)
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x1cccda2)
#7 0x00007f2ce8003045 llvm::IRTranslator::translateCall(llvm::User const&,
llvm::MachineIRBuilder&)
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x1cce045)
#8 0x00007f2ce8006aaa llvm::IRTranslator::translate(llvm::Instruction const&)
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x1cd1aaa)
#9 0x00007f2ce8008e2b
llvm::IRTranslator::runOnMachineFunction(llvm::MachineFunction&)
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x1cd3e2b)
#10 0x00007f2ce7a2bfee
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x16f6fee)
#11 0x00007f2ce77d1721 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x149c721)
#12 0x00007f2ce77d9803 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x14a4803)
#13 0x00007f2ce77d218d llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-11-rust-1.49.0-nightly.so+0x149d18d)
#14 0x000000000020ae2e main
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/llc+0x20ae2e)
#15 0x00007f2ce6015cca __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x26cca)
#16 0x0000000000208129 _start
(/usr/local/google/home/tmandry/frust/build/x86_64-unknown-linux-gnu/llvm/bin/llc+0x208129)
> ~/frust/build/x86_64-unknown-linux-gnu/llvm/bin/llc -version
LLVM (http://llvm.org/):
LLVM version 11.0.0-rust-1.49.0-nightly
Optimized build.
Default target: x86_64-unknown-linux-gnu
Host CPU: skylake-avx512
Registered Targets:
aarch64 - AArch64 (little endian)
aarch64_32 - AArch64 (little endian ILP32)
aarch64_be - AArch64 (big endian)
arm64 - ARM64 (little endian)
arm64_32 - ARM64 (little endian ILP32)
avr - Atmel AVR Microcontroller
wasm32 - WebAssembly 32-bit
wasm64 - WebAssembly 64-bit
x86 - 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64
--
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/20201118/99d5b40a/attachment-0001.html>
More information about the llvm-bugs
mailing list