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

v4.1.x: sharedfp_sm_file_component_query: add file open to ensure correct ope… #9787

Merged
merged 5 commits into from
Jan 10, 2022

Conversation

edgargabriel
Copy link
Member

…rations

try to actually open the sharedfp/sm file during the query operation to ensure
that the component can actually run. This is based on some reports on the mailing list that
the sharedfp/sm operation causes problems in certain circumstances.

Fixes issue #9656

Signed-off-by: Edgar Gabriel [email protected]
(cherry picked from commit d8464d2)

…rations

try to actually open the sharedfp/sm file during the query operation to ensure
that the component can actually run. This is based on some reports on the mailing list that
the sharedfp/sm operation causes problems in certain circumstances.

Fixes issue open-mpi#9656

Signed-off-by: Edgar Gabriel <[email protected]>
(cherry picked from commit d8464d2)
jsquyres and others added 4 commits January 4, 2022 10:20
Fix macOS build by using opal_basename() instead of basename().

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit c79291e)
Commit c79291e accidentally
introduced minor memory leaks by calling opal_basename() without
free()ing the results.

Fixes CID 1496830.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit 0398598)
use asprintf instead of calculating lenght of the string and using malloc. This solution matches now the code used during the file_query operation of the same component.

Signed-off-by: Edgar Gabriel <[email protected]>
(cherry picked from commit 4af40ed)
accidentally left an invalid free after the rewriting the code to use asprintf.
Fixes Coverty CID 1496849

Signed-off-by: Edgar Gabriel <[email protected]>
(cherry picked from commit a260b88)
@jsquyres jsquyres changed the title sharedfp_sm_file_component_query: add file open to ensure correct ope… v4.1.x: sharedfp_sm_file_component_query: add file open to ensure correct ope… Jan 4, 2022
@bwbarrett bwbarrett merged commit 6aa9281 into open-mpi:v4.1.x Jan 10, 2022
@edgargabriel edgargabriel deleted the pr/sharedfp-sm-init-v4.1 branch March 3, 2023 14:24
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.

4 participants