Rust-GPU / Rust-GPU/rust-cuda

[cust_std] Vec struct segfaults unpredictably

Open
#97 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
5.4k
Forks
249
PR merge metrics
No merged PRs in 30d

Description

I sadly cannot give a reproducible example for this, because it happens unpredictably, but essentially, whenever I use the Vec struct in my kernel code, it ends up giving me a LaunchFailure error after some time.

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

The report identifies Vec usage in kernel code and a later LaunchFailure, but provides no reproducible example, file, entry point, or test. Start by finding the kernel-side Vec implementation and a minimal failing use, then compare a run that reaches LaunchFailure with one that does not; done means isolating and covering the cause with a reproducible test.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.