[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 2f01c562be913004e1d46fc02705c51b81638d67 by Pablo Galindo in branch '3.7': [3.7] bpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr (GH-25075). (GH-25085) https://github.com/python/cpython/commit/2f01c562be

[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ff4715a7332123713de9920e724bb6c412d8ccef by Miss Islington (bot) in branch '3.9': bpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr (GH-25075) (GH-25083) https://github.com/python/cpython/commit/ff4715a733

[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23833 pull_request: https://github.com/python/cpython/pull/25085 ___ Python tracker ___ ___

[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread miss-islington
miss-islington added the comment: New changeset ba7f8638f93b5d999b25d8556ca19bdc2e12f359 by Miss Islington (bot) in branch '3.8': bpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr (GH-25075) https://github.com/python/cpython/commit/ba7f8638f93b5d999b25d8556ca1

[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +23832 pull_request: https://github.com/python/cpython/pull/25084 ___ Python tracker ___ __

[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +23831 pull_request: https://github.com/python/cpython/pull/25083 ___ Python tracker _

[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 09b90a037d18f5d4acdf1b14082e57bda78e85d3 by Pablo Galindo in branch 'master': bpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr (GH-25075) https://github.com/python/cpython/commit/09b90a037d18f5d4acdf1b140

[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +23825 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25075 ___ Python tracker __

[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The problem is that https://github.com/python/cpython/blob/master/Python/pythonrun.c#L1074 doesn't take a strong reference to sys.stderr but code underneath can potentially release the GIL and remove the reference that keeps the object alive. ---

[issue43660] Segmentation fault when overriding sys.stderr

2021-03-29 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : 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: Inte