eunomia-bpf / bpftime

Userspace eBPF runtime for fast Uprobe & Syscall hook & Extensions with LLVM JIT
https://eunomia.dev/bpftime/
MIT License
699 stars 70 forks source link

[BUG] Unit test suite failed 2 test cases on Fedora Linux x86_6 #172

Open agentzh opened 6 months ago

agentzh commented 6 months ago

When running the unit test suite of bpftime on Fedora Linux x86_64, I'm seeing 2 test cases failing consistently:

===============================================================================
test cases:   16 |   14 passed | 2 failed
assertions: 8385 | 8383 passed | 2 failed

The detailed errors for these 2 test cases are as following:

/home/agentzh/bpftime/runtime/unit-test/attach/test_function_address_resolve.cpp:26: FAILED:
  REQUIRE( addr == (void *)&malloc )
with expansion:
  0x00007f00edf33220 == 0x000000000040f1b0
with message:
  malloc addr resolved: 139641968865824

and also

/home/agentzh/bpftime/runtime/unit-test/tailcall/test_user_to_kernel_tailcall.cpp:64: FAILED:
  REQUIRE( prog_fd >= 0 )
with expansion:
  -1 >= 0
agentzh commented 6 months ago

OK, I can confirm that one of the test failure can be fixed by running make unit-test with sudo. Now only the test_function_address_resolve.cpp test failure remains.