mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Frame evaluation debugger stops with stack overflow after reloading (PY-23737)
Sometimes during process shutdown Python nullifies some global variables, but still calls frame evaluation function. Add check for avoiding such situations.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -50,6 +50,10 @@ cdef PyObject* get_bytecode_while_frame_eval(PyFrameObject *frame_obj, int exc):
|
||||
cdef int* extra_value = NULL
|
||||
cdef int thread_index = -1
|
||||
|
||||
if is_use_code_extra is None or AVOID_RECURSION is None:
|
||||
# Sometimes during process shutdown these global variables become None
|
||||
return _PyEval_EvalFrameDefault(frame_obj, exc)
|
||||
|
||||
if is_use_code_extra():
|
||||
extra = PyMem_Malloc(sizeof(int))
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user