New submission from Pablo Galindo Salgado <pablog...@gmail.com>:

This code crashes (reported by the one and only Matt Wozniski):

import sys
class MyStderr:
    def write(self, s):
        sys.stderr = None
sys.stderr = MyStderr()
1/0

[1]    34112 segmentation fault  ./python.exe lel.py

----------
components: Interpreter Core
messages: 389722
nosy: pablogsal, vstinner
priority: normal
severity: normal
status: open
title: Segmentation fault when overriding sys.stderr
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43660>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to