Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use opal_argv_join_range() for opal_var_dump_color_keys #11829

Closed
wants to merge 1 commit into from

Conversation

gkatev
Copy link
Contributor

@gkatev gkatev commented Jul 19, 2023

This is yet another alternative fix for #11826 (#11827, #11828).

opal_argv_join_range() was initially used with opal_var_dump_color_keys for convinience, to print the valid keys. This was wrong because opal_var_dump_color_keys is not a NULL-terminated array. This commit replaces the join call with an equivalent opal_asprintf loop.

As far as I can tell this was the only place where the array was treated as a NULL-terminated one.

Thanks to Niv Shpak (@nivShpak) for reporting this and identifying the root cause.
Fixes #11826.

The join function was initially used for convinience, to print the
valid keys. This was wrong, because opal_var_dump_color_keys is not
a NULL-terminated array. This commit replaces it with an asprintf loop.

Thanks to Niv Shpak (@nivShpak) for reporting this and identifying the root cause.

Signed-off-by: George Katevenis <[email protected]>
@gkatev gkatev force-pushed the fix_var_dump_color_keys branch from 4d2cb93 to 1455fae Compare July 19, 2023 07:53
@jsquyres
Copy link
Member

@gkatev Many thanks for working through the conversation with us and helping find the root cause. I have decided to merge in #11828 instead of this PR for the reasons cited in #11826.

@jsquyres jsquyres closed this Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues running OMPI with address sanitizer
2 participants