Skip to content

Conversation

@ggouaillardet
Copy link
Contributor

As reported at https://stackoverflow.com/questions/52707242/mpirun-segmentation-fault-whenever-i-use-a-hostfile
mpirun crashes when the hostfile contains a "user@host" line.
The root cause is username was not strdup'ed and free'd twice by opal_argv_free() and free()

Signed-off-by: Gilles Gouaillardet [email protected]

(back-ported from commit 5803385)

As reported at https://stackoverflow.com/questions/52707242/mpirun-segmentation-fault-whenever-i-use-a-hostfile
mpirun crashes when the hostfile contains a "user@host" line.
The root cause is username was not strdup'ed and free'd twice by opal_argv_free() and free()

Signed-off-by: Gilles Gouaillardet <[email protected]>

(back-ported from commit open-mpi/ompi@5803385)
@jsquyres jsquyres changed the title util/hostfile: fix a double free error v2.x: util/hostfile: fix a double free error Oct 9, 2018
@jsquyres
Copy link
Member

jsquyres commented Oct 9, 2018

@hppritcha Trivial error+fix for not-uncommon case; worthy of v2.x. Good to go.

@hppritcha hppritcha merged commit 96558d5 into open-mpi:v2.x Oct 9, 2018
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.

3 participants