Bug 692869

Summary: syscall.nfsservctl stopped working for 6.1 kernel
Product: Red Hat Enterprise Linux 6 Reporter: Petr Muller <pmuller>
Component: systemtapAssignee: Frank Ch. Eigler <fche>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: dsmith, mjw, ohudlick
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemtap-1.4-6.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:55:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 682670    

Description Petr Muller 2011-04-01 13:06:51 UTC
Description of problem:
With kernel 2.6.32-71.18.2.el6 (RHEL6.0.z), these testcases from systemtap testsuite worked:

systemtap.examples/process/errsnoop build
buildok/syscall.stp
buildok/syscalls2-detailed.stp

With 6.1 candidate kernel 2.6.32-122.el6, these testcases fail with the following error:

semantic error: unable to find local 'arg' near pc 0xffffffff811bc0b0 in compat_sys_nfsservctl(fs/compat.c) (alternatives: $cmd $notused $notused2): identifier '$arg' at /usr/share/systemtap/tapset/syscalls2.stp:71:56
        source:         argstr = sprintf("%s, %p, %p", _nfsctl_cmd_str($cmd), $arg, $res)
                                                                              ^
Pass 2: analysis failed.  Try again with another '--vp 01' option

Version-Release number of selected component (if applicable):
# rpm -q kernel systemtap-debuginfo systemtap
kernel-2.6.32-122.el6.x86_64
kernel-2.6.32-71.18.2.el6.x86_64
systemtap-1.4-4.el6.x86_64
systemtap-1.4-4.el6.x86_64

I've also checked this is not caused by elfutils (happens with both 6.0 and 6.1 candidate elfutils)

How reproducible:
always

Steps to Reproduce:
1. stap -p4 /usr/share/systemtap/testsuite/buildok/syscall.stp
  
Actual results:
fails to build

Expected results:
builds

I guess this is a matter of tapset adjustment.

Comment 2 David Smith 2011-04-04 21:31:30 UTC
Fixed in upstream commit acc9f09:

<http://sourceware.org/git/gitweb.cgi?p=systemtap.git;a=patch;h=acc9f09982abb44cf1e8b768f53ace766aec2550>

Comment 3 Frank Ch. Eigler 2011-04-06 15:16:25 UTC
Small safe patch in hand.

Comment 7 errata-xmlrpc 2011-05-19 13:55:05 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0651.html