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 tapsets/16616] New: the 'servername' convenience variable returned by the rpc tapset can be NULL


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

            Bug ID: 16616
           Summary: the 'servername' convenience variable returned by the
                    rpc tapset can be NULL
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
          Assignee: systemtap at sourceware dot org
          Reporter: dsmith at redhat dot com

The 'servername' convenience variable returned by the rpc tapset can be NULL.
This causes the following systemtap error:

====
ERROR: kernel string copy fault at 0x          (null) near identifier
'kernel_string' at /usr/share/systemtap/tapset/linux/conversions.stp:18:10
====

>From some debugging, it looks like that sometimes the the underlying kernel
variable is just NULL. Systemtap giving an error there is somewhat correct,
since the value *is* NULL.

However, there is some code in rpc_create() that if it finds a NULL servername,
it creates a string representation of the passed-in address, and uses that for
the servername. Systemtap could try to duplicate that logic.

(And what is up with all the extra space in that '0x          (null)' string?)

-- 
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]