Mastering-Python-2e-code_2/CH_11_debugging/T_09_faulthandler_enabled.py
2022-05-05 18:25:55 +02:00

8 lines
136 B
Python

import ctypes
import faulthandler
faulthandler.enable()
# Get memory address 0, your kernel shouldn't allow this:
ctypes.string_at(0)