Skip to content

Conversation

@devreal
Copy link
Contributor

@devreal devreal commented Apr 21, 2022

The group pointer passed from ompi_comm_init is checked for equality with MPI_GROUP_NULL in ompi_group_from_pset but is never initialized. Valgrind complains about a jump based on uninitialized values. Stack values are never default initialized so we have to explicitly initialize it to NULL.

Signed-off-by: Joseph Schuchart [email protected]

The `group` pointer passed from `ompi_comm_init` is checked for
equality with MPI_GROUP_NULL in `ompi_group_from_pset` but is never
initialized. Valgrind complains about a jump based on uninitialized
values. Stack values are never default initialized so we have to
explicitly initialize it to `NULL`.

Signed-off-by: Joseph Schuchart <[email protected]>
@devreal devreal requested a review from bosilca April 21, 2022 17:44
@devreal devreal merged commit 01d5a86 into open-mpi:main Apr 21, 2022
@devreal devreal deleted the comm-init-group-undef branch October 3, 2022 15:52
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.

2 participants