[issue35969] Interpreter crashes with "can't initialize init_sys_streams" when abc fails to import

Paul Ganssle report at bugs.python.org
Mon Feb 11 14:02:34 EST 2019


Paul Ganssle <p.ganssle at gmail.com> added the comment:

@Karthikeyan I would certainly consider this a duplicate of the encodings bug/behavior that you demonstrate. I don't see an existing bug on the tracker for it, though.

I think it's pretty clear that the interpreter needs to fail, but it seems to *crash* rather than exit gracefully with a non-zero return code, which I think is the main problem. I'll note that it *does* print some stuff out before it crashes, which makes me think that even though io and/or encodings hasn't loaded, you still are able to do the "print an error message" part of "print an error message and exit with non-zero error code".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35969>
_______________________________________


More information about the Python-bugs-list mailing list