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]map 'index_map_rx' has to have BTF in order to use bpf_spin_lock #421

Open
babyyouyou opened this issue Aug 4, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@babyyouyou
Copy link

babyyouyou commented Aug 4, 2022

Hello, After I manually compiled polycubed on the Ubuntu18.04 system and successfully installed it, I used the systemctl start polycubed command to start the daemon, and when I used the systemctl status polycubed command to view the status, the following error was reported:

================================================================
polycubed.service - polycube service
Loaded: loaded (/lib/systemd/system/polycubed.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2022-08-04 14:51:28 CST; 52min ago
Main PID: 1962 (code=exited, status=255)

Aug 04 14:51:28 ubuntu polycubed[1962]: 37: (bf) r8 = r7
Aug 04 14:51:28 ubuntu polycubed[1962]: 38: (07) r8 += 4
Aug 04 14:51:28 ubuntu polycubed[1962]: 39: (bf) r1 = r8
Aug 04 14:51:28 ubuntu polycubed[1962]: 40: (85) call bpf_spin_lock#93
Aug 04 14:51:28 ubuntu polycubed[1962]: map 'index_map_rx' has to have BTF in order to use bpf_spin_lock
Aug 04 14:51:28 ubuntu polycubed[1962]: processed 38 insns (limit 1000000) max_states_per_insn 0 total_states 1 peak_states 1 mark_read 1
Aug 04 14:51:28 ubuntu polycubed[1962]: [2022-08-03 23:51:28.810] [polycubed] [error] cannot load ctrl_rx: Failed to load controller_module_rx: -1
Aug 04 14:51:28 ubuntu polycubed[1962]: [2022-08-03 23:51:28.842] [polycubed] [critical] Error starting polycube: cannot load controller_module_rx
Aug 04 14:51:28 ubuntu systemd[1]: polycubed.service: Main process exited, code=exited, status=255/n/a
Aug 04 14:51:28 ubuntu systemd[1]: polycubed.service: Failed with result 'exit-code'.

The above is the error message, it seems to be related to bpf_spin_lock, but I have correctly installed all components related to BPF under the Ubuntu system, and the kernel version also meets the requirements, my current kernel version = 5.4.0-122-generic, I am at a loss at present , hope to get help, thanks

system message:
Release version: Ubuntu18.04
Kernel version: 5.4.0-122-generic
clang version: clang10
llvm version: llvm10

@babyyouyou babyyouyou added the bug Something isn't working label Aug 4, 2022
@babyyouyou babyyouyou changed the title [BUG] [BUG]map 'index_map_rx' has to have BTF in order to use bpf_spin_lock Aug 4, 2022
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

1 participant