cuda-python icon indicating copy to clipboard operation
cuda-python copied to clipboard

[BUG]: Intermittent cuda-gdb failure in source-line test on Linux T4

Open jpascucci-nv opened this issue 3 weeks ago • 0 comments

Is this a duplicate?

  • [x] I confirmed there appear to be no duplicate issues for this bug and that I agree to the Code of Conduct

Type of Bug

Runtime Error

Component

cuda.core

Describe the bug

Intermittent cuda-gdb failure in source-line test on Linux T4

Failure

CI run 42725042120, job 129531720141:

  • Linux x86_64
  • Python 3.14t
  • CUDA 12.9.1 local toolkit
  • T4
  • Driver 595.99.02

test_cuda_gdb_shows_nvrtc_debug_source_lines[2-5] times out after 120 seconds while running cuda-gdb against tests/helpers/cuda_gdb_src.py.

Captured stderr includes:

cuCtxGetDevice returned CUDA_ERROR_INVALID_CONTEXT(CUresult=201)

Historical evidence

PR #3371 enabled this test in local-toolkit jobs on November 6 by installing cuda-gdb.

The November 7 run already failed the same test and configuration with:

cuda-state.c:274: internal-error: create_module: Assertion `context' failed.

That failure also included CUDA_ERROR_INVALID_CONTEXT.

The preceding nightly passed all five repetitions, indicating intermittent behavior. Sampled passing and failing jobs both used driver 595.99.02.

Suggested investigation

  • [ ] Reproduce the debugger invocation outside pytest and under the threaded test configuration.
  • [ ] Capture complete debugger output and its exact version.
  • [ ] Determine whether serialization avoids the failure.
  • [ ] Investigate the debugger internal assertion separately from the Python source-line assertion.

How to Reproduce

May be timing dependent?

Expected behavior

No CDCI failure.

Operating System

No response

nvidia-smi output

No response

jpascucci-nv avatar Nov 10 '26 16:11 jpascucci-nv