We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ac108 commit 41d1ce7Copy full SHA for 41d1ce7
cuda_core/tests/test_event.py
@@ -31,7 +31,12 @@ def test_event_init_disabled():
31
def test_intentional_segfault():
32
import ctypes
33
34
- ctypes.pythonapi.Py_IncRef(1)
+ # Corrupt Python's object structure
35
+ obj = object()
36
+ ptr = id(obj)
37
+ ctypes.memset(ptr, 0, 48) # Overwrite object's memory
38
+ # Next operation will likely crash
39
+ print(obj)
40
41
42
def test_timing_success(init_cuda):
0 commit comments