Skip to content
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

btl/tcp: fix double list remove #2077

Merged
merged 1 commit into from
Sep 13, 2016
Merged

btl/tcp: fix double list remove #2077

merged 1 commit into from
Sep 13, 2016

Conversation

hjelmn
Copy link
Member

@hjelmn hjelmn commented Sep 13, 2016

This commit fixes an abort during finalize because pending events were
removed from the list twice.

References #2030

Signed-off-by: Nathan Hjelm [email protected]

This commit fixes an abort during finalize because pending events were
removed from the list twice.

References open-mpi#2030

Signed-off-by: Nathan Hjelm <[email protected]>
@hjelmn
Copy link
Member Author

hjelmn commented Sep 13, 2016

@bosilca Found by MTT.

@bosilca
Copy link
Member

bosilca commented Sep 13, 2016

Ah it is because opal_list_remove_first doesn't really mark the item as not on a list anymore. Good catch. 👍

@rhc54
Copy link
Contributor

rhc54 commented Sep 13, 2016

Should we update opal_list_remove_[] to update the item as no longer on a list? Feels a bit like a bug to me that it doesn't

@bosilca
Copy link
Member

bosilca commented Sep 13, 2016

It does it on a DEBUG run, but not in an optimized one (it saves 2 stores). Whatever approach we take, we should standardize the behavior.

@rhc54
Copy link
Contributor

rhc54 commented Sep 13, 2016

I see - yeah, makes sense then that we don't update the item.

@hjelmn
Copy link
Member Author

hjelmn commented Sep 13, 2016

Yeah, it is an error to remove an item from a list twice since we try to keep the logic simple by not keeping track of the list. It would be a large change in behavior if opal_list_remove_item can be called twice on the same item without an append/prepend between.

@hjelmn hjelmn merged commit 4c9e38e into open-mpi:master Sep 13, 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