[Bug translator/13186] New: systemtap does not correctly point out offending structure when accidentally dereferencing a structure as a string

anish at chelsio dot com sourceware-bugzilla@sourceware.org
Tue Sep 13 19:43:00 GMT 2011


http://sourceware.org/bugzilla/show_bug.cgi?id=13186

             Bug #: 13186
           Summary: systemtap does not correctly point out offending
                    structure when accidentally dereferencing a structure
                    as a string
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap@sourceware.org
        ReportedBy: anish@chelsio.com
    Classification: Unclassified


probe point :
printf("%s : %s\n",thread_indent(1),kernel_string($kobj->dentry->d_name))

error message :
Pass 1: parsed user script and 76 library script(s) using
138788virt/22212res/2784shr kb, in 140usr/10sys/152real ms.
semantic error: 'struct qstr' is being accessed instead of a member: identifier
'$kobj' at /tmp/sysfs.stp:14:53
        source:                 printf("%s :
%s\n",thread_indent(1),kernel_string($kobj->dentry->d_name))
                                     ^

Here d_name is a structure of type qstr; which is the offending dereference
however the translator points to $kobj instead of d_name.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Systemtap mailing list