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/11195] New: argument expansion needs better recursion protection


We do have some protection against argument recursion:

$ stap -p1 -e 'probe begin {$1}' '$1'
parse error: invalid nested substitution of command line arguments
	saw: operator '{' at <input>:1:13
     source: probe begin {$1}
                         ^
parse error: expected statement
	saw: <input> EOF
2 parse error(s).
Pass 1: parse failed.  Try again with another '--vp 1' option.


But it doesn't work if the recursion is not the first token:

$ stap -p1 -e 'probe begin {$1}' 'x $1'
(runs until OOM)

-- 
           Summary: argument expansion needs better recursion protection
           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=11195

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