-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
CI: ebpf unit tests fail with Ubuntu 22.04.1 kernel 5.15 #24053
Comments
👋 can you give it a try with clang 10 ? |
Hello,
Note that there is no Installing it is as simple as
|
I would try to install clang-10 and llvm-10 for Ubuntu22.04. 20.04.4 + 5.13
20.04.3 + 5.11,
20.04.2 + 5.8
20.04+ 5.4
|
I have tried 22.04.1 kernel 5.15 with clang-10 llvm-10, worked out okay, thanks for the instruction. For the rest of the OS, they were already using clang-10 and llvm-10, I cleaned up and re-run them with CLANG=clang-10 LLC=llc-10, still not failing.
|
Now when enable to report option COVER=1, we see error below, this is consistent with all OS tested when enable COVER=1:
|
I can replicate the above issue in my local when passed COVER=1 as well. cc @dylandreimerink if you have any idea. make -C bpf/tests clean
CLANG=clang-10 LLC=llc-10 make -C test/ run_bpf_tests COVER=1 |
Thanks for the report! I was also able to reproduce the issue. Turns out that clang is not smart enough to eliminate all dead code, and CoverBee didn't handle that to well. Should be fixed after #24094 merges |
We were getting panics in the CoverBee code when coverage testing certain test programs. It turns out that this was due to "dead code" which the verifier would never evaluate, which CoverBee did not expect to be possible. This version of CoverBee fixes the issue without additional changes. Fixes: cilium#24053 Signed-off-by: Dylan Reimerink <dylan.reimerink@isovalent.com>
We were getting panics in the CoverBee code when coverage testing certain test programs. It turns out that this was due to "dead code" which the verifier would never evaluate, which CoverBee did not expect to be possible. This version of CoverBee fixes the issue without additional changes. Fixes: #24053 Signed-off-by: Dylan Reimerink <dylan.reimerink@isovalent.com>
CI failure: ebpf unit tests fail with Ubuntu 22.04.1 kernel 5.15
OS + Kernel
Checked out commit
Commands to run the test
Error message
@anfernee
The text was updated successfully, but these errors were encountered: