Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sssd-common: missing comma in file sssd_functions.stp #5201

Closed
avisiedo opened this issue Jun 11, 2020 · 2 comments
Closed

sssd-common: missing comma in file sssd_functions.stp #5201

avisiedo opened this issue Jun 11, 2020 · 2 comments
Assignees
Labels
Bugzilla Closed: Fixed Issue was closed as fixed.

Comments

@avisiedo
Copy link
Contributor

William Cohen detected an error at sssd_functions and provided a patch for it. Thank you William.

https://bugzilla.redhat.com/show_bug.cgi?id=1840194


patch to insert missing comma in file

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.

@avisiedo avisiedo self-assigned this Jun 11, 2020
avisiedo added a commit to avisiedo/sssd that referenced this issue Jun 11, 2020
avisiedo added a commit to avisiedo/sssd that referenced this issue Jun 23, 2020
sssd_functions.stp was missing a comma.

Thanks to William Cohen for reporting the issue and the patch to fix it.

https://bugzilla.redhat.com/show_bug.cgi?id=1840194

SSSD#5201
avisiedo added a commit to avisiedo/sssd that referenced this issue Jun 25, 2020
sssd_functions.stp was missing a comma.

Thanks to William Cohen for reporting the issue and the patch to fix it.

https://bugzilla.redhat.com/show_bug.cgi?id=1840194

Resolves: SSSD#5201
@pbrezina
Copy link
Member

Pushed PR: #5202

  • master
    • 6602952 - systemtap: Missing a comma

@pbrezina pbrezina added the Closed: Fixed Issue was closed as fixed. label Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugzilla Closed: Fixed Issue was closed as fixed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants