[Bug translator/20840] New: @defined($somethingundefined + 1) gives 1

mcermak at redhat dot com sourceware-bugzilla@sourceware.org
Fri Nov 18 17:51:00 GMT 2016


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

            Bug ID: 20840
           Summary: @defined($somethingundefined + 1) gives 1
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com
  Target Milestone: ---

I've noticed that '@defined($somethingundefined + 1)' gives 1:

=======
$ stap  --poison-cache  -e 'probe process("./a.out").function("set2")
{println(@defined($x))}' -c './a.out > /dev/null'
1
$ stap  --poison-cache  -e 'probe process("./a.out").function("set2")
{println(@defined($xy))}' -c './a.out > /dev/null'
0
$ stap  --poison-cache  -e 'probe process("./a.out").function("set2")
{println(@defined($xy + 1))}' -c './a.out > /dev/null'
1
$
=======

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


More information about the Systemtap mailing list