Public bug reported:

Several binaries shipped in bpfcc-tools are presenting (different)
failures when trying to run some examples documented in their manpage.

bpfcc-tools version: 0.30.0+ds-1ubuntu4

$ uname -r
6.11.0-9-generic

For instance:

$ sudo argdist-bpfcc -p 1005 -H 'r:c:read()'
[warnings....]
could not determine address of symbol read in /lib/x86_64-linux-gnu/libc.so.6


$ bashreadline-bpfcc
Traceback (most recent call last):
  File "/usr/sbin/bashreadline-bpfcc", line 20, in <module>
    from elftools.elf.elffile import ELFFile
ModuleNotFoundError: No module named 'elftools'

$ tcplife-bpfcc
[warnings...]
include/linux/bpf.h:348:10: error: invalid application of 'sizeof' to an 
incomplete type 'struct bpf_wq'
  348 |                 return sizeof(struct bpf_wq);
      |                        ^     ~~~~~~~~~~~~~~~
include/linux/bpf.h:348:24: note: forward declaration of 'struct bpf_wq'
  348 |                 return sizeof(struct bpf_wq);
      |                                      ^
include/linux/bpf.h:377:10: error: invalid application of '__alignof' to an 
incomplete type 'struct bpf_wq'
  377 |                 return __alignof__(struct bpf_wq);
      |                        ^          ~~~~~~~~~~~~~~~
include/linux/bpf.h:377:29: note: forward declaration of 'struct bpf_wq'
  377 |                 return __alignof__(struct bpf_wq);
      |                                           ^
4 warnings and 2 errors generated.
Traceback (most recent call last):
  File "/usr/sbin/tcplife-bpfcc", line 474, in <module>
    b = BPF(text=bpf_text)
        ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/bcc/__init__.py", line 479, in __init__
    raise Exception("Failed to compile BPF module %s" % (src_file or "<text>"))
Exception: Failed to compile BPF module <text>

** Affects: bpfcc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2086183

Title:
  Multiple failures on bpfcc-tools binaries in oracular

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bpfcc/+bug/2086183/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to