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

Improve non-blocking ucxx::Endpoint::close() #232

Draft
wants to merge 31 commits into
base: branch-0.41
Choose a base branch
from

Conversation

pentschev
Copy link
Member

No description provided.

A race could cause the `Endpoint::errorCallback` to dereference an
already closed and destroyed `ucxx::Endpoint`, leading to segmentation
faults and sometimes deadlocks. With the use of a `weak_ptr<Endpoint>`
that can be prevented by returning before dereferencing the pointer
which should be safe since the owner has already been destroyed anyway.
Additionally comment out use of `dropCanceled()` which is probably now
redundant but requires confirmation.
@pentschev pentschev changed the base branch from branch-0.38 to branch-0.39 July 25, 2024 14:23
@pentschev pentschev changed the base branch from branch-0.39 to branch-0.40 July 25, 2024 14:23
@pentschev pentschev changed the base branch from branch-0.40 to branch-0.41 November 11, 2024 21:47
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.

1 participant