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 1914948 - Possible transport layer regression
Summary: Possible transport layer regression
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemtap
Version: 8.4
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Frank Ch. Eigler
QA Contact: Martin Cermak
URL:
Whiteboard:
Depends On:
Blocks: 1937860
TreeView+ depends on / blocked
 
Reported: 2021-01-11 14:50 UTC by Martin Cermak
Modified: 2021-09-17 14:55 UTC (History)
7 users (show)

Fixed In Version: systemtap-4.4-10.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1937860 (view as bug list)
Environment:
Last Closed: 2021-05-18 15:44:32 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)

Description Martin Cermak 2021-01-11 14:50:46 UTC
Testcase covering bz1857749 [1] seems to have regressed. The tapset in question is part of the ruby.rpm, and there is no coverage for this in the upstream testsuite.  The problem is easily reproducible using rhel-8.3 with systemtap systemtap-4.3-4.el8 by simply upgrading the systemtap packages to systemtap-4.4-6.el8 (+ installing gcc-toolset-10-dyninst-10.2.1-2.el8 and -devel to satisfy the newer stap deps).  rpm -Uvh + hash -r is enough:


 8.3 Server x86_64 # stap -v ./ruby-exercise.stp -c ./test.sh  | fgrep -e puts  -e push
Pass 1: parsed user script and 479 library scripts using 239280virt/82000res/12980shr/68600data kb, in 170usr/20sys/514real ms.
Pass 2: analyzed script: 13 probes, 7 functions, 1 embed, 0 globals using 241984virt/85644res/14040shr/71304data kb, in 20usr/10sys/19real ms.
Pass 3: using cached /root/.systemtap/cache/c8/stap_c89a4148c78457cd41692b5c02007848_11571.c
Pass 4: using cached /root/.systemtap/cache/c8/stap_c89a4148c78457cd41692b5c02007848_11571.ko
Pass 5: starting run.
57731 -> Kernel::puts -e:1
57731 -> IO::puts -e:1
57731 <- IO::puts -e:1
57731 <- Kernel::puts -e:1
57733 -> Array::push -e:1
57733 <- Array::push -e:1
Pass 5: run completed in 190usr/200sys/1078real ms.
scr0   8.3 Server x86_64 # rpm -q systemtap
systemtap-4.3-4.el8.x86_64


[ UPGRADED FROM  systemtap-4.3-4.el8.x86_64 TO systemtap-4.4-6.el8.x86_64 ]


(1) scr0   8.3 Server x86_64 # hash -r
scr0   8.3 Server x86_64 # stap -v ./ruby-exercise.stp -c ./test.sh  | fgrep -e puts  -e push
Pass 1: parsed user script and 483 library scripts using 246120virt/88444res/12556shr/75404data kb, in 180usr/100sys/602real ms.
Pass 2: analyzed script: 13 probes, 7 functions, 1 embed, 0 globals using 248828virt/92048res/13636shr/78112data kb, in 20usr/10sys/24real ms.
Pass 3: translated to C into "/tmp/stapnIuvrw/stap_9c3ac85f1fa318b06126a4791bab87fa_11577_src.c" using 257084virt/92768res/13892shr/86368data kb, in 20usr/100sys/122real ms.
Pass 4: compiled C into "stap_9c3ac85f1fa318b06126a4791bab87fa_11577.ko" in 15740usr/3700sys/20032real ms.
Pass 5: starting run.
WARNING: There were 45005 transport failures.
Pass 5: run completed in 190usr/230sys/1112real ms.
(1) scr0   8.3 Server x86_64 #


------------------------------------------------------------------------
Please, note:  WARNING: There were 45005 transport failures.
------------------------------------------------------------------------


$ cat ruby-exercise.stp 
probe ruby.method.entry, ruby.cmethod.entry {
  printf("%d -> %s::%s %s:%d\n", tid(), classname, methodname, file, line);
}

probe ruby.method.return, ruby.cmethod.return {
  printf("%d <- %s::%s %s:%d\n", tid(), classname, methodname, file, line);
}
$ 
$ cat test.sh 
#!/bin/bash

set -e
ruby -e 'puts "ABC"'
ruby -e '[1, 2, 3].push(4)'
$ 


---------------
[1] /tools/systemtap/Regression/second-command-not-captured
    http://pkgs.devel.redhat.com/cgit/tests/systemtap/tree/Regression/second-command-not-captured

Comment 2 Martin Cermak 2021-01-12 09:29:05 UTC
Following might be a completely different problem, but has very similar symptoms (and is reproducible using upstream testsuite only (stmt_rel_user.exp) on all supported arches):


scr1   8.4 Server x86_64 # gcc /usr/share/systemtap/testsuite/systemtap.base/stmt_rel_user.c   -Wall -Werror -Winline -g  -lm  -o /usr/share/systemtap/testsuite/stmt_rel_user.x
scr1   8.4 Server x86_64 # stap -c ./stmt_rel_user.x -e 'probe process("./stmt_rel_user.x").statement("Move+2") {printf("Move %d\n",$s1)}' |& tail -5
Move 2
Move 1
Move 2
Move 3
WARNING: There were 14335 transport failures.
scr1   8.4 Server x86_64 #

Comment 3 Martin Cermak 2021-01-12 09:30:56 UTC
Thie above is a regression comparing systemtap-4.4-5.el8 and systemtap-4.4-6.el8.

Comment 4 Martin Cermak 2021-01-12 11:35:29 UTC
Other possibly affected tests related to transport layer: 
systemtap.printf/end1b.exp
systemtap.printf/mixed_outb.exp
systemtap.printf/out1b.exp
systemtap.printf/out2b.exp
systemtap.printf/out3b.exp

Comment 6 Frank Ch. Eigler 2021-03-05 16:13:38 UTC
I believe this is addressed by upstream commit 175f2b06805bb7.

At this stage of rhel-8.4, it may not be possible to update with a backport of that fix, but will look into it.

Comment 17 errata-xmlrpc 2021-05-18 15:44:32 UTC
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:1829


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