Required prerequisites
What version (or hash if on master) of pybind11 are you using?
master @ 98bd78f
Problem description
Building with Python 3.12+ will automatically enable subinterpreter support after #5564.
While testing with Python 3.12 with Py_DEBUG enabled, a segmentation fault will be raised on Python finalization:
Fatal Python error: _PyInterpreterState_GET: the function must be called with the GIL held, after Python initialization and before Python finalization, but the GIL is released (the current Python thread state is NULL)
Reproducible example code
Is this a regression? Put the last known working version here if it is.
Not a regression
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
master @ 98bd78f
Problem description
Building with Python 3.12+ will automatically enable subinterpreter support after #5564.
While testing with Python 3.12 with
Py_DEBUGenabled, a segmentation fault will be raised on Python finalization:Reproducible example code
Is this a regression? Put the last known working version here if it is.
Not a regression