Skip to content

[BUG]: Access violation in test_cuda_launch_host_func_graph_replay on Windows, free-threaded Python 3.15 #3635

Backlog

Description

@rparolin

Is this a duplicate?

Type of Bug

Runtime Error

Component

cuda.bindings

Describe the bug

On Windows with free-threaded Python 3.15, the cuda_bindings_12 test tests/test_cuda.py::test_cuda_launch_host_func_graph_replay crashed with an access violation. It was the first failure in the job.

Job: 140050536292 (#3608, 4bc2808fd80f)

  • Test win-64 / pathfinder+bindings12+core12+meta12 / py3.15t, CTK12.9.1 (local CTK; bindings PR), GPU v100 (TCC)
  • Python 3.15.2 free-threaded, CUDA Toolkit 12.9.1, Tesla V100 32GB (TCC), driver 582.16
  • pytest-run-parallel 0.10.0; the test ran under it (two threads report the same frame)
tests\test_cuda.py::test_stream_capture PARALLEL PASSED                  [ 40%]
Windows fatal exception: access violation

<Cannot show all threads while the GIL is disabled>
Stack (most recent call first):
  File "...\cuda_bindings_12\tests\test_cuda.py", line 796 in test_cuda_launch_host_func_graph_replay
  File "...\site-packages\pytest_run_parallel\plugin.py", line 83 in closure
  File "...\Lib\threading.py", line 1161 in run

The step ended with exit code 139.

Possibly related, same job on another commit: 140069089339 (#3604, 1aeaa44d5471) did not crash but hung. The last line printed was tests\test_cuda.py::test_cuda_memcpy PARALLEL PASSED [ 34%] at 17:32 UTC. Nothing more was printed and the job was cancelled at the 60 minute limit at 18:24 UTC. The next test in file order is test_cuda_array, so this hang is not in the host-function test. It may be a separate problem. The job passed when re-run.

Seen while watching CI on the pathfinder cleanup stack (#3616). Those PRs change only cuda_pathfinder/, and the pathfinder tests passed in the same job each time, so this looks unrelated to them.

How to Reproduce

CI only so far. Not reproduced locally. Intermittent: in the same CI round the same job passed on other PRs of the stack (for example #3609, #3611, #3619, #3620).

Expected behavior

The test passes, and the job does not hang.

Operating System

Windows (GitHub Actions self-hosted runner)

nvidia-smi output

Tesla V100-PCIE-32GB, TCC, driver 582.16, CUDA 13.0 (from the job log).

Activity

  1. added
    bug
    triage
    test
    cuda.bindings
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcuda.bindingstesttriage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions