Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
Closed
Labels
OS-windowstopic-free-threadingtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
Crash report
What happened?
I'm trying to use Python 3.13rc1 with free-threading and debugging enabled on Windows 11. On startup, Python crashes. I've got a stack trace of the issue, which is pointing to the ob_type being invalid for an object during the startup sequence.
When I run Python at the command line (for anything other than show version) it crashes immediately.
Exception thrown: read access violation. v->**ob_type** was 0xFFFFFFFFFFFFFF8F. Full stack trace
python313t_d.dll!binary_op1(_object * v, _object * w, const int op_slot, const char * op_name) Line 934 at C:\Users\anthonyshaw\source\repos\cpython\Objects\abstract.c(934) python313t_d.dll!PyNumber_Add(_object * v, _object * w) Line 1141 at C:\Users\anthonyshaw\source\repos\cpython\Objects\abstract.c(1141) python313t_d.dll!_PyEval_EvalFrameDefault(_ts * tstate, _PyInterpreterFrame * frame, int throwflag) Line 132 at C:\Users\anthonyshaw\source\repos\cpython\Python\generated_cases.c.h(132) python313t_d.dll!_PyEval_Vector(_ts * tstate, PyFunctionObject * func, _object * locals, _object * const * args, unsigned __int64 argcount, _object * kwnames) Line 1806 at C:\Users\anthonyshaw\source\repos\cpython\Python\ceval.c(1806) python313t_d.dll!PyEval_EvalCode(_object * co, _object * globals, _object * locals) Line 596 at C:\Users\anthonyshaw\source\repos\cpython\Python\ceval.c(596) python313t_d.dll!exec_code_in_module(_ts * tstate, _object * name, _object * module_dict, _object * code_object) Line 2617 at C:\Users\anthonyshaw\source\repos\cpython\Python\import.c(2617) python313t_d.dll!PyImport_ImportFrozenModuleObject(_object * name) Line 3048 at C:\Users\anthonyshaw\source\repos\cpython\Python\import.c(3048) python313t_d.dll!PyImport_ImportFrozenModule(const char * name) Line 3087 at C:\Users\anthonyshaw\source\repos\cpython\Python\import.c(3087) python313t_d.dll!init_importlib(_ts * tstate, _object * sysmod) Line 3167 at C:\Users\anthonyshaw\source\repos\cpython\Python\import.c(3167) python313t_d.dll!_PyImport_InitCore(_ts * tstate, _object * sysmod, int importlib) Line 4039 at C:\Users\anthonyshaw\source\repos\cpython\Python\import.c(4039) python313t_d.dll!pycore_interp_init(_ts * tstate) Line 904 at C:\Users\anthonyshaw\source\repos\cpython\Python\pylifecycle.c(904) python313t_d.dll!pyinit_config(pyruntimestate * runtime, _ts * * tstate_p, const PyConfig * config) Line 933 at C:\Users\anthonyshaw\source\repos\cpython\Python\pylifecycle.c(933) python313t_d.dll!pyinit_core(pyruntimestate * runtime, const PyConfig * src_config, _ts * * tstate_p) Line 1096 at C:\Users\anthonyshaw\source\repos\cpython\Python\pylifecycle.c(1096) python313t_d.dll!Py_InitializeFromConfig(const PyConfig * config) Line 1398 at C:\Users\anthonyshaw\source\repos\cpython\Python\pylifecycle.c(1398) python313t_d.dll!Py_InitializeEx(int install_sigs) Line 1436 at C:\Users\anthonyshaw\source\repos\cpython\Python\pylifecycle.c(1436) python313t_d.dll!Py_Initialize() Line 1446 at C:\Users\anthonyshaw\source\repos\cpython\Python\pylifecycle.c(1446) [Managed to Native Transition] CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Output from running 'python -VV' on the command line:
Python 3.13.0rc1 experimental free-threading build (tags/v3.13.0rc1:e4a3e786a5e, Aug 12 2024, 08:07:19) [MSC v.1940 64 bit (AMD64)]
Metadata
Metadata
Assignees
Labels
OS-windowstopic-free-threadingtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump