https://bugs.kde.org/show_bug.cgi?id=426148

            Bug ID: 426148
           Summary: Valgrind crash with "impossible happened" when running
                    BPF CO-RE programs
           Product: valgrind
           Version: 3.15 SVN
          Platform: unspecified
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: luka.oresko...@sartura.hr
  Target Milestone: ---

Created attachment 131394
  --> https://bugs.kde.org/attachment.cgi?id=131394&action=edit
The complete output generated when running "opensnoop" example with valgrind -v
flag

SUMMARY
Valgrind fails with error: 

FATAL: unhandled eBPF command 22

valgrind: the 'impossible' happened:
   ... bye!

when trying to run some of the BPF CO-RE program examples found on the iovisor
BCC github repository
(https://github.com/iovisor/bcc/tree/master/libbpf-tools). 
The error appears on "tcpconnect", "opensnoop", "syscount" and others.

Libbpf is required as a dependency but it can be cloned as a submodule in
src/cc/libbpf

STEPS TO REPRODUCE
1. compile kernel to enable BTF support (explained in the repository readme)
2. compile and run example program with valgrind

OBSERVED RESULT

FATAL: unhandled eBPF command 22

valgrind: the 'impossible' happened:
   ... bye!

The full output is in the attached file

EXPECTED RESULT

Valgrind doesn't crash

SOFTWARE/OS VERSIONS

Linux sheepofawesome 5.7.6-gentoo-x86_64 #9 SMP Mon Aug 17 13:26:04 CEST 2020
x86_64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz GenuineIntel GNU/Linux

Also reproduced on:

Linux pc 5.7.8-arch1-1 #1 SMP PREEMPT Thu, 09 Jul 2020 16:34:01 +0000 x86_64
GNU/Linux

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to