[Bug bpf/24953] New: foreach statement not retrieving correct array values in stapbpf
sapatel at redhat dot com
sourceware-bugzilla@sourceware.org
Fri Aug 30 15:59:00 GMT 2019
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.
More information about the Systemtap
mailing list