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

Fix subtle memory leak in nbr_intersection primitive #3858

Merged

Conversation

ChuckHastings
Copy link
Collaborator

Closes https://github.com/rapidsai/graph_dl/issues/259

A customer found a subtle memory leak in Jaccard similarity. Tracked it down to this subtle error.

major_nbr_indices is an std::optional that is initialized to std::nullopt. Overwriting the dereferenced entry replaces the value but does not mark the optional as containing a value. So the resulting value is never destroyed.

@ChuckHastings ChuckHastings self-assigned this Sep 13, 2023
@ChuckHastings ChuckHastings added non-breaking Non-breaking change CRITICAL BUG! BUG that needs to be FIX NOW !!!! labels Sep 13, 2023
@ChuckHastings ChuckHastings added this to the 23.10 milestone Sep 13, 2023
@ChuckHastings ChuckHastings added bug Something isn't working and removed CRITICAL BUG! BUG that needs to be FIX NOW !!!! labels Sep 13, 2023
@ChuckHastings ChuckHastings marked this pull request as ready for review September 13, 2023 04:04
@ChuckHastings ChuckHastings requested a review from a team as a code owner September 13, 2023 04:04
@ChuckHastings
Copy link
Collaborator Author

/merge

@rapids-bot rapids-bot bot merged commit e55c131 into rapidsai:branch-23.10 Sep 13, 2023
55 checks passed
@ChuckHastings ChuckHastings deleted the fix_jaccard_memory_leak branch September 27, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants