From: "sapatel at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug bpf/24953] New: foreach statement not retrieving correct array values in stapbpf
Date: Fri, 30 Aug 2019 15:59:00 -0000 [thread overview]
Message-ID: <bug-24953-6586@http.sourceware.org/bugzilla/> (raw)
https://sourceware.org/bugzilla/show_bug.cgi?id=24953
Bug ID: 24953
Summary: foreach statement not retrieving correct array values
in stapbpf
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: bpf
Assignee: systemtap at sourceware dot org
Reporter: sapatel at redhat dot com
Target Milestone: ---
When using foreach statements with arrays on stapbpf, the incorrect values are
retrieved. For example, the following script demonstrates this:
global arr
probe begin { arr[1] = 1; arr[2] = 2; exit() }
probe end { foreach ( v = v1 in arr) { printf("%d ", v) } }'
'1 2 ' should be printed, but rather '0 0 ' is printed.
--
You are receiving this mail because:
You are the assignee for the bug.
next reply other threads:[~2019-08-30 15:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-30 15:59 sapatel at redhat dot com [this message]
2019-08-30 18:41 ` [Bug bpf/24953] " wcohen at redhat dot com
2019-08-30 18:52 ` sapatel at redhat dot com
2019-09-03 14:06 ` [Bug bpf/24953] foreach (v = v1,v2) syntax not behaving correctly " me at serhei dot io
2019-09-26 19:55 ` sapatel at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-24953-6586@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).