Open Quuxplusone opened 11 years ago
It may be interesting that llc can grow extremely large before crashing. Another bitcode file (56 MB) results in a 2.1 GB llc process before it crashes. Maybe this is normal, but maybe this is a memory leak, related to this crash bug?
Attached TestRadixTree-opt.bc
(214164 bytes, application/octet-stream): Test file that makes llc crash
Problem still exists in r169984.
Problem still exists in r173101
Problem still exists in r174657
Correction: r174657 renders a different error message:
llc: DwarfDebug.cpp:1416: void llvm::DwarfDebug::beginFunction(const
llvm::MachineFunction *): Assertion `TheCU && "Unable to find compile unit!"'
failed.
0 llc 0x0000000000d45505 llvm::sys::PrintStackTrace(_IO_FILE*) + 37
1 llc 0x0000000000d459f3
2 libpthread.so.0 0x00007f6f2b46e030
3 libc.so.6 0x00007f6f2a55c475 gsignal + 53
4 libc.so.6 0x00007f6f2a55f6f0 abort + 384
5 libc.so.6 0x00007f6f2a555621 __assert_fail + 241
6 llc 0x000000000090d753
llvm::DwarfDebug::beginFunction(llvm::MachineFunction const*) + 3651
7 llc 0x00000000008f5aad llvm::AsmPrinter::EmitFunctionHeader() +
797
8 llc 0x0000000000541d24
9 llc 0x000000000099a61d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 125
10 llc 0x0000000000ca699c
llvm::FPPassManager::runOnFunction(llvm::Function&) + 364
11 llc 0x0000000000ca6c0b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
12 llc 0x0000000000ca6f5e
llvm::MPPassManager::runOnModule(llvm::Module&) + 430
13 llc 0x0000000000ca75fb llvm::PassManagerImpl::run(llvm::Module&)
+ 539
14 llc 0x0000000000ca776a llvm::PassManager::run(llvm::Module&) + 10
15 llc 0x00000000004f17af main + 5407
16 libc.so.6 0x00007f6f2a548ead __libc_start_main + 253
17 llc 0x00000000004f01c9
Stack dump:
0. Program arguments: llc /tmp/TestRadixTree-opt.bc
1. Running pass 'Function Pass Manager' on module '/tmp/TestRadixTree-
opt.bc'.
2. Running pass 'X86 AT&T-Style Assembly Printer' on function
'@_gen_result'
Aborted
TestRadixTree-opt.bc
(214164 bytes, application/octet-stream)