Skip to content

Fix subtle memory leak in nbr_intersection primitive#3858

Merged
rapids-bot[bot] merged 1 commit intorapidsai:branch-23.10from
ChuckHastings:fix_jaccard_memory_leak
Sep 13, 2023
Merged

Fix subtle memory leak in nbr_intersection primitive#3858
rapids-bot[bot] merged 1 commit intorapidsai:branch-23.10from
ChuckHastings:fix_jaccard_memory_leak

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
@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