Skip to content

Out of bound access in the test_graph_update test #843

@leofang

Description

@leofang

CI log: https://github.com/NVIDIA/cuda-python/actions/runs/16994945071/job/48183959433

tests/test_graph.py::test_graph_update ========= Invalid __global__ read of size 4 bytes
=========     at add_one(int *)+0x40
=========     by thread (0,0,0) in block (0,0,0)
=========     Access at 0x7c547b000000 is out of bounds
=========     and is inside the nearest allocation at 0x7c547b000000 of size 12 bytes
=========     Saved host backtrace up to driver entry point at kernel launch time
=========         Host Frame:  [0x3f2bd] in cydriver.cpython-312-x86_64-linux-gnu.so
=========         Host Frame:  [0xf4e9] in cydriver.cpython-312-x86_64-linux-gnu.so
=========         Host Frame:  [0x3fe25d] in driver.cpython-312-x86_64-linux-gnu.so
=========         Host Frame: PyObject_Vectorcall in call.c:325 [0x210c94] in libpython3.12.so.1.0
=========         Host Frame: _PyEval_EvalFrameDefault in bytecodes.c:2715 [0x2606fd] in libpython3.12.so.1.0
=========         Host Frame: _PyObject_Call_Prepend in call.c:508 [0x2114b6] in libpython3.12.so.1.0
=========         Host Frame: slot_tp_call in typeobject.c:8791 [0x2d3572] in libpython3.12.so.1.0
=========         Host Frame: _PyObject_MakeTpCall in call.c:240 [0x210962] in libpython3.12.so.1.0
=========         Host Frame: _PyEval_EvalFrameDefault in bytecodes.c:2715 [0x2606fd] in libpython3.12.so.1.0
=========         Host Frame: _PyObject_Call_Prepend in call.c:508 [0x2114b6] in libpython3.12.so.1.0
=========         Host Frame: slot_tp_call in typeobject.c:8791 [0x2d3572] in libpython3.12.so.1.0
=========         Host Frame: PyObject_Call [0x211b9e] in libpython3.12.so.1.0
=========         Host Frame: _PyEval_EvalFrameDefault in bytecodes.c:3263 [0x264f1b] in libpython3.12.so.1.0
=========         Host Frame: _PyObject_Call_Prepend in call.c:508 [0x2114b6] in libpython3.12.so.1.0
=========         Host Frame: slot_tp_call in typeobject.c:8791 [0x2d3572] in libpython3.12.so.1.0
=========         Host Frame: _PyObject_MakeTpCall in call.c:240 [0x210962] in libpython3.12.so.1.0
=========         Host Frame: _PyEval_EvalFrameDefault in bytecodes.c:2715 [0x2606fd] in libpython3.12.so.1.0
=========         Host Frame: _PyObject_Call_Prepend in call.c:508 [0x2114b6] in libpython3.12.so.1.0
=========         Host Frame: slot_tp_call in typeobject.c:8791 [0x2d3572] in libpython3.12.so.1.0
=========         Host Frame: _PyObject_MakeTpCall in call.c:240 [0x210962] in libpython3.12.so.1.0
=========         Host Frame: _PyEval_EvalFrameDefault in bytecodes.c:2715 [0x2606fd] in libpython3.12.so.1.0
=========         Host Frame: _PyObject_Call_Prepend in call.c:508 [0x2114b6] in libpython3.12.so.1.0
=========         Host Frame: slot_tp_call in typeobject.c:8791 [0x2d3572] in libpython3.12.so.1.0
=========         Host Frame: _PyObject_MakeTpCall in call.c:240 [0x210962] in libpython3.12.so.1.0
=========         Host Frame: _PyEval_EvalFrameDefault in bytecodes.c:2715 [0x2606fd] in libpython3.12.so.1.0
=========         Host Frame: PyEval_EvalCode in ceval.c:580 [0x2fa2f5] in libpython3.12.so.1.0
=========         Host Frame: run_eval_code_obj in pythonrun.c:1757 [0x31b427] in libpython3.12.so.1.0
=========         Host Frame: run_mod in pythonrun.c:1778 [0x31af6a] in libpython3.12.so.1.0
=========         Host Frame: pyrun_file in pythonrun.c:1674 [0x31aeb0] in libpython3.12.so.1.0
=========         Host Frame: _PyRun_SimpleFileObject in pythonrun.c:459 [0x31ace8] in libpython3.12.so.1.0
=========         Host Frame: _PyRun_AnyFileObject in pythonrun.c:78 [0x31ab06] in libpython3.12.so.1.0
=========         Host Frame: Py_RunMain in main.c:714 [0x324274] in libpython3.12.so.1.0
=========         Host Frame: Py_BytesMain in main.c:768 [0x323d3c] in libpython3.12.so.1.0
=========         Host Frame:  [0x29d8f] in libc.so.6
=========         Host Frame: __libc_start_main [0x29e3f] in libc.so.6
=========         Host Frame: _start [0x1094] in python
=========         Host Frame: launch in _graph.py:782
=========         Host Frame: test_graph_update in test_graph.py:612
=========         Host Frame: pytest_pyfunc_call in python.py:157
=========         Host Frame: _multicall in _callers.py:121
=========         Host Frame: _hookexec in _manager.py:120
=========         Host Frame: __call__ in _hooks.py:512
=========         Host Frame: runtest in python.py:1671
=========         Host Frame: pytest_runtest_call in runner.py:178
=========         Host Frame: _multicall in _callers.py:121
=========         Host Frame: _hookexec in _manager.py:120
=========         Host Frame: __call__ in _hooks.py:512
=========         Host Frame: <lambda> in runner.py:246
=========         Host Frame: from_call in runner.py:344
=========         Host Frame: call_and_report in runner.py:245
=========         Host Frame: runtestprotocol in runner.py:136
=========         Host Frame: pytest_runtest_protocol in runner.py:117
=========         Host Frame: _multicall in _callers.py:121
=========         Host Frame: _hookexec in _manager.py:120
=========         Host Frame: __call__ in _hooks.py:512
=========         Host Frame: pytest_runtestloop in main.py:367
=========         Host Frame: _multicall in _callers.py:121
=========         Host Frame: _hookexec in _manager.py:120
=========         Host Frame: __call__ in _hooks.py:512
=========         Host Frame: _main in main.py:343
=========         Host Frame: wrap_session in main.py:289
=========         Host Frame: pytest_cmdline_main in main.py:336
=========         Host Frame: _multicall in _callers.py:121
=========         Host Frame: _hookexec in _manager.py:120
=========         Host Frame: __call__ in _hooks.py:512
=========         Host Frame: main in __init__.py:175
========= 
FAILED                            [ 38%]

Metadata

Metadata

Labels

cuda.coreEverything related to the cuda.core moduletriageNeeds the team's attention

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions