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/20840] New: @defined($somethingundefined + 1) gives 1


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.

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