This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug bpf/24953] New: foreach statement not retrieving correct array values in stapbpf
- From: "sapatel at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Fri, 30 Aug 2019 15:59:24 +0000
- Subject: [Bug bpf/24953] New: foreach statement not retrieving correct array values in stapbpf
- Auto-submitted: auto-generated
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.