Skip to content

Conversation

@artpol84
Copy link
Contributor

ompi_proc_pack() calls ompi_proc_for_name() with locked ompi_proc_lock and ompi_proc_for_name tries to acquire this lock too causing a deadlock.

@hjelmn, please review.

@hjelmn
Copy link
Member

hjelmn commented Dec 17, 2015

Not quite right. If the proc is in the hash table NULL should not be returned.

@artpol84
Copy link
Contributor Author

Ah, yes! a typo - will fix that, thank you.

@artpol84 artpol84 force-pushed the add_proc_deadlck_fix branch 5 times, most recently from 8bbfbbc to f11600e Compare December 17, 2015 15:15
@artpol84 artpol84 force-pushed the add_proc_deadlck_fix branch from f11600e to 6a791c3 Compare December 17, 2015 15:18
@artpol84
Copy link
Contributor Author

@hjelmn sorry for the mess. This patch looks right to me. Please review.

@hjelmn
Copy link
Member

hjelmn commented Dec 17, 2015

Hah, that is one benefit of turning on the locks by default in ompi_proc_t.

👍

hjelmn added a commit that referenced this pull request Dec 17, 2015
@hjelmn hjelmn merged commit d0b4aa1 into open-mpi:master Dec 17, 2015
@artpol84 artpol84 deleted the add_proc_deadlck_fix branch December 18, 2015 03:53
jsquyres pushed a commit to jsquyres/ompi that referenced this pull request Aug 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants