Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionMasahiro Matsuya
2021-03-19 05:42:41 UTC
Description of problem:
An example strace.stp doesn't work with the following error on RHEL8.3 and RHEL8.4 beta.
# stap -v /usr/share/systemtap/examples/process/strace.stp -w -c "echo hello world"
Pass 1: parsed user script and 485 library scripts using 284084virt/129000res/12384shr/116244data kb, in 280usr/30sys/313real ms.
Pass 2: analyzed script: 1827 probes, 217 functions, 103 embeds, 176 globals using 315768virt/162332res/13948shr/147928data kb, in 8010usr/310sys/8391real ms.
Pass 3: translated to C into "/tmp/stapdGSBwq/stap_b506758f926165a2353c8b0dc22ecf63_1664129_src.c" using 316640virt/163280res/14012shr/148800data kb, in 420usr/10sys/432real ms.
/tmp/stapdGSBwq/stap_b506758f926165a2353c8b0dc22ecf63_1664129_src.c: In function ‘function___global__struct_compat_timex_u__overload_0’:
/tmp/stapdGSBwq/stap_b506758f926165a2353c8b0dc22ecf63_1664129_src.c:257114:22: error: storage size of ‘ts’ isn’t known
struct compat_timex ts;
^~
/tmp/stapdGSBwq/stap_b506758f926165a2353c8b0dc22ecf63_1664129_src.c:257122:14: error: invalid application of ‘sizeof’ to incomplete type ‘struct old_timex32’
sizeof(struct compat_timex)) == 0)
^~~~~~
make[1]: *** [scripts/Makefile.build:315: /tmp/stapdGSBwq/stap_b506758f926165a2353c8b0dc22ecf63_1664129_src.o] Error 1
make: *** [Makefile:1563: _module_/tmp/stapdGSBwq] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_b506758f926165a2353c8b0dc22ecf63_1664129.ko" in 29730usr/850sys/30906real ms.
Pass 4: compilation failed. [man error::pass4]
Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux 8.3
Red Hat Enterprise Linux 8.4 Beta
How reproducible:
Always
Steps to Reproduce:
1. run:
# stap -v /usr/share/systemtap/examples/process/strace.stp -w -c "echo hello world"
Actual results:
The stap failed for strace.stp example.
Expected results:
The stap doesn't fail for strace.stp example.
Additional info:
I wanted to use the strace.stp for analyzing fapolicyd daemon, since
strace command using ptrace system call can not be used for fapolicyd daemon, causing the whole system hang.
It's same even with gcc-toolset-10.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (systemtap bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2021:4215
Description of problem: An example strace.stp doesn't work with the following error on RHEL8.3 and RHEL8.4 beta. # stap -v /usr/share/systemtap/examples/process/strace.stp -w -c "echo hello world" Pass 1: parsed user script and 485 library scripts using 284084virt/129000res/12384shr/116244data kb, in 280usr/30sys/313real ms. Pass 2: analyzed script: 1827 probes, 217 functions, 103 embeds, 176 globals using 315768virt/162332res/13948shr/147928data kb, in 8010usr/310sys/8391real ms. Pass 3: translated to C into "/tmp/stapdGSBwq/stap_b506758f926165a2353c8b0dc22ecf63_1664129_src.c" using 316640virt/163280res/14012shr/148800data kb, in 420usr/10sys/432real ms. /tmp/stapdGSBwq/stap_b506758f926165a2353c8b0dc22ecf63_1664129_src.c: In function ‘function___global__struct_compat_timex_u__overload_0’: /tmp/stapdGSBwq/stap_b506758f926165a2353c8b0dc22ecf63_1664129_src.c:257114:22: error: storage size of ‘ts’ isn’t known struct compat_timex ts; ^~ /tmp/stapdGSBwq/stap_b506758f926165a2353c8b0dc22ecf63_1664129_src.c:257122:14: error: invalid application of ‘sizeof’ to incomplete type ‘struct old_timex32’ sizeof(struct compat_timex)) == 0) ^~~~~~ make[1]: *** [scripts/Makefile.build:315: /tmp/stapdGSBwq/stap_b506758f926165a2353c8b0dc22ecf63_1664129_src.o] Error 1 make: *** [Makefile:1563: _module_/tmp/stapdGSBwq] Error 2 WARNING: kbuild exited with status: 2 Pass 4: compiled C into "stap_b506758f926165a2353c8b0dc22ecf63_1664129.ko" in 29730usr/850sys/30906real ms. Pass 4: compilation failed. [man error::pass4] Version-Release number of selected component (if applicable): Red Hat Enterprise Linux 8.3 Red Hat Enterprise Linux 8.4 Beta How reproducible: Always Steps to Reproduce: 1. run: # stap -v /usr/share/systemtap/examples/process/strace.stp -w -c "echo hello world" Actual results: The stap failed for strace.stp example. Expected results: The stap doesn't fail for strace.stp example. Additional info: I wanted to use the strace.stp for analyzing fapolicyd daemon, since strace command using ptrace system call can not be used for fapolicyd daemon, causing the whole system hang. It's same even with gcc-toolset-10.