[BUG][Python] cuvs Resources segfault with explicit stream
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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