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

cudf::detail::pinned_allocator doesn't throw from deallocate #14251

Conversation

robertmaynard
Copy link
Contributor

Description

Fixes #14165

The deallocate function is called by the pinned_host_vector. Throwing from destructors is bad since they can't be caught, and generally get converted into runtime sig aborts.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

Fixes rapidsai#14165

The deallocate function is called by the `pinned_host_vector`.
Throwing from destructors is bad since they can't be caught,
and generally get converted into runtime sig aborts.
@robertmaynard robertmaynard added bug Something isn't working 3 - Ready for Review Ready for review by team non-breaking Non-breaking change labels Oct 5, 2023
@robertmaynard robertmaynard requested a review from a team as a code owner October 5, 2023 14:03
@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Oct 5, 2023
@robertmaynard
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 04e2cd6 into rapidsai:branch-23.12 Oct 6, 2023
60 checks passed
@robertmaynard robertmaynard deleted the bug/remove_throwing_deallocate_pinned_host_vector branch November 15, 2023 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG] pinned_host_vector can cause abrupt program termination
4 participants