aya-rs / aya

Aya is an eBPF library for the Rust programming language, built with a focus on developer experience and operability.
https://aya-rs.dev/book/
Apache License 2.0
3.2k stars 286 forks source link

Relocation Integration Tests Fail on Kernel 6.2 #672

Open dave-tucker opened 1 year ago

dave-tucker commented 1 year ago

On my development machine:

6.2.15-100.fc36.x86_64

The integration tests yield the following failures:

failures:

---- tests::btf_relocations::relocate_enum64 stdout ----
thread 'tests::btf_relocations::relocate_enum64' panicked at 'assertion failed: `(left == right)`
  left: `3722304989`,
 right: `14757395259253972445`', test/integration-test/src/tests/btf_relocations.rs:110:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- tests::btf_relocations::relocate_enum64_signed stdout ----
thread 'tests::btf_relocations::relocate_enum64_signed' panicked at 'assertion failed: `(left == right)`
  left: `572662307`,
 right: `-922337203971808733`', test/integration-test/src/tests/btf_relocations.rs:135:5

---- tests::btf_relocations::relocate_enum_signed stdout ----
thread 'tests::btf_relocations::relocate_enum_signed' panicked at 'assertion failed: `(left == right)`
  left: `2219066437`,
 right: `-2075900859`', test/integration-test/src/tests/btf_relocations.rs:85:5

failures:
    tests::btf_relocations::relocate_enum64
    tests::btf_relocations::relocate_enum64_signed
    tests::btf_relocations::relocate_enum_signed

test result: FAILED. 31 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 18.31s

Error: failures:
integration-test exited with status code 101
tamird commented 1 year ago

Is this still a thing? I believe we run under 6.1 in CI.

https://github.com/aya-rs/aya/blob/461c2759c58f31af7a2ea396a477f8a8c0f8875f/.github/workflows/ci.yml#L224