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 bpf/24953] New: foreach statement not retrieving correct array values in stapbpf


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.

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