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

Build kyanos on ubuntu 24.04, then run on 5.4/4.19 failed #175

Open
hengyoush opened this issue Dec 13, 2024 · 1 comment
Open

Build kyanos on ubuntu 24.04, then run on 5.4/4.19 failed #175

hengyoush opened this issue Dec 13, 2024 · 1 comment
Labels
bpf bpf related bug Something isn't working

Comments

@hengyoush
Copy link
Owner

Describe the bug
Build kyanos on ubuntu 24.04, then run on 5.4/4.19 failed with log above. But build on 22.04 was fine.

To Reproduce
Steps to reproduce the behavior:
Build kyanos on ubuntu 24.04, then run on 5.4/4.19

run build step in workflow Test:

notice install clang:

  • in 24.04 it is clang (1:18.0-59~exp2)
  • in 22.04 it is clang (1:14.0-55~exp2)

Screenshots

 R7=map_value(id=0,off=0,ks=8,vs=144,imm=0) R8_w=invP(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R9=map_value(id=0,off=0,ks=4,vs=30808,imm=0) R10=fp0 fp-8=mmmmmmmm fp-16=mmmmmmmm fp-24=mmmmmmmm fp-32=mmmmmmmm fp-40=mmmmmmmm fp-48=mmmmmmmm fp-56=mmmmmmmm fp-64=mmmmmmmm fp-72=mmmmmmmm fp-80=mmmmmmmm fp-88=mmmmmmmm fp-96=mmmmmmmm fp-104=mmmmmmmm fp-112=mmmmmmmm fp-120=mmmmmmmm fp-128=mmmmmmmm fp-136=mmmmmmmm fp-144=mmmmmmmm fp-152=mmmmmmmm fp-160=mmmmmmmm fp-168=mmmmmmmm fp-176=mmmmmmmm fp-184=mmmmmmmm fp-192=mmmmmmmm fp-200=mmmm???? fp-208=mmmmmmmm fp-216=mmmmmmmm fp-224=mmmmmmmm fp-232=mmmmmmmm fp-240=mmmmmmmm fp-248=mmmmmmmm fp-256=mmmmmmmm fp-264=00000000 fp-272=mmmmmmmm fp-280=mmmmmmmm fp-288=mmmmmmmm\n\t; bpf_probe_read(evt->msg, _len, buf);\n\t478: (bf) r1 = r9\n\t479: (07) r1 += 88\n\t480: (bf) r8 = r2\n\t; _len = len_minus_1 + 1;\n\t481: (07) r8 += 1\n\t; bpf_probe_read(evt->msg, _len, buf);\n\t482: (bf) r2 = r8\n\t483: (05) goto pc+23\n\t;\n\t507: (79) r3 = *(u64 *)(r10 -256)\n\t508: (85) call bpf_probe_read#4\n\tR2 min value is negative, either use unsigned or 'var &= const'\n\tprocessed 594 insns (limit 1000000) max_states_per_insn 1 total_states 46 peak_states 46 mark_read 29"

Information (please complete the following information):

  • OS: 24.04
@hengyoush hengyoush added the bug Something isn't working label Dec 13, 2024
Copy link

dosubot bot commented Dec 13, 2024

The issue you're encountering when building Kyanos on Ubuntu 24.04 and running it on kernel versions 5.4 or 4.19 might be related to the differences in the CLANG versions used during the build process. On Ubuntu 24.04, CLANG version 18 is used, whereas on Ubuntu 22.04, CLANG version 14 is used. This difference can lead to compatibility issues, especially if the code or dependencies rely on specific features or behaviors of a particular CLANG version [1].

Additionally, there is a known issue with Kyanos not capturing HTTP events on certain kernel versions due to missing BTF (BPF Type Format) support, which might be relevant if you're experiencing similar issues [2].

To address this, you might want to try building Kyanos with the same CLANG version used in Ubuntu 22.04 (version 14) on your Ubuntu 24.04 system to see if it resolves the issue. You can manually install the specific CLANG version and adjust the symbolic links accordingly in your build environment.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@hengyoush hengyoush added the bpf bpf related label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bpf bpf related bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant