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/24329] New: bpf userspace: consecutive map string lookups overwrite each other


https://sourceware.org/bugzilla/show_bug.cgi?id=24329

            Bug ID: 24329
           Summary: bpf userspace: consecutive map string lookups
                    overwrite each other
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: bpf
          Assignee: systemtap at sourceware dot org
          Reporter: me at serhei dot io
  Target Milestone: ---

global tab

probe begin {
  printf("BEGIN\n")
  tab["foo"] = "a"; tab["bar"] = "b"
  exit()
}

probe end {
  x = tab["foo"]; y = tab["bar"]
  printf("%s%s\n", x, y)
}

should print: ab
prints: bb

Both map lookups overwrite lookup_tmp in the userspace interpreter.

-- 
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]