STINNER Victor <vstin...@python.org> added the comment:
More "real world" example using cinder which imports 220 modules (ctypes is used to simulate a crash): --------------- $ ./python -m venv env $ env/bin/python -m pip install wheel $ env/bin/python -m pip install cinder $ env/bin/python -X dev -c 'import cinder, ctypes, sys; print(f"{len(sys.modules)=}"); print(); ctypes.string_at(0)' (...) len(sys.modules)=220 Fatal Python error: Segmentation fault Current thread 0x00007fc4a88e0740 (most recent call first): File "/home/vstinner/python/master/Lib/ctypes/__init__.py", line 517 in string_at File "<string>", line 1 in <module> Extension modules: greenlet._greenlet, __original_module__thread, __original_module_select, __original_module_time, _cffi_backend (total: 5) Erreur de segmentation (core dumped) --------------- cinder only uses 2 third party extension modules (on a total of 220 modules): greenlet and cffi. Note: __original_xxx modules are aliases of stdlib modules created by eventlet monkey patching. So if cinder does crash, I suggest to look at Python, but *also* look at these 2 extensions ;-) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42923> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com