Skip to content

IVF-PQ tests: fix segfault when accessing empty lists#933

Merged
rapids-bot[bot] merged 2 commits intobranch-25.06from
achirkin-tests-ivf-pq-list-empty-segfault
May 27, 2025
Merged

IVF-PQ tests: fix segfault when accessing empty lists#933
rapids-bot[bot] merged 2 commits intobranch-25.06from
achirkin-tests-ivf-pq-list-empty-segfault

Conversation

@achirkin
Copy link
Copy Markdown
Contributor

Check if the index.lists()[label] is not an empty shared pointer before accessing its content in tests.

This is a follow-up on #838, in which I fixed this problem in one place, but not in two others in the same file.

@achirkin achirkin self-assigned this May 26, 2025
@achirkin achirkin requested a review from a team as a code owner May 26, 2025 06:47
@achirkin achirkin added the bug Something isn't working label May 26, 2025
@achirkin achirkin added the non-breaking Introduces a non-breaking change label May 26, 2025
@achirkin achirkin moved this to In Progress in Unstructured Data Processing May 26, 2025
@github-actions github-actions Bot added the cpp label May 26, 2025
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.49%. Comparing base (2dcba18) to head (77d21c0).

Additional details and impacted files
@@              Coverage Diff              @@
##           branch-25.06     #933   +/-   ##
=============================================
  Coverage         84.49%   84.49%           
=============================================
  Files                20       20           
  Lines               129      129           
=============================================
  Hits                109      109           
  Misses               20       20           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@achirkin achirkin linked an issue May 26, 2025 that may be closed by this pull request
@achirkin
Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot rapids-bot Bot merged commit 079e030 into branch-25.06 May 27, 2025
85 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Unstructured Data Processing May 27, 2025
@jakirkham jakirkham deleted the achirkin-tests-ivf-pq-list-empty-segfault branch May 29, 2025 06:48
@jakirkham
Copy link
Copy Markdown
Member

Thanks Artem and Corey! 🙏

mythrocks pushed a commit to mythrocks/cuvs that referenced this pull request Jun 3, 2025
Check if the `index.lists()[label]` is not an empty shared pointer before accessing its content in tests.

This is a follow-up on rapidsai#838, in which I fixed this problem in one place, but not in two others in the same file.

Authors:
  - Artem M. Chirkin (https://github.com/achirkin)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: rapidsai#933
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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] Segmentation fault in NEIGHBORS_ANN_IVF_PQ_TEST

4 participants