Skip to content

ANN_BENCH: Fix segfault in CAGRA wrapper when moving its graph#733

Merged
rapids-bot[bot] merged 3 commits intobranch-25.04from
fix-ann-bench-cagra-graph-segfault
Feb 28, 2025
Merged

ANN_BENCH: Fix segfault in CAGRA wrapper when moving its graph#733
rapids-bot[bot] merged 3 commits intobranch-25.04from
fix-ann-bench-cagra-graph-segfault

Conversation

@achirkin
Copy link
Contributor

@achirkin achirkin commented Feb 27, 2025

When the graph in CAGRA wrapper needs to be relocated to a different memory resource, the old one is destructed before the data is copied. This leads to a segfault during copy. The fix is to retain the old graph pointer until the data is copied.

This error is likely to happen when one runs CAGRA search benchmark sweeping over multiple values of graph_memory_type.

When the graph in CAGRA wrapper needs to be relocated to a different memory resource, the old one is destructed before the data is copied. This leads to a segfault during copy.
The fix is to retain the old graph pointer until the data is copied.
@achirkin achirkin added bug Something isn't working non-breaking Introduces a non-breaking change labels Feb 27, 2025
@achirkin achirkin self-assigned this Feb 27, 2025
@achirkin achirkin requested a review from a team as a code owner February 27, 2025 10:31
@github-actions github-actions bot added the cpp label Feb 27, 2025
Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Artem for the fix LGTM!

@codecov-commenter
Copy link

codecov-commenter commented Feb 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.00%. Comparing base (ce321a9) to head (65882ba).

Additional details and impacted files
@@              Coverage Diff              @@
##           branch-25.04     #733   +/-   ##
=============================================
  Coverage         84.00%   84.00%           
=============================================
  Files                18       18           
  Lines               125      125           
=============================================
  Hits                105      105           
  Misses               20       20           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@achirkin
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 22cf61b into branch-25.04 Feb 28, 2025
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cpp non-breaking Introduces a non-breaking change

Development

Successfully merging this pull request may close these issues.

3 participants