Skip to content

Conversation

@drwootton
Copy link

Coverity static analysis reports a missing lock release in ompi_coll_adapt_ibcast_generic.

The lock is initially obtained before entering the loop at line 477. The lock is released and then obtained again at
the bottom of each loop iteration.

If the call at line 499 fails, the lock is not released an there can be an application hang.

Since the lock needs to be released both for the error return and normal loop iteration, I moved
the OMPI_THREAD_UNLOCK macro before the error return check.

Signed-off-by: David Wootton [email protected]

Coverity CID 1498641

Signed-off-by: David Wootton <[email protected]>
@drwootton drwootton requested a review from bosilca December 12, 2022 22:06
@drwootton drwootton self-assigned this Dec 12, 2022
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