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 1850961 - /usr/share/systemtap/tapset/sssd_functions.stp missing a comma
Summary: /usr/share/systemtap/tapset/sssd_functions.stp missing a comma
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: 8.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 8.0
Assignee: avisiedo
QA Contact: sssd-qe
URL:
Whiteboard: sync-to-jira
: 1853592 (view as bug list)
Depends On: 1840194
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-25 09:30 UTC by Alexey Tikhonov
Modified: 2020-11-04 02:09 UTC (History)
18 users (show)

Fixed In Version: sssd-2.3.0-3.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1840194
Environment:
Last Closed: 2020-11-04 02:05:29 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 5201 0 None closed sssd-common: missing comma in file sssd_functions.stp 2020-11-04 19:27:48 UTC
Red Hat Product Errata RHBA-2020:4569 0 None None None 2020-11-04 02:05:42 UTC

Description Alexey Tikhonov 2020-06-25 09:30:35 UTC
+++ This bug was initially created as a clone of Bug #1840194 +++

Description of problem:

When running systemtap testsuite on fedora rawhide I saw a lot of failures. Like the following:

FAIL: abort: TEST 5: abort() in the middle of a probe handler body (--compatible 3.3): stderr: fails to match regex "^semantic error: unresolved function \(similar: [^\n]*?\): identifier 'abort' at [^\n]*?\.stp:3:5\n": got "parse error: expected 'probe', 'global', 'private', 'function', or '%{'
        saw: identifier 'METHOD_SENTINEL' at /usr/share/systemtap/tapset/sssd_functions.stp:10:34
     source:        METHOD_RESOLVER_HANDLER=9 METHOD_SENTINEL=10
                                              ^

1 parse error.
WARNING: tapset "/usr/share/systemtap/tapset/sssd_functions.stp" has errors, and will be skipped
Pass 2: analysis failed.  [man error::pass2]
"
FAIL: abort: TEST 7: abort() in timer.profile (more concurrency and no globals): stderr: string should be "", but got "parse error: expected 'probe', 'global', 'private', 'function', or '%{'
        saw: identifier 'METHOD_SENTINEL' at /usr/share/systemtap/tapset/sssd_functions.stp:10:34
     source:        METHOD_RESOLVER_HANDLER=9 METHOD_SENTINEL=10
                                              ^

1 parse error.
WARNING: tapset "/usr/share/systemtap/tapset/sssd_functions.stp" has errors, and will be skipped
"


Version-Release number of selected component (if applicable):


How reproducible:

every time


Steps to Reproduce:
1. dnf install systemtap-testsuite kernel-devel
2. dnf debuginfo kernel
3.  sudo stap -e 'probe timer.profile { 
    abort();
    error("fire after abort!\n")
}'


Actual results:


parse error: expected 'probe', 'global', 'private', 'function', or '%{'
        saw: identifier 'METHOD_SENTINEL' at /usr/share/systemtap/tapset/sssd_functions.stp:10:34
     source:        METHOD_RESOLVER_HANDLER=9 METHOD_SENTINEL=10
                                              ^

1 parse error.
WARNING: tapset "/usr/share/systemtap/tapset/sssd_functions.stp" has errors, and will be skipped


Expected results:

$ sudo stap -e 'probe timer.profile { 
    abort();
    error("fire after abort!\n")
}'



Additional info:

Looks like a trivial missing comma to fix the issue.

--- Additional comment from William Cohen on 2020-05-26 14:51:50 UTC ---

Also see the same problem with the sssd_functions.stp file on F32 with sssd-common-2.3.0-1.fc32.x86_64.

--- Additional comment from avisiedo on 2020-06-11 07:58:45 UTC ---

Hi William,

Thank you very much for spotting this issue and your patch. I will push the changes as soon as possible.

Best regards

Whiteboard: sync-to-jira

--- Additional comment from Alexey Tikhonov on 2020-06-25 08:24:39 UTC ---

Upstream PR: https://github.com/SSSD/sssd/pull/5202

Comment 1 Alexey Tikhonov 2020-06-25 12:09:02 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/5202

* `master`
    * 66029529fa0f0e2d16999f22294822deeec5f60b - systemtap: Missing a comma

Comment 2 Alexey Tikhonov 2020-07-03 09:13:04 UTC
*** Bug 1853592 has been marked as a duplicate of this bug. ***

Comment 5 Amith 2020-07-07 19:28:10 UTC
Verified the bug on SSSD Version: sssd-2.3.0-3.el8.x86_64

Steps followed during verification:

1. Reproduce Parse error with older version of SSSD.

2. Check the sssd_functions.stp file for the presence of comma.

# grep "METHOD_RESOLVER_HANDLER=9" /usr/share/systemtap/tapset/sssd_functions.stp 
       METHOD_RESOLVER_HANDLER=9 METHOD_SENTINEL=10

3. Upgrade the sssd version to latest build.

4. Repeat step-(2)

# grep "METHOD_RESOLVER_HANDLER=9" /usr/share/systemtap/tapset/sssd_functions.stp 
       METHOD_RESOLVER_HANDLER=9, METHOD_SENTINEL=10

5. Execute systemtap testsuite with latest sssd build and look for "parse error" in logs.

https://beaker.engineering.redhat.com/jobs/4396728 -- GREEN JOB.

Comment 9 errata-xmlrpc 2020-11-04 02:05:29 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 (sssd 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-2020:4569


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