qmonnet / rbpf

Rust virtual machine and JIT compiler for eBPF programs
Apache License 2.0
893 stars 225 forks source link

rbpf panic when running bpf_conformance with JIT #60

Open Alan-Jowett opened 1 year ago

Alan-Jowett commented 1 year ago
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: 
Custom { 
kind: Other, 
error: "Error: out of bounds memory store (insn #2), addr 0x2, size 4
mbuff: 0x560d8e8a15b0/0x0, 
mem: 0x1/0x0, 
stack: 0x560d8f935e70/0x200" 
}', examples/rbpf_plugin.rs:45:50
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
qmonnet commented 1 year ago

Thanks for the report. Yes, this is similar to the other issues about panicking from the JIT - I just have no idea how to error out gracefully from JIT-compiled code.