Author vstinner
Recipients corona10, vstinner
Date 2021-01-19.22:55:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611096901.74.0.847426663154.issue42923@roundup.psfhosted.org>
In-reply-to
Content
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 ;-)
History
Date User Action Args
2021-01-19 22:55:01vstinnersetrecipients: + vstinner, corona10
2021-01-19 22:55:01vstinnersetmessageid: <1611096901.74.0.847426663154.issue42923@roundup.psfhosted.org>
2021-01-19 22:55:01vstinnerlinkissue42923 messages
2021-01-19 22:55:01vstinnercreate