Closed qjerome closed 1 year ago
Even though the bug does not trigger in the same conditions than #88 the root cause seems to be the same (i.e. NULL pointer passed to llvm::DISubprogram::getLine
from a call to emit
). So it is possible that fixing #88 would also fix this issue.
This issue is fixed when bpf-linker gets compiled with fixed LLVM https://github.com/rust-lang/llvm-project/commit/d06f0cd0977dd16f09c259133f36c7e8b9f0d322 Link to upstream LLVM patch: https://reviews.llvm.org/D156446
In
feature/fix-di
branch, BTF tests are crashing the linker whenlto=false
is passed.How to replicate: https://github.com/0xrawsec/bpf-linker/tree/bug-lto-flag-btf Built with LLVM: https://github.com/aya-rs/llvm-project/tree/rustc/16.0-2023-06-05
Backtrace: