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

[BUG] 23-http 代码运行时报错Failed to open and load BPF skeleton #126

Open
zhbitzwz opened this issue Jun 25, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@zhbitzwz
Copy link

zhbitzwz commented Jun 25, 2024

Describe the bug
在编译 23-http 代码时,编译可以成功,但运行时遇到了错误。具体的错误信息如下:

if (bpf_strncmp(line_buffer, 3, "GET") != 0 &&
90: (bf) r1 = r9
91: (b7) r2 = 3
92: (18) r3 = 0xffffa0c09916e310
94: (85) call unknown#182
invalid func unknown#182
processed 93 insns (limit 1000000) max_states_per_insn 0 total_states 6 peak_states 6 mark_read 3
-- END PROG LOAD LOG --
libbpf: prog 'socket_handler': failed to load: -22
libbpf: failed to load object 'sockfilter_bpf'
libbpf: failed to load BPF skeleton 'sockfilter_bpf': -22
Failed to open and load BPF skeleton

To Reproduce
Steps to reproduce the behavior:
运行时报错:./sockfilter

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows]
  • Version [e.g. 10]
  • Ubuntu 22.04
  • Linux 5.15.0-94-generic

Additional context
Add any other context about the problem here.

@zhbitzwz zhbitzwz added the bug Something isn't working label Jun 25, 2024
@Officeyutong
Copy link
Contributor

What's the version of your kernel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants