Bug 1865787 - bpftrace symbols are stripped
Summary: bpftrace symbols are stripped
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bpftrace
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Augusto Caringi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-04 07:41 UTC by Jon
Modified: 2020-08-14 00:42 UTC (History)
6 users (show)

Fixed In Version: bpftrace-0.11.0-2.fc32
Clone Of:
Environment:
Last Closed: 2020-08-14 00:42:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.