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/11274] New: stap-client doesn't understand "--"


Using getopt, "--" is a special argument that stops further processing. 
However, stap-client appears not to handle this, so it can be tricked into doing
things that it shouldn't.


$ stap-client -l syscall.open* -- -p5
syscall.open
syscall.openat
ERROR: Unable to canonicalize path "stap_8052.ko": No such file or directory
Retrying, after attempted removal of module stap_8052 (rc -1)
ERROR: Unable to canonicalize path "stap_8052.ko": No such file or directory

(staprun can't load a module we didn't actually build)


$ stap-client -l syscall.open* -- -rfoo
/usr/local/bin/stap-client: ERROR: Unable to connect to a server

(no server on my network claims to build for kernel foo)


AFAICT the server side correctly ignores these, so this is only an issue of what
is attempted locally.

-- 
           Summary: stap-client doesn't understand "--"
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: jistone at redhat dot com


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

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


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