Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[BUG]map 'index_map_rx' has to have BTF in order to use bpf_spin_lock #421

Open
Labels
bugSomething isn't working

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /