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.
Bug 1657909 - vfs-all-probes.stp as shipped with systemtap-4.0-5.el8 doesn't -p2
Summary: vfs-all-probes.stp as shipped with systemtap-4.0-5.el8 doesn't -p2
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemtap
Version: 8.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Frank Ch. Eigler
QA Contact: Martin Cermak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-10 17:26 UTC by Martin Cermak
Modified: 2019-06-14 01:41 UTC (History)
4 users (show)

Fixed In Version: systemtap-4.0-7.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-14 01:41:54 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Martin Cermak 2018-12-10 17:26:46 UTC
The vfs-all-probes.stp as shipped with systemtap-4.0-5.el8 doesn't pass the elaboration phase.  But it is fixed upstream e.g. in 891810c24 :

=======
 8.0 Server x86_64 # rpm -q systemtap
systemtap-4.0-5.el8.x86_64
 8.0 Server x86_64 # stap -P -w -p4  /usr/share/systemtap/testsuite/buildok/vfs-all-probes.stp
semantic error: unresolved type : identifier '$cred' at /usr/share/systemtap/tapset/linux/vfs.stp:1314:23
        source:         cred = @entry($cred)
                                      ^

semantic error: while processing probe kernel.function("vfs_open@fs/open.c:883").return from: vfs.open.return from: vfs.*

semantic error: unable to find local 'cred', [man error::dwarf] dieoffset 0x3213110 in kernel, near pc 0xffffffff812a0620 in vfs_open fs/open.c (alternatives: $file, $path)): identifier '$cred' at :1314:23
        source:         cred = @entry($cred)
                                      ^

semantic error: unable to find local 'cred', [man error::dwarf] dieoffset 0x3213110 in kernel, near pc 0xffffffff812a0620 in vfs_open fs/open.c (alternatives: $file, $path)): identifier '$cred' at :1314:23
        source:         cred = @entry($cred)
                                      ^

Pass 2: analysis failed.  [man error::pass2]
(1)  8.0 Server x86_64 # 
=======

Please, backport the fix.

Comment 1 Frank Ch. Eigler 2018-12-17 20:42:07 UTC
commit f6d68366654176541487a8916c3b61c5b1207736
Author: William Cohen <wcohen>
Date:   Mon Nov 19 14:23:15 2018 -0500

Comment 3 Martin Cermak 2019-02-11 15:55:26 UTC
Immediately after fixing this worked, I believe, but now, probably after a kernel update to 4.18.0-67.el8, new ppc64le error::dwarf appeared here:

=======
 8.0 Server ppc64le # stap -P -w -p4  /usr/share/systemtap/testsuite/buildok/vfs-all-probes.stp
semantic error: while processing probe kernel.function("__vfs_read@fs/read_write.c:412") from: __vfs.__vfs_read from: vfs.do_sync_read from: vfs.*

semantic error: failed to retrieve location attribute for 'file' [man error::dwarf]: identifier '$file' at /usr/share/systemtap/tapset/linux/vfs.stp:692:6
        dieoffset: 0x3217158 from /usr/lib/debug/lib/modules/4.18.0-67.el8.ppc64le/vmlinux
        function: __vfs_read at fs/read_write.c:415:10 inlined by vfs_read at fs/read_write.c:452:9 inlined by ksys_read at fs/read_write.c:578:9 inlined by __do_sys_read at fs/read_write.c:588:9 inlined by __se_sys_read at fs/read_write.c:586:1
        source:         if ($file->f_op->read || !$file->f_op->read_iter) next
                            ^

semantic error: failed to retrieve location attribute for 'file' [man error::dwarf]: identifier '$file' at :692:6
        dieoffset: 0x3217158 from /usr/lib/debug/lib/modules/4.18.0-67.el8.ppc64le/vmlinux
        function: __vfs_read at fs/read_write.c:415:10 inlined by vfs_read at fs/read_write.c:452:9 inlined by ksys_read at fs/read_write.c:578:9 inlined by __do_sys_read at fs/read_write.c:588:9 inlined by __se_sys_read at fs/read_write.c:586:1
        source:         if ($file->f_op->read || !$file->f_op->read_iter) next
                            ^

semantic error: failed to retrieve location attribute for 'file' [man error::dwarf]: identifier '$file' at :692:6
        dieoffset: 0x3217158 from /usr/lib/debug/lib/modules/4.18.0-67.el8.ppc64le/vmlinux
        function: __vfs_read at fs/read_write.c:415:10 inlined by vfs_read at fs/read_write.c:452:9 inlined by ksys_read at fs/read_write.c:578:9 inlined by __do_sys_read at fs/read_write.c:588:9 inlined by __se_sys_read at fs/read_write.c:586:1
        source:         if ($file->f_op->read || !$file->f_op->read_iter) next
                            ^

semantic error: failed to retrieve location attribute for 'file' [man error::dwarf]: identifier '$file' at :692:6
        dieoffset: 0x3217158 from /usr/lib/debug/lib/modules/4.18.0-67.el8.ppc64le/vmlinux
        function: __vfs_read at fs/read_write.c:415:10 inlined by vfs_read at fs/read_write.c:452:9 inlined by ksys_read at fs/read_write.c:578:9 inlined by __do_sys_read at fs/read_write.c:588:9 inlined by __se_sys_read at fs/read_write.c:586:1
        source:         if ($file->f_op->read || !$file->f_op->read_iter) next
                            ^

semantic error: failed to retrieve location attribute for 'file' [man error::dwarf]: identifier '$file' at :692:6
        dieoffset: 0x3217158 from /usr/lib/debug/lib/modules/4.18.0-67.el8.ppc64le/vmlinux
        function: __vfs_read at fs/read_write.c:415:10 inlined by vfs_read at fs/read_write.c:452:9 inlined by ksys_read at fs/read_write.c:578:9 inlined by __do_sys_read at fs/read_write.c:588:9 inlined by __se_sys_read at fs/read_write.c:586:1
        source:         if ($file->f_op->read || !$file->f_op->read_iter) next
                            ^

semantic error: failed to retrieve location attribute for 'file' [man error::dwarf]: identifier '$file' at :692:6
        dieoffset: 0x3217158 from /usr/lib/debug/lib/modules/4.18.0-67.el8.ppc64le/vmlinux
        function: __vfs_read at fs/read_write.c:415:10 inlined by vfs_read at fs/read_write.c:452:9 inlined by ksys_read at fs/read_write.c:578:9 inlined by __do_sys_read at fs/read_write.c:588:9 inlined by __se_sys_read at fs/read_write.c:586:1
        source:         if ($file->f_op->read || !$file->f_op->read_iter) next
                            ^

semantic error: failed to retrieve location attribute for 'file' [man error::dwarf]: identifier '$file' at :692:6
        dieoffset: 0x3217158 from /usr/lib/debug/lib/modules/4.18.0-67.el8.ppc64le/vmlinux
        function: __vfs_read at fs/read_write.c:415:10 inlined by vfs_read at fs/read_write.c:452:9 inlined by ksys_read at fs/read_write.c:578:9 inlined by __do_sys_read at fs/read_write.c:588:9 inlined by __se_sys_read at fs/read_write.c:586:1
        source:         if ($file->f_op->read || !$file->f_op->read_iter) next
                            ^

semantic error: failed to retrieve location attribute for 'file' [man error::dwarf]: identifier '$file' at :692:6
        dieoffset: 0x3217158 from /usr/lib/debug/lib/modules/4.18.0-67.el8.ppc64le/vmlinux
        function: __vfs_read at fs/read_write.c:415:10 inlined by vfs_read at fs/read_write.c:452:9 inlined by ksys_read at fs/read_write.c:578:9 inlined by __do_sys_read at fs/read_write.c:588:9 inlined by __se_sys_read at fs/read_write.c:586:1
        source:         if ($file->f_op->read || !$file->f_op->read_iter) next
                            ^

semantic error: failed to retrieve location attribute for 'file' [man error::dwarf]: identifier '$file' at :692:6
        dieoffset: 0x3217158 from /usr/lib/debug/lib/modules/4.18.0-67.el8.ppc64le/vmlinux
        function: __vfs_read at fs/read_write.c:415:10 inlined by vfs_read at fs/read_write.c:452:9 inlined by ksys_read at fs/read_write.c:578:9 inlined by __do_sys_read at fs/read_write.c:588:9 inlined by __se_sys_read at fs/read_write.c:586:1
        source:         if ($file->f_op->read || !$file->f_op->read_iter) next
                            ^

semantic error: failed to retrieve location attribute for 'file' [man error::dwarf]: identifier '$file' at :692:6
        dieoffset: 0x3217158 from /usr/lib/debug/lib/modules/4.18.0-67.el8.ppc64le/vmlinux
        function: __vfs_read at fs/read_write.c:415:10 inlined by vfs_read at fs/read_write.c:452:9 inlined by ksys_read at fs/read_write.c:578:9 inlined by __do_sys_read at fs/read_write.c:588:9 inlined by __se_sys_read at fs/read_write.c:586:1
        source:         if ($file->f_op->read || !$file->f_op->read_iter) next
                            ^

semantic error: failed to retrieve location attribute for 'file' [man error::dwarf]: identifier '$file' at :692:6
        dieoffset: 0x3217158 from /usr/lib/debug/lib/modules/4.18.0-67.el8.ppc64le/vmlinux
        function: __vfs_read at fs/read_write.c:415:10 inlined by vfs_read at fs/read_write.c:452:9 inlined by ksys_read at fs/read_write.c:578:9 inlined by __do_sys_read at fs/read_write.c:588:9 inlined by __se_sys_read at fs/read_write.c:586:1
        source:         if ($file->f_op->read || !$file->f_op->read_iter) next
                            ^

Pass 2: analysis failed.  [man error::pass2]
(1)  8.0 Server ppc64le # uname -r
4.18.0-67.el8.ppc64le
 8.0 Server ppc64le #
=======

Upstream stap gives the same results as systemtap-4.0-7.el8 . I'm about to mark this one as verified anyway based on the nature of the problem.  Thoughts?

Comment 4 Martin Cermak 2019-02-11 16:12:18 UTC
The ppc64le part appears to be https://bugzilla.redhat.com/show_bug.cgi?id=1173076#c11 .  Verified using systemtap-4.0-7.el8 .


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