Repository navigation
Conversation
physwkim
requested review from
elibol,
kkraus14,
nihalpasham and
rparolin
as code owners
November 12, 2026 15:42
The last Arc<Context> can drop inside a deferred cleanup, so the retirement thread could call cuDevicePrimaryCtxRelease while exit() runs the driver's own exit handlers. An atexit handler now waits for the batch in flight, and the worker leaks whatever is retired after it. Signed-off-by: Sang Woo Kim <[email protected]>
physwkim
force-pushed
the
fix/retire-at-exit
branch
from
November 12, 2026 15:53
63b9258 to
8ab280a
Compare
Collaborator
|
/ok to test 8ab280a |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1783. With this change the issue's repro under ncu with MALLOC_CHECK_=3 exits cleanly in 30 of 30 runs; 28 of 30 crashed before.