This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug bpf/23875] support string map keys in foreach iteration
- From: "me at serhei dot io" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Tue, 13 Nov 2018 12:45:57 +0000
- Subject: [Bug bpf/23875] support string map keys in foreach iteration
- Auto-submitted: auto-generated
- References: <bug-23875-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23875
Serhei Makarov <me at serhei dot io> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|'stack smashing error' on |support string map keys in
|foreach iteration |foreach iteration
--- Comment #1 from Serhei Makarov <me at serhei dot io> ---
The foreach loop functionality needs to be extended to support iteration of
string keys.
Current code assumes keys are int64_t, which is what causes the 'stack
smashing' error (attempt to copy 64-byte string into 8-byte stack variable).
There are other problems e.g. potential to infinite-loop, segfault and so
forth.
Wrote testcases to cover the known issues and (for the time being) added commit
0eaf4f196 to cleanly reject foreach loops with string keys in the translator.
Keeping the PR open to track work on foreach string key support.
--
You are receiving this mail because:
You are the assignee for the bug.