This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/20840] New: @defined($somethingundefined + 1) gives 1
- From: "mcermak at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Fri, 18 Nov 2016 17:51:30 +0000
- Subject: [Bug translator/20840] New: @defined($somethingundefined + 1) gives 1
- Auto-submitted: auto-generated
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.