Bug 1865787

Summary: bpftrace symbols are stripped
Product: [Fedora] Fedora Reporter: Jon <arilou>
Component: bpftraceAssignee: Augusto Caringi <acaringi>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: acaringi, agerstmayr, jmarchan, jolsa, rdossant, skozina
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: bpftrace-0.11.0-2.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-14 00:42:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jon 2020-08-04 07:41:46 UTC
Description of problem:
Seems like because the symbols of /bin/bpftrace are stripped some tools cannot be used.

i.e:
$ sudo ./opensnoop.bt 
Attaching 6 probes...
Could not resolve symbol: /proc/self/exe:BEGIN_trigger


Version-Release number of selected component (if applicable):
bpftrace.x86_64                                   0.11.0-1.fc32

How reproducible:
Always

Steps to Reproduce:
1. sudo ./opensnoop.bt 

Actual results:
Attaching 6 probes...
Could not resolve symbol: /proc/self/exe:BEGIN_trigger

Expected results:
Monitoring table output...

Additional info:

Comment 1 Andreas Gerstmayr 2020-08-04 12:26:28 UTC
Minimal reproducer:
$ sudo bpftrace -e 'BEGIN { printf("Hello, World!\n"); }'
Attaching 1 probe...
Could not resolve symbol: /proc/self/exe:BEGIN_trigger

Github issue for reference: https://github.com/iovisor/bpftrace/issues/954

Comment 2 Augusto Caringi 2020-08-04 17:28:44 UTC
We are aware of this issue...

Github reference: https://github.com/iovisor/bpftrace/issues/1440

The bpftrace package will be updated soon...

For now there is a workround for this problem:

# sudo debuginfo-install bpftrace

Comment 3 Fedora Update System 2020-08-05 14:24:29 UTC
FEDORA-2020-8d6942b4dc has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-8d6942b4dc

Comment 4 Fedora Update System 2020-08-06 04:09:45 UTC
FEDORA-2020-8d6942b4dc has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-8d6942b4dc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-8d6942b4dc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2020-08-14 00:42:07 UTC
FEDORA-2020-8d6942b4dc has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.