-
Notifications
You must be signed in to change notification settings - Fork 871
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
osc/rdma: Fix some bugs running with btl/tcp. #8719
Conversation
6443523
to
dad72d3
Compare
@@ -529,6 +529,7 @@ static int allocate_state_single (ompi_osc_rdma_module_t *module, void **base, s | |||
my_peer->state_handle = module->state_handle; | |||
my_peer->state_btl_index = my_peer->data_btl_index; | |||
my_peer->state_endpoint = my_peer->data_endpoint; | |||
assert(my_peer -> state_endpoint != NULL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's with all these spaces ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right - removed these asserts(). Thanks.
pending_op->op_frag->handle, (void *) pending_op, NULL, OPAL_SUCCESS); | ||
} else { | ||
/* need to release here because ompi_osc_rdma_atomic_complete was not called */ | ||
OBJ_RELEASE(pending_op); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch.
23fd874
to
a0d4106
Compare
- Make sure peer->state_endpoint is set correctly. - Fix double free of pending_op in ompi_osc_rdma_btl_fop() and ompi_osc_rdma_btl_op(). Cleanup/leaks: - Don't parse ompi_osc_rdma_btl_alternate_names twice. - free temp in allocate_state_shared(). Signed-off-by: Austen Lauria <awlauria@us.ibm.com>
a0d4106
to
928ac83
Compare
Found another double-free. Should be good to go. |
@boslica comments have been addressed. Ready for re-review
I cherry-picked this commit into #8756. Closing. |
Cleanup/leaks: