[issue35969] Interpreter crashes with "can't initialize init_sys_streams" when abc fails to import
Karthikeyan Singaravelan
report at bugs.python.org
Mon Feb 11 13:35:43 EST 2019
Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:
I hope there are certain modules that CPython interpreter expects to load properly. There were some cases in the past where encodings module caused the interpreter to crash. A similar scenario.
➜ cpython git:(master) echo "raise Exception('a')" > encodings.py
➜ cpython git:(master) ✗ PYTHONPATH=: ./python.exe
Fatal Python error: initfsencoding: failed to get the Python codec of the filesystem encoding
Traceback (most recent call last):
File "/Users/karthikeyansingaravelan/stuff/python/cpython/encodings.py", line 1, in <module>
Exception: a
[1] 29005 abort PYTHONPATH=: ./python.exe
----------
nosy: +xtreak
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35969>
_______________________________________
More information about the Python-bugs-list
mailing list