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 1657681 - socket.close regressed
Summary: socket.close regressed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemtap
Version: 8.0
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Frank Ch. Eigler
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On: 1173076 1785287
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-10 09:41 UTC by Martin Cermak
Modified: 2021-09-17 14:45 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-22 12:21:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Martin Cermak 2018-12-10 09:41:26 UTC
There is bz953776 that is partly about socket.close.  That regressed comparing rhel8 to rhel7, and it doesn't seem to be fixed upstream yet.  Not sure if it is fixable, since it smells like a dwarf quality problem:

=======
 8.0 Server x86_64 # stap -P  -vp4 -e 'probe socket.close { print(protocol) }'
Pass 1: parsed user script and 479 library scripts using 185108virt/76308res/8788shr/67208data kb, in 540usr/70sys/613real ms.
semantic error: while processing probe kernel.function("sock_release@net/socket.c:616") from: socket.close from: socket.close

semantic error: failed to retrieve location attribute for 'sock' [man error::dwarf]: identifier '$sock' at /usr/share/systemtap/tapset/linux/socket.stp:713:29
        dieoffset: 0x89c9c19 from /usr/lib/debug/lib/modules/4.18.0-40.el8.x86_64/vmlinux
        function: sock_release at net/socket.c:618:2 inlined by kernel_accept at net/socket.c:3254:3
        source:         protocol = @_sock_prot_num($sock)
                                                   ^
        in expansion of macro: operator '@sock' at /usr/share/systemtap/tapset/linux/socket.stp:39:5
        source:         ( &@sock[0] ? ( @sock->sk ? @sock->sk->sk_protocol : -1 ) : -1 )
                           ^
        in expansion of macro: operator '@_sock_prot_num' at /usr/share/systemtap/tapset/linux/socket.stp:713:13
        source:         protocol = @_sock_prot_num($sock)
                                   ^

semantic error: failed to retrieve location attribute for 'sock' [man error::dwarf]: identifier '$sock' at :713:29
        dieoffset: 0x89c9c19 from /usr/lib/debug/lib/modules/4.18.0-40.el8.x86_64/vmlinux
        function: sock_release at net/socket.c:618:2 inlined by kernel_accept at net/socket.c:3254:3
        source:         protocol = @_sock_prot_num($sock)
                                                   ^
        in expansion of macro: operator '@sock' at /usr/share/systemtap/tapset/linux/socket.stp:39:5
        source:         ( &@sock[0] ? ( @sock->sk ? @sock->sk->sk_protocol : -1 ) : -1 )
                           ^
        in expansion of macro: operator '@_sock_prot_num' at /usr/share/systemtap/tapset/linux/socket.stp:713:13
        source:         protocol = @_sock_prot_num($sock)
                                   ^

Pass 2: analyzed script: 13 probes, 3 functions, 1 embed, 8 globals using 240588virt/133192res/10432shr/122688data kb, in 2300usr/130sys/2439real ms.
Pass 2: analysis failed.  [man error::pass2]
(1)  8.0 Server x86_64 # 
=======

I think the original bug is mostly x86_64 related.  On rhel7 this used to work on non ppc* arches.

Comment 4 Frank Ch. Eigler 2020-04-22 12:21:13 UTC
verified with rhel 8.2 binaries


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