Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--disable-gil builds install incompatible stable ABI extensions #111870

Closed
Tracked by #108219
tonybaloney opened this issue Nov 9, 2023 · 7 comments
Closed
Tracked by #108219

--disable-gil builds install incompatible stable ABI extensions #111870

tonybaloney opened this issue Nov 9, 2023 · 7 comments
Labels
topic-free-threading type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@tonybaloney
Copy link
Contributor

tonybaloney commented Nov 9, 2023

Crash report

Summary

The bundled pip (23.2.1) in the main branch will install incompatible extensions that use the stable ABI in --disable-gil (free-threaded) builds. The logic is in the packaging package, which was fixed in pypa/packaging#728, but we still need a packaging release, for pip to update it's bundled packaging version, a pip release, and for the Python main branch to update it's bundled pip version.

What happened?

python -m pyperf

Python is crashing because in _PyModule_CreateInitialized, the module object is invalid memory (it doesn't look like it initialised at all)

Crash backtrace
libsystem_platform.dylib!_platform_strcmp (Unknown Source:0)
python.exe!_PyImport_ResolveNameWithPackageContext (/Users/anthonyshaw/projects/cpython/Python/import.c:723)
python.exe!_PyModule_CreateInitialized (/Users/anthonyshaw/projects/cpython/Objects/moduleobject.c:213)
python.exe!PyModule_Create2 (/Users/anthonyshaw/projects/cpython/Objects/moduleobject.c:192)
_psutil_osx.abi3.so!PyInit__psutil_osx (Unknown Source:0)
python.exe!_PyImport_LoadDynamicModuleWithSpec (/Users/anthonyshaw/projects/cpython/Python/importdl.c:170)
python.exe!_imp_create_dynamic_impl (/Users/anthonyshaw/projects/cpython/Python/import.c:3751)
python.exe!_imp_create_dynamic (/Users/anthonyshaw/projects/cpython/Python/clinic/import.c.h:485)
python.exe!cfunction_vectorcall_FASTCALL (/Users/anthonyshaw/projects/cpython/Objects/methodobject.c:425)
python.exe!_PyVectorcall_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:273)
python.exe!_PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:348)
python.exe!PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:373)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:5398)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!_PyFunction_Vectorcall (Unknown Source:0)
python.exe!_PyObject_VectorcallTstate (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_call.h:187)
python.exe!object_vacall (/Users/anthonyshaw/projects/cpython/Objects/call.c:819)
python.exe!PyObject_CallMethodObjArgs (/Users/anthonyshaw/projects/cpython/Objects/call.c:880)
python.exe!import_find_and_load (/Users/anthonyshaw/projects/cpython/Python/import.c:2759)
python.exe!PyImport_ImportModuleLevelObject (/Users/anthonyshaw/projects/cpython/Python/import.c:2839)
python.exe!builtin___import___impl (/Users/anthonyshaw/projects/cpython/Python/bltinmodule.c:283)
python.exe!builtin___import__ (/Users/anthonyshaw/projects/cpython/Python/clinic/bltinmodule.c.h:107)
python.exe!cfunction_vectorcall_FASTCALL_KEYWORDS (/Users/anthonyshaw/projects/cpython/Objects/methodobject.c:441)
python.exe!_PyVectorcall_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:273)
python.exe!_PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:348)
python.exe!PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:373)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:5398)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!_PyFunction_Vectorcall (Unknown Source:0)
python.exe!_PyObject_VectorcallTstate (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_call.h:187)
python.exe!object_vacall (/Users/anthonyshaw/projects/cpython/Objects/call.c:819)
python.exe!PyObject_CallMethodObjArgs (/Users/anthonyshaw/projects/cpython/Objects/call.c:880)
python.exe!PyImport_ImportModuleLevelObject (/Users/anthonyshaw/projects/cpython/Python/import.c:2907)
python.exe!import_name (/Users/anthonyshaw/projects/cpython/Python/ceval.c:2575)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:3370)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!PyEval_EvalCode (/Users/anthonyshaw/projects/cpython/Python/ceval.c:591)
python.exe!builtin_exec_impl (/Users/anthonyshaw/projects/cpython/Python/bltinmodule.c:1119)
python.exe!builtin_exec (/Users/anthonyshaw/projects/cpython/Python/clinic/bltinmodule.c.h:540)
python.exe!cfunction_vectorcall_FASTCALL_KEYWORDS (/Users/anthonyshaw/projects/cpython/Objects/methodobject.c:441)
python.exe!_PyVectorcall_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:273)
python.exe!_PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:348)
python.exe!PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:373)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:5398)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!_PyFunction_Vectorcall (Unknown Source:0)
python.exe!_PyObject_VectorcallTstate (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_call.h:187)
python.exe!object_vacall (/Users/anthonyshaw/projects/cpython/Objects/call.c:819)
python.exe!PyObject_CallMethodObjArgs (/Users/anthonyshaw/projects/cpython/Objects/call.c:880)
python.exe!import_find_and_load (/Users/anthonyshaw/projects/cpython/Python/import.c:2759)
python.exe!PyImport_ImportModuleLevelObject (/Users/anthonyshaw/projects/cpython/Python/import.c:2839)
python.exe!builtin___import___impl (/Users/anthonyshaw/projects/cpython/Python/bltinmodule.c:283)
python.exe!builtin___import__ (/Users/anthonyshaw/projects/cpython/Python/clinic/bltinmodule.c.h:107)
python.exe!cfunction_vectorcall_FASTCALL_KEYWORDS (/Users/anthonyshaw/projects/cpython/Objects/methodobject.c:441)
python.exe!_PyVectorcall_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:273)
python.exe!_PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:348)
python.exe!PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:373)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:5398)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!_PyFunction_Vectorcall (Unknown Source:0)
python.exe!_PyObject_VectorcallTstate (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_call.h:187)
python.exe!object_vacall (/Users/anthonyshaw/projects/cpython/Objects/call.c:819)
python.exe!PyObject_CallMethodObjArgs (/Users/anthonyshaw/projects/cpython/Objects/call.c:880)
python.exe!PyImport_ImportModuleLevelObject (/Users/anthonyshaw/projects/cpython/Python/import.c:2907)
python.exe!import_name (/Users/anthonyshaw/projects/cpython/Python/ceval.c:2575)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:3370)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!PyEval_EvalCode (/Users/anthonyshaw/projects/cpython/Python/ceval.c:591)
python.exe!builtin_exec_impl (/Users/anthonyshaw/projects/cpython/Python/bltinmodule.c:1119)
python.exe!builtin_exec (/Users/anthonyshaw/projects/cpython/Python/clinic/bltinmodule.c.h:540)
python.exe!cfunction_vectorcall_FASTCALL_KEYWORDS (/Users/anthonyshaw/projects/cpython/Objects/methodobject.c:441)
python.exe!_PyVectorcall_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:273)
python.exe!_PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:348)
python.exe!PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:373)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:5398)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!_PyFunction_Vectorcall (Unknown Source:0)
python.exe!_PyObject_VectorcallTstate (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_call.h:187)
python.exe!object_vacall (/Users/anthonyshaw/projects/cpython/Objects/call.c:819)
python.exe!PyObject_CallMethodObjArgs (/Users/anthonyshaw/projects/cpython/Objects/call.c:880)
python.exe!import_find_and_load (/Users/anthonyshaw/projects/cpython/Python/import.c:2759)
python.exe!PyImport_ImportModuleLevelObject (/Users/anthonyshaw/projects/cpython/Python/import.c:2839)
python.exe!builtin___import___impl (/Users/anthonyshaw/projects/cpython/Python/bltinmodule.c:283)
python.exe!builtin___import__ (/Users/anthonyshaw/projects/cpython/Python/clinic/bltinmodule.c.h:107)
python.exe!cfunction_vectorcall_FASTCALL_KEYWORDS (/Users/anthonyshaw/projects/cpython/Objects/methodobject.c:441)
python.exe!_PyVectorcall_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:273)
python.exe!_PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:348)
python.exe!PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:373)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:5398)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!_PyFunction_Vectorcall (Unknown Source:0)
python.exe!_PyObject_VectorcallTstate (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_call.h:187)
python.exe!object_vacall (/Users/anthonyshaw/projects/cpython/Objects/call.c:819)
python.exe!PyObject_CallMethodObjArgs (/Users/anthonyshaw/projects/cpython/Objects/call.c:880)
python.exe!PyImport_ImportModuleLevelObject (/Users/anthonyshaw/projects/cpython/Python/import.c:2907)
python.exe!import_name (/Users/anthonyshaw/projects/cpython/Python/ceval.c:2575)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:3370)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!PyEval_EvalCode (/Users/anthonyshaw/projects/cpython/Python/ceval.c:591)
python.exe!builtin_exec_impl (/Users/anthonyshaw/projects/cpython/Python/bltinmodule.c:1119)
python.exe!builtin_exec (/Users/anthonyshaw/projects/cpython/Python/clinic/bltinmodule.c.h:540)
python.exe!cfunction_vectorcall_FASTCALL_KEYWORDS (/Users/anthonyshaw/projects/cpython/Objects/methodobject.c:441)
python.exe!_PyVectorcall_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:273)
python.exe!_PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:348)
python.exe!PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:373)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:5398)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!_PyFunction_Vectorcall (Unknown Source:0)
python.exe!_PyObject_VectorcallTstate (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_call.h:187)
python.exe!object_vacall (/Users/anthonyshaw/projects/cpython/Objects/call.c:819)
python.exe!PyObject_CallMethodObjArgs (/Users/anthonyshaw/projects/cpython/Objects/call.c:880)
python.exe!import_find_and_load (/Users/anthonyshaw/projects/cpython/Python/import.c:2759)
python.exe!PyImport_ImportModuleLevelObject (/Users/anthonyshaw/projects/cpython/Python/import.c:2839)
python.exe!import_name (/Users/anthonyshaw/projects/cpython/Python/ceval.c:2575)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:3370)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!PyEval_EvalCode (/Users/anthonyshaw/projects/cpython/Python/ceval.c:591)
python.exe!builtin_exec_impl (/Users/anthonyshaw/projects/cpython/Python/bltinmodule.c:1119)
python.exe!builtin_exec (/Users/anthonyshaw/projects/cpython/Python/clinic/bltinmodule.c.h:540)
python.exe!cfunction_vectorcall_FASTCALL_KEYWORDS (/Users/anthonyshaw/projects/cpython/Objects/methodobject.c:441)
python.exe!_PyVectorcall_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:273)
python.exe!_PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:348)
python.exe!PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:373)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:5398)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!_PyFunction_Vectorcall (Unknown Source:0)
python.exe!_PyObject_VectorcallTstate (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_call.h:187)
python.exe!object_vacall (/Users/anthonyshaw/projects/cpython/Objects/call.c:819)
python.exe!PyObject_CallMethodObjArgs (/Users/anthonyshaw/projects/cpython/Objects/call.c:880)
python.exe!import_find_and_load (/Users/anthonyshaw/projects/cpython/Python/import.c:2759)
python.exe!PyImport_ImportModuleLevelObject (/Users/anthonyshaw/projects/cpython/Python/import.c:2839)
python.exe!import_name (/Users/anthonyshaw/projects/cpython/Python/ceval.c:2575)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:3370)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!PyEval_EvalCode (/Users/anthonyshaw/projects/cpython/Python/ceval.c:591)
python.exe!builtin_exec_impl (/Users/anthonyshaw/projects/cpython/Python/bltinmodule.c:1119)
python.exe!builtin_exec (/Users/anthonyshaw/projects/cpython/Python/clinic/bltinmodule.c.h:540)
python.exe!cfunction_vectorcall_FASTCALL_KEYWORDS (/Users/anthonyshaw/projects/cpython/Objects/methodobject.c:441)
python.exe!_PyVectorcall_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:273)
python.exe!_PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:348)
python.exe!PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:373)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:5398)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!_PyFunction_Vectorcall (Unknown Source:0)
python.exe!_PyObject_VectorcallTstate (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_call.h:187)
python.exe!object_vacall (/Users/anthonyshaw/projects/cpython/Objects/call.c:819)
python.exe!PyObject_CallMethodObjArgs (/Users/anthonyshaw/projects/cpython/Objects/call.c:880)
python.exe!import_find_and_load (/Users/anthonyshaw/projects/cpython/Python/import.c:2759)
python.exe!PyImport_ImportModuleLevelObject (/Users/anthonyshaw/projects/cpython/Python/import.c:2839)
python.exe!import_name (/Users/anthonyshaw/projects/cpython/Python/ceval.c:2575)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:3370)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!PyEval_EvalCode (/Users/anthonyshaw/projects/cpython/Python/ceval.c:591)
python.exe!builtin_exec_impl (/Users/anthonyshaw/projects/cpython/Python/bltinmodule.c:1119)
python.exe!builtin_exec (/Users/anthonyshaw/projects/cpython/Python/clinic/bltinmodule.c.h:540)
python.exe!cfunction_vectorcall_FASTCALL_KEYWORDS (/Users/anthonyshaw/projects/cpython/Objects/methodobject.c:441)
python.exe!_PyVectorcall_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:273)
python.exe!_PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:348)
python.exe!PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:373)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:5398)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!_PyFunction_Vectorcall (Unknown Source:0)
python.exe!_PyObject_VectorcallTstate (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_call.h:187)
python.exe!object_vacall (/Users/anthonyshaw/projects/cpython/Objects/call.c:819)
python.exe!PyObject_CallMethodObjArgs (/Users/anthonyshaw/projects/cpython/Objects/call.c:880)
python.exe!import_find_and_load (/Users/anthonyshaw/projects/cpython/Python/import.c:2759)
python.exe!PyImport_ImportModuleLevelObject (/Users/anthonyshaw/projects/cpython/Python/import.c:2839)
python.exe!builtin___import___impl (/Users/anthonyshaw/projects/cpython/Python/bltinmodule.c:283)
python.exe!builtin___import__ (/Users/anthonyshaw/projects/cpython/Python/clinic/bltinmodule.c.h:107)
python.exe!cfunction_vectorcall_FASTCALL_KEYWORDS (/Users/anthonyshaw/projects/cpython/Objects/methodobject.c:441)
python.exe!_PyObject_VectorcallTstate (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_call.h:187)
python.exe!PyObject_Vectorcall (/Users/anthonyshaw/projects/cpython/Objects/call.c:327)
python.exe!_PyEval_EvalFrameDefault (/Users/anthonyshaw/projects/cpython/Python/generated_cases.c.h:4360)
python.exe!_PyEval_EvalFrame (/Users/anthonyshaw/projects/cpython/Include/internal/pycore_ceval.h:115)
python.exe!_PyEval_Vector (/Users/anthonyshaw/projects/cpython/Python/ceval.c:1771)
python.exe!_PyFunction_Vectorcall (Unknown Source:0)
python.exe!_PyVectorcall_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:273)
python.exe!_PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:348)
python.exe!PyObject_Call (/Users/anthonyshaw/projects/cpython/Objects/call.c:373)
python.exe!pymain_run_module (/Users/anthonyshaw/projects/cpython/Modules/main.c:297)
python.exe!pymain_run_python (Unknown Source:0)
python.exe!Py_RunMain (/Users/anthonyshaw/projects/cpython/Modules/main.c:707)
python.exe!pymain_main (/Users/anthonyshaw/projects/cpython/Modules/main.c:737)
python.exe!Py_BytesMain (/Users/anthonyshaw/projects/cpython/Modules/main.c:761)
python.exe!main (/Users/anthonyshaw/projects/cpython/Programs/python.c:15)
start (Unknown Source:0)
Verbose log
./python.exe -v -m pyperf  
import _frozen_importlib # frozen
import _imp # builtin
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import '_warnings' # <class '_frozen_importlib.BuiltinImporter'>
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
import '_io' # <class '_frozen_importlib.BuiltinImporter'>
import 'marshal' # <class '_frozen_importlib.BuiltinImporter'>
import 'posix' # <class '_frozen_importlib.BuiltinImporter'>
import '_frozen_importlib_external' # <class '_frozen_importlib.FrozenImporter'>
# installing zipimport hook
import 'time' # <class '_frozen_importlib.BuiltinImporter'>
import 'zipimport' # <class '_frozen_importlib.FrozenImporter'>
# installed zipimport hook
# /Users/anthonyshaw/projects/cpython/Lib/encodings/__pycache__/__init__.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/encodings/__init__.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/encodings/__pycache__/__init__.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/codecs.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/codecs.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/codecs.cpython-313.pyc'
import '_codecs' # <class '_frozen_importlib.BuiltinImporter'>
import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 0x10caed860>
# /Users/anthonyshaw/projects/cpython/Lib/encodings/__pycache__/aliases.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/encodings/aliases.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/encodings/__pycache__/aliases.cpython-313.pyc'
import 'encodings.aliases' # <_frozen_importlib_external.SourceFileLoader object at 0x10cb0cf00>
import 'encodings' # <_frozen_importlib_external.SourceFileLoader object at 0x10caec840>
# /Users/anthonyshaw/projects/cpython/Lib/encodings/__pycache__/utf_8.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/encodings/utf_8.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/encodings/__pycache__/utf_8.cpython-313.pyc'
import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader object at 0x10cb165e0>
import '_signal' # <class '_frozen_importlib.BuiltinImporter'>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/io.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/io.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/io.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/abc.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/abc.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/abc.cpython-313.pyc'
import '_abc' # <class '_frozen_importlib.BuiltinImporter'>
import 'abc' # <_frozen_importlib_external.SourceFileLoader object at 0x10cb1cea0>
import 'io' # <_frozen_importlib_external.SourceFileLoader object at 0x10cb1c1e0>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/site.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/site.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/site.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/os.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/os.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/os.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/stat.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/stat.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/stat.cpython-313.pyc'
import '_stat' # <class '_frozen_importlib.BuiltinImporter'>
import 'stat' # <_frozen_importlib_external.SourceFileLoader object at 0x10cb45860>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/_collections_abc.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/_collections_abc.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/_collections_abc.cpython-313.pyc'
import '_collections_abc' # <_frozen_importlib_external.SourceFileLoader object at 0x10cb45c80>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/posixpath.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/posixpath.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/posixpath.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/genericpath.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/genericpath.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/genericpath.cpython-313.pyc'
import 'genericpath' # <_frozen_importlib_external.SourceFileLoader object at 0x10cb86460>
import 'posixpath' # <_frozen_importlib_external.SourceFileLoader object at 0x10cb50f60>
import 'os' # <_frozen_importlib_external.SourceFileLoader object at 0x10cb36c40>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/_sitebuiltins.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/_sitebuiltins.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/_sitebuiltins.cpython-313.pyc'
import '_sitebuiltins' # <_frozen_importlib_external.SourceFileLoader object at 0x10cb872a0>
Processing user site-packages
Processing global site-packages
Adding directory: '/usr/local/lib/python3.13/site-packages'
import 'site' # <_frozen_importlib_external.SourceFileLoader object at 0x10cb1f1e0>
Python 3.13.0a1+ (heads/main:97c4c06d0d, Nov  9 2023, 13:41:46) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/runpy.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/runpy.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/runpy.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/importlib/__pycache__/__init__.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/importlib/__init__.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/importlib/__pycache__/__init__.cpython-313.pyc'
import 'importlib' # <_frozen_importlib_external.SourceFileLoader object at 0x10cba8f60>
# /Users/anthonyshaw/projects/cpython/Lib/importlib/__pycache__/machinery.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/importlib/machinery.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/importlib/__pycache__/machinery.cpython-313.pyc'
import 'importlib.machinery' # <_frozen_importlib_external.SourceFileLoader object at 0x10cba9fe0>
# /Users/anthonyshaw/projects/cpython/Lib/importlib/__pycache__/util.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/importlib/util.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/importlib/__pycache__/util.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/importlib/__pycache__/_abc.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/importlib/_abc.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/importlib/__pycache__/_abc.cpython-313.pyc'
import 'importlib._abc' # <_frozen_importlib_external.SourceFileLoader object at 0x10cbabb40>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/types.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/types.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/types.cpython-313.pyc'
import 'types' # <_frozen_importlib_external.SourceFileLoader object at 0x10cbb4180>
import 'importlib.util' # <_frozen_importlib_external.SourceFileLoader object at 0x10cbaa580>
import 'runpy' # <_frozen_importlib_external.SourceFileLoader object at 0x10cb9aee0>
# /usr/local/lib/python3.13/site-packages/pyperf/__pycache__/__init__.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/pyperf/__init__.py
# code object from '/usr/local/lib/python3.13/site-packages/pyperf/__pycache__/__init__.cpython-313.pyc'
# /usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_utils.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/pyperf/_utils.py
# code object from '/usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_utils.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/contextlib.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/contextlib.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/contextlib.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/collections/__pycache__/__init__.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/collections/__init__.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/collections/__pycache__/__init__.cpython-313.pyc'
import 'itertools' # <class '_frozen_importlib.BuiltinImporter'>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/keyword.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/keyword.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/keyword.cpython-313.pyc'
import 'keyword' # <_frozen_importlib_external.SourceFileLoader object at 0x10cc1f8a0>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/operator.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/operator.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/operator.cpython-313.pyc'
import '_operator' # <class '_frozen_importlib.BuiltinImporter'>
import 'operator' # <_frozen_importlib_external.SourceFileLoader object at 0x10cc28900>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/reprlib.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/reprlib.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/reprlib.cpython-313.pyc'
import 'reprlib' # <_frozen_importlib_external.SourceFileLoader object at 0x10cc29d40>
import '_collections' # <class '_frozen_importlib.BuiltinImporter'>
import 'collections' # <_frozen_importlib_external.SourceFileLoader object at 0x10cbcf8a0>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/functools.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/functools.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/functools.cpython-313.pyc'
import '_functools' # <class '_frozen_importlib.BuiltinImporter'>
import 'functools' # <_frozen_importlib_external.SourceFileLoader object at 0x10cc4cd80>
import 'contextlib' # <_frozen_importlib_external.SourceFileLoader object at 0x10cbcba20>
# extension module 'math' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/math.cpython-313td-darwin.so'
# extension module 'math' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/math.cpython-313td-darwin.so'
import 'math' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10cbcc7e0>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/statistics.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/statistics.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/statistics.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/numbers.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/numbers.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/numbers.cpython-313.pyc'
import 'numbers' # <_frozen_importlib_external.SourceFileLoader object at 0x10cc76100>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/random.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/random.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/random.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/warnings.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/warnings.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/warnings.cpython-313.pyc'
import 'warnings' # <_frozen_importlib_external.SourceFileLoader object at 0x10ccd9b00>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/bisect.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/bisect.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/bisect.cpython-313.pyc'
# extension module '_bisect' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_bisect.cpython-313td-darwin.so'
# extension module '_bisect' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_bisect.cpython-313td-darwin.so'
import '_bisect' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10ccece40>
import 'bisect' # <_frozen_importlib_external.SourceFileLoader object at 0x10ccdb4e0>
# extension module '_random' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_random.cpython-313td-darwin.so'
# extension module '_random' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_random.cpython-313td-darwin.so'
import '_random' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10ccecae0>
# extension module '_sha2' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_sha2.cpython-313td-darwin.so'
# extension module '_sha2' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_sha2.cpython-313td-darwin.so'
import '_sha2' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10cced260>
import 'random' # <_frozen_importlib_external.SourceFileLoader object at 0x10cc77a80>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/fractions.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/fractions.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/fractions.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/decimal.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/decimal.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/decimal.cpython-313.pyc'
# extension module '_decimal' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_decimal.cpython-313td-darwin.so'
# /Users/anthonyshaw/projects/cpython/Lib/collections/__pycache__/abc.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/collections/abc.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/collections/__pycache__/abc.cpython-313.pyc'
import 'collections.abc' # <_frozen_importlib_external.SourceFileLoader object at 0x10cd0d620>
# extension module '_decimal' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_decimal.cpython-313td-darwin.so'
import '_decimal' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10ccfe460>
import 'decimal' # <_frozen_importlib_external.SourceFileLoader object at 0x10ccfdce0>
# /Users/anthonyshaw/projects/cpython/Lib/re/__pycache__/__init__.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/re/__init__.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/re/__pycache__/__init__.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/enum.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/enum.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/enum.cpython-313.pyc'
import 'enum' # <_frozen_importlib_external.SourceFileLoader object at 0x10cd1cc60>
# /Users/anthonyshaw/projects/cpython/Lib/re/__pycache__/_compiler.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/re/_compiler.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/re/__pycache__/_compiler.cpython-313.pyc'
import '_sre' # <class '_frozen_importlib.BuiltinImporter'>
# /Users/anthonyshaw/projects/cpython/Lib/re/__pycache__/_parser.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/re/_parser.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/re/__pycache__/_parser.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/re/__pycache__/_constants.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/re/_constants.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/re/__pycache__/_constants.cpython-313.pyc'
import 're._constants' # <_frozen_importlib_external.SourceFileLoader object at 0x10cd64780>
import 're._parser' # <_frozen_importlib_external.SourceFileLoader object at 0x10cd582a0>
# /Users/anthonyshaw/projects/cpython/Lib/re/__pycache__/_casefix.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/re/_casefix.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/re/__pycache__/_casefix.cpython-313.pyc'
import 're._casefix' # <_frozen_importlib_external.SourceFileLoader object at 0x10cd65860>
import 're._compiler' # <_frozen_importlib_external.SourceFileLoader object at 0x10cd3bb40>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/copyreg.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/copyreg.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/copyreg.cpython-313.pyc'
import 'copyreg' # <_frozen_importlib_external.SourceFileLoader object at 0x10cd679c0>
import 're' # <_frozen_importlib_external.SourceFileLoader object at 0x10ccfe160>
import 'fractions' # <_frozen_importlib_external.SourceFileLoader object at 0x10ccedb00>
# extension module '_statistics' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_statistics.cpython-313td-darwin.so'
# extension module '_statistics' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_statistics.cpython-313td-darwin.so'
import '_statistics' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10cd90de0>
import 'statistics' # <_frozen_importlib_external.SourceFileLoader object at 0x10cc5d860>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/shlex.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/shlex.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/shlex.cpython-313.pyc'
import 'shlex' # <_frozen_importlib_external.SourceFileLoader object at 0x10cc4db60>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/shutil.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/shutil.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/shutil.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/fnmatch.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/fnmatch.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/fnmatch.cpython-313.pyc'
import 'fnmatch' # <_frozen_importlib_external.SourceFileLoader object at 0x10cd9fd20>
import 'errno' # <class '_frozen_importlib.BuiltinImporter'>
# extension module 'zlib' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/zlib.cpython-313td-darwin.so'
# extension module 'zlib' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/zlib.cpython-313td-darwin.so'
import 'zlib' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10cdb3360>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/bz2.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/bz2.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/bz2.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/_compression.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/_compression.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/_compression.cpython-313.pyc'
import '_compression' # <_frozen_importlib_external.SourceFileLoader object at 0x10cdb5da0>
# extension module '_bz2' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_bz2.cpython-313td-darwin.so'
# extension module '_bz2' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_bz2.cpython-313td-darwin.so'
import '_bz2' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10cdb6b80>
import 'bz2' # <_frozen_importlib_external.SourceFileLoader object at 0x10cdb43c0>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/lzma.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/lzma.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/lzma.cpython-313.pyc'
# extension module '_lzma' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_lzma.cpython-313td-darwin.so'
# extension module '_lzma' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_lzma.cpython-313td-darwin.so'
import '_lzma' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10cf24cc0>
import 'lzma' # <_frozen_importlib_external.SourceFileLoader object at 0x10cdb7120>
import 'shutil' # <_frozen_importlib_external.SourceFileLoader object at 0x10cd92220>
import 'pyperf._utils' # <_frozen_importlib_external.SourceFileLoader object at 0x10cbb7c00>
# /usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_metadata.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/pyperf/_metadata.py
# code object from '/usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_metadata.cpython-313.pyc'
# /usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_formatter.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/pyperf/_formatter.py
# code object from '/usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_formatter.cpython-313.pyc'
import 'pyperf._formatter' # <_frozen_importlib_external.SourceFileLoader object at 0x10cf26fa0>
import 'pyperf._metadata' # <_frozen_importlib_external.SourceFileLoader object at 0x10cf24a80>
# /usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_bench.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/pyperf/_bench.py
# code object from '/usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_bench.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/datetime.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/datetime.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/datetime.cpython-313.pyc'
# extension module '_datetime' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_datetime.cpython-313td-darwin.so'
# extension module '_datetime' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_datetime.cpython-313td-darwin.so'
import '_datetime' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10cf4b180>
import 'datetime' # <_frozen_importlib_external.SourceFileLoader object at 0x10cf4aa60>
import 'pyperf._bench' # <_frozen_importlib_external.SourceFileLoader object at 0x10cf390e0>
# /usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_runner.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/pyperf/_runner.py
# code object from '/usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_runner.cpython-313.pyc'
# /usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_cli.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/pyperf/_cli.py
# code object from '/usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_cli.cpython-313.pyc'
import 'pyperf._cli' # <_frozen_importlib_external.SourceFileLoader object at 0x10cf75500>
# /usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_cpu_utils.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/pyperf/_cpu_utils.py
# code object from '/usr/local/lib/python3.13/site-packages/pyperf/__pycache__/_cpu_utils.cpython-313.pyc'
# /usr/local/lib/python3.13/site-packages/psutil/__pycache__/__init__.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/psutil/__init__.py
# code object from '/usr/local/lib/python3.13/site-packages/psutil/__pycache__/__init__.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/__future__.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/__future__.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/__future__.cpython-313.pyc'
import '__future__' # <_frozen_importlib_external.SourceFileLoader object at 0x10cfb38a0>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/signal.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/signal.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/signal.cpython-313.pyc'
import 'signal' # <_frozen_importlib_external.SourceFileLoader object at 0x10cfb4780>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/subprocess.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/subprocess.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/subprocess.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/locale.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/locale.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/locale.cpython-313.pyc'
import '_locale' # <class '_frozen_importlib.BuiltinImporter'>
import 'locale' # <_frozen_importlib_external.SourceFileLoader object at 0x10cfd6700>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/threading.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/threading.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/threading.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/_weakrefset.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/_weakrefset.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/_weakrefset.cpython-313.pyc'
import '_weakrefset' # <_frozen_importlib_external.SourceFileLoader object at 0x10d0f1440>
import 'threading' # <_frozen_importlib_external.SourceFileLoader object at 0x10cfe6e80>
# extension module 'fcntl' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/fcntl.cpython-313td-darwin.so'
# extension module 'fcntl' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/fcntl.cpython-313td-darwin.so'
import 'fcntl' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10d0f3720>
# extension module '_posixsubprocess' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_posixsubprocess.cpython-313td-darwin.so'
# extension module '_posixsubprocess' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_posixsubprocess.cpython-313td-darwin.so'
import '_posixsubprocess' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10d104360>
# extension module 'select' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/select.cpython-313td-darwin.so'
# extension module 'select' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/select.cpython-313td-darwin.so'
import 'select' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10d104600>
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/selectors.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/selectors.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/selectors.cpython-313.pyc'
import 'selectors' # <_frozen_importlib_external.SourceFileLoader object at 0x10d105b00>
import 'subprocess' # <_frozen_importlib_external.SourceFileLoader object at 0x10cfb53e0>
import 'pwd' # <class '_frozen_importlib.BuiltinImporter'>
# /usr/local/lib/python3.13/site-packages/psutil/__pycache__/_common.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/psutil/_common.py
# code object from '/usr/local/lib/python3.13/site-packages/psutil/__pycache__/_common.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/socket.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/socket.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/socket.cpython-313.pyc'
# extension module '_socket' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_socket.cpython-313td-darwin.so'
# extension module '_socket' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/_socket.cpython-313td-darwin.so'
import '_socket' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10d1411a0>
# extension module 'array' loaded from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/array.cpython-313td-darwin.so'
# extension module 'array' executed from '/Users/anthonyshaw/projects/cpython/build/lib.macosx-13.6-x86_64-3.13-pydebug/array.cpython-313td-darwin.so'
import 'array' # <_frozen_importlib_external.ExtensionFileLoader object at 0x10d14b240>
import 'socket' # <_frozen_importlib_external.SourceFileLoader object at 0x10d128540>
import 'psutil._common' # <_frozen_importlib_external.SourceFileLoader object at 0x10d119b00>
# /usr/local/lib/python3.13/site-packages/psutil/__pycache__/_compat.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/psutil/_compat.py
# code object from '/usr/local/lib/python3.13/site-packages/psutil/__pycache__/_compat.cpython-313.pyc'
import 'psutil._compat' # <_frozen_importlib_external.SourceFileLoader object at 0x10d118ea0>
# /usr/local/lib/python3.13/site-packages/psutil/__pycache__/_psosx.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/psutil/_psosx.py
# code object from '/usr/local/lib/python3.13/site-packages/psutil/__pycache__/_psosx.cpython-313.pyc'
# /usr/local/lib/python3.13/site-packages/psutil/__pycache__/_psposix.cpython-313.pyc matches /usr/local/lib/python3.13/site-packages/psutil/_psposix.py
# code object from '/usr/local/lib/python3.13/site-packages/psutil/__pycache__/_psposix.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/__pycache__/glob.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/glob.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/__pycache__/glob.cpython-313.pyc'
# /Users/anthonyshaw/projects/cpython/Lib/encodings/__pycache__/latin_1.cpython-313.pyc matches /Users/anthonyshaw/projects/cpython/Lib/encodings/latin_1.py
# code object from '/Users/anthonyshaw/projects/cpython/Lib/encodings/__pycache__/latin_1.cpython-313.pyc'
import 'encodings.latin_1' # <_frozen_importlib_external.SourceFileLoader object at 0x10d189b60>
import 'glob' # <_frozen_importlib_external.SourceFileLoader object at 0x10d183780>
zsh: segmentation fault  ./python.exe -v -m pyperf

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Output from running 'python -VV' on the command line:

Python 3.13.0a1+ (heads/main:97c4c06d0d, Nov 9 2023, 13:41:46) [Clang 14.0.3 (clang-1403.0.22.14.1)]

@tonybaloney tonybaloney added the type-crash A hard crash of the interpreter, possibly with a core dump label Nov 9, 2023
@tonybaloney tonybaloney changed the title Segmentation fault when running pyperf module Segmentation fault when running pyperf module from main with --disable-gil Nov 9, 2023
@tonybaloney
Copy link
Contributor Author

@colesbury do you want people to start submitting these reports yet or wait until things are a bit further along?

@corona10
Copy link
Member

corona10 commented Nov 9, 2023

@mdboom handled this issue before, it's related to psutil, IIRC

@corona10
Copy link
Member

corona10 commented Nov 9, 2023

See also: #110764 (comment)

@colesbury
Copy link
Contributor

@tonybaloney, Yes I appreciate the bug reports. I'm generally trying to keep the --disable-gil build in a working state, but there are a few known issues:

  1. The pip package needs to be updated (see gh-110481: Implement biased reference counting #110764 (comment) as @corona10 pointed out). This leads to failing to build C API extensions on most platforms and possibly also installing incompatible stable ABI extensions
  2. Windows builds extensions incorrectly for --disable-gil builds (i.e., crash at runtime) (see Py_GIL_DISABLED not defined in "free-threaded" Windows C-API extensions  #111650)

So, extensions aren't currently in a good state.

@colesbury
Copy link
Contributor

This particular issue looks like pip is installing an incompatible extension that uses the stable ABI. That was fixed in packaging (see pypa/packaging#727), but still needs to be released, pulled into pip, etc.

@colesbury colesbury changed the title Segmentation fault when running pyperf module from main with --disable-gil --disable-gil builds install incompatible stable ABI extensions Nov 9, 2023
@tonybaloney
Copy link
Contributor Author

@tonybaloney, Yes I appreciate the bug reports. I'm generally trying to keep the --disable-gil build in a working state, but there are a few known issues:

  1. The pip package needs to be updated (see gh-110481: Implement biased reference counting #110764 (comment) as @corona10 pointed out). This leads to failing to build C API extensions on most platforms and possibly also installing incompatible stable ABI extensions
  2. Windows builds extensions incorrectly for --disable-gil builds (i.e., crash at runtime) (see Py_NOGIL not defined in "free-threaded" Windows C-API extensions  #111650)

So, extensions aren't currently in a good state.

gotcha, for 1) I've submitted a similar request to cibuildwheel

@colesbury
Copy link
Contributor

The pip and packaging releases happened a while ago, so I'm going to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-free-threading type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

4 participants