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 1657186 - nfsd-trace.stp regressed comparing rhel8 to rhel7 (error::dwarf)
Summary: nfsd-trace.stp regressed comparing rhel8 to rhel7 (error::dwarf)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemtap
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Frank Ch. Eigler
QA Contact: Martin Cermak
URL:
Whiteboard:
Depends On: 1651314
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-07 11:40 UTC by Martin Cermak
Modified: 2019-06-28 13:19 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

Description Martin Cermak 2018-12-07 11:40:07 UTC
The nfsd-trace.stp (systemtap-4.0-3.el8.x86_64) started to fail on rhel8 (compared to rhel7).  The problem seems to be the kernel debuginfo quality:

=======
 8.0 Server x86_64 # stap -P -p4 /usr/share/systemtap/examples/network/nfsd-trace.stp
semantic error: while processing probe module("nfsd").function("nfsd4_read@fs/nfsd/nfs4proc.c:752").call from: nfsd.proc4.read from: nfsd.proc.read from: nfsd.proc.entries from: nfsd.proc.entries

semantic error: failed to retrieve location attribute for 'read' [man error::dwarf]: identifier '$read' at /usr/share/systemtap/tapset/linux/nfsd.stp:570:10
        dieoffset: 0x1dae8a from /usr/lib/debug/lib/modules/4.18.0-40.el8.x86_64/kernel/fs/nfsd/nfsd.ko.debug
        function: nfsd4_read at fs/nfsd/nfs4proc.c:759:5
        source:         count = $read->rd_length
                                ^

semantic error: failed to retrieve location attribute for 'read' [man error::dwarf]: identifier '$read' at :570:10
        dieoffset: 0x1dae8a from /usr/lib/debug/lib/modules/4.18.0-40.el8.x86_64/kernel/fs/nfsd/nfsd.ko.debug
        function: nfsd4_read at fs/nfsd/nfs4proc.c:759:5
        source:         count = $read->rd_length
                                ^

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

The symbol in question appears to actually be present in the kernel source:

=======
  8.0 Server x86_64 # nl -ba /usr/src/debug/kernel-4.18.0-40.el8/linux-4.18.0-40.el8.x86_64/fs/nfsd/nfs4proc.c  | sed '751,755!d'
   751  static __be32
   752  nfsd4_read(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
   753             union nfsd4_op_u *u)
   754  {
   755          struct nfsd4_read *read = &u->read;
 8.0 Server x86_64 #
=======

Prologue search doesn't seem to help here.

Comment 1 Martin Cermak 2018-12-07 11:45:33 UTC
There are similar problems in this area already: bz1107616, bz1094816 .
This might easily be a WONTFIX with rationale similar to bz1107616#c8 .

Comment 2 Frank Ch. Eigler 2018-12-07 13:19:20 UTC
I believe these guys should actually fix the problem:

commit 4e81610ae8c233d876f378cca8374e34cc2ee0e8
Author: Frank Ch. Eigler <fche>
Date:   Fri Oct 19 19:31:31 2018 -0400

    nfsd tapset: adapt nfsd.proc4.commit probe to different kernel versions

commit 8bc64034509474bee3fb7996b2a9e74c8bc27281
Author: Frank Ch. Eigler <fche>
Date:   Fri Oct 19 17:36:04 2018 -0400

    nfsd tapset: adapt nfsd.proc4.read probe to different kernel versions
    
    Here too an if(@defined($u)) is appropriate, just like in the .write case.

Comment 3 Martin Cermak 2018-12-07 14:15:51 UTC
I can confirm that this problem is gone with upstream 891810c24.  Thanks!

Comment 5 Martin Cermak 2019-02-11 15:18:16 UTC
Fixed in systemtap-4.0-7.el8.


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