Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures when /proc/kallsyms is not present #86

Closed
d-e-s-o opened this issue Mar 17, 2023 · 0 comments
Closed

Test failures when /proc/kallsyms is not present #86

d-e-s-o opened this issue Mar 17, 2023 · 0 comments
Assignees

Comments

@d-e-s-o
Copy link
Collaborator

d-e-s-o commented Mar 17, 2023

Seeing the following test failures when /proc/kallsyms is not present:

failures:

---- ksym::tests::ksym_cache stdout ----
thread 'ksym::tests::ksym_cache' panicked at 'assertion failed: resolver.is_ok()', src/ksym.rs:301:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- tests::load_symbolfilecfg_invalid_kernel stdout ----
fail to load the kernel image /dev/null
thread 'tests::load_symbolfilecfg_invalid_kernel' panicked at 'assertion failed: signatures.iter().any(|x| x.contains(\"KernelResolver\"))', src/lib.rs:1034:9

---- tests::load_symbolfilecfg_processkernel stdout ----
fail to load the kernel image /usr/lib/debug/boot/vmlinux-5.10.161-gentoo
thread 'tests::load_symbolfilecfg_processkernel' panicked at 'assertion failed: signatures.iter().any(|x| x.contains(\"KernelResolver\"))', src/lib.rs:1014:9


failures:
    ksym::tests::ksym_cache
    tests::load_symbolfilecfg_invalid_kernel
    tests::load_symbolfilecfg_processkernel
d-e-s-o added a commit to d-e-s-o/blazesym that referenced this issue Mar 17, 2023
When /proc/kallsyms is not present on the system, three tests fail
execution. Fix them by making them use a proper kallsyms file below
data/.

Fixes: libbpf#86
d-e-s-o added a commit to d-e-s-o/blazesym that referenced this issue Mar 17, 2023
When /proc/kallsyms is not present on the system, three tests fail
execution. Fix them by making them use a proper kallsyms file below
data/.

Fixes: libbpf#86

Signed-off-by: Daniel Müller <deso@posteo.net>
@danielocfb danielocfb self-assigned this Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants