This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/22000] New: Unable to read $path in chown_common on CentOS 7 due to lack of DW_OP_GNU_parameter_ref support


https://sourceware.org/bugzilla/show_bug.cgi?id=22000

            Bug ID: 22000
           Summary: Unable to read $path in chown_common on CentOS 7 due
                    to lack of DW_OP_GNU_parameter_ref support
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: zerg2000-sourceware.org at astral dot org.pl
  Target Milestone: ---

Created attachment 10363
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10363&action=edit
stap-report script output

SystemTap returns error listed below for the following code on CentOS 7 (booth
default stap package and git version):
----------
probe kernel.function("chown_common") {
    printf("%x\n", $path->dentry)
}
----------

[Default CentOS 7 package] Systemtap translator/driver (version 3.0/0.166, rpm
3.0-7.el7):
----------
semantic error: while processing probe
kernel.function("chown_common@fs/open.c:556") from:
kernel.function("chown_common")

semantic error: unrecognized operation in DWARF expression [0] at 0 (0xfa:
65037, 0): identifier '$path' at ./test.stp:4:20
        dieoffset: 0x1af00cd from
/usr/lib/debug/lib/modules/3.10.0-514.26.2.el7.x86_64/vmlinux
        function: chown_common at fs/open.c:556
        source:     printf("%x\n", $path->dentry)
                                   ^

Pass 2: analysis failed.  [man error::pass2]
----------


[GIT version] Systemtap translator/driver (version 3.2/0.166, commit
release-3.1-234-g51987fd93657):
----------
semantic error: while processing probe
kernel.function("chown_common@fs/open.c:556") from:
kernel.function("chown_common")

semantic error: unhandled DW_OP operation in DWARF expression [0] at 0 (250:
65037, 0): identifier '$path' at ./test.stp:4:20
        source:     printf("%x\n", $path->dentry)
                                   ^

Pass 2: analysis failed.  [man error::pass2]
----------

Problematic DWARF atom is 0xfa (DW_OP_GNU_parameter_ref).

The same probe works fine for chmod_common, which uses the same $path struct.

Everything was installed from base CentOS 7 repository, with exception for
additional stap version in /opt/systemtap, which was pulled from git.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]