Issue 89610
Summary How do I capture llc coverage in case of an llc execution crash???
Labels new issue
Assignees
Reporter cpython-java
    I can capture llc coverage by llvm-cov and llvm-profdata. But if the llc execution fails (crash as shown below), how can I capture its coverage ?? In this case, coverage files whose name is ends with ".profraw" fail to be generated so the previous method of getting coverage failed. If someone can help me, I will be very grateful!!!

```
LLVM ERROR: Function "main": over-aligned dynamic alloca not supported.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /opt/compiler-explorer/clang-15.0.0/bin/llc -o /app/output.s -x86-asm-syntax=intel -mtriple=sparcel <source>
1.	Running pass 'Function Pass Manager' on module '<source>'.
2.	Running pass 'SPARC DAG->DAG Pattern Instruction Selection' on function '@main'
 #0 0x0000557b556c6404 PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
 #1 0x0000557b556c3c64 SignalHandler(int) Signals.cpp:0:0
 #2 0x00007f1a61a42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #3 0x00007f1a61a969fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #4 0x00007f1a61a42476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #5 0x00007f1a61a287f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #6 0x0000557b52ebb813 llvm::DisplayGraph(llvm::StringRef, bool, llvm::GraphProgram::Name) (.cold) GraphWriter.cpp:0:0
 #7 0x0000557b53d640b6 LowerDYNAMIC_STACKALLOC(llvm::SDValue, llvm::SelectionDAG&, llvm::SparcSubtarget const*) (.isra.0) SparcISelLowering.cpp:0:0
 #8 0x0000557b53d73bee llvm::SparcTargetLowering::LowerOperation(llvm::SDValue, llvm::SelectionDAG&) const (/opt/compiler-explorer/clang-15.0.0/bin/llc+0x17b1bee)
 #9 0x0000557b553b64b8 (anonymous namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDNode*) LegalizeDAG.cpp:0:0
#10 0x0000557b553c4d2e llvm::SelectionDAG::Legalize() (/opt/compiler-explorer/clang-15.0.0/bin/llc+0x2e02d2e)
#11 0x0000557b554a6b77 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/opt/compiler-explorer/clang-15.0.0/bin/llc+0x2ee4b77)
#12 0x0000557b554a98f1 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/opt/compiler-explorer/clang-15.0.0/bin/llc+0x2ee78f1)
#13 0x0000557b554ac1f8 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (.part.0) SelectionDAGISel.cpp:0:0
#14 0x0000557b549bc299 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
#15 0x0000557b54e4ca60 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-15.0.0/bin/llc+0x288aa60)
#16 0x0000557b54e4cbd9 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/compiler-explorer/clang-15.0.0/bin/llc+0x288abd9)
#17 0x0000557b54e4d7c0 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/compiler-explorer/clang-15.0.0/bin/llc+0x288b7c0)
#18 0x0000557b52f7a04b compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#19 0x0000557b52eca38a main (/opt/compiler-explorer/clang-15.0.0/bin/llc+0x90838a)
#20 0x00007f1a61a29d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#21 0x00007f1a61a29e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#22 0x0000557b52f7232e _start (/opt/compiler-explorer/clang-15.0.0/bin/llc+0x9b032e)
Program terminated with signal: SIGSEGV
Compiler returned: 139
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to