NVIDIA / NVIDIA/cuvs

[BUG][Python] cuvs Resources segfault with explicit stream

Open
#1,863 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Python
Dominant language
Cuda
Stars
854
Forks
236
Avg merge
3d 3h
Merged PRs (30d)
62

Description

Reproducible example:

import cupy as cp
from cuvs.common import Resources

stream = cp.cuda.Stream()
res = Resources(stream=stream.ptr)
res.sync() #segfault

Reference: https://github.com/rapidsai/cuvs/blame/main/python/cuvs/cuvs/common/resources.pyx#L46-L52

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the provided Python reproduction with CuPy and inspect python/cuvs/cuvs/common/resources.pyx around lines 46-52. Trace how an explicit stream is stored and used by Resources.sync(), then verify that the same reproduction completes without a segmentation fault.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.