Message237605
I'm afraid I don't have real-world code I can confirm is fixed, since I reported this on behalf of someone on irc in #python.
I think I'd prefer the Py_FatalError version of the patch. It's definitely possible to see writes to stdout/stderr at this time. If I read the first version right, it'll succeed the ENTER_BUFFERED without actually grabbing the lock, which seems problematic. But failing ENTER_BUFFERED is probably also more problematic, as it will probably lead to another exception that Python'll try to write to stderr, which fails the same way... If stdout/stderr are in a broken state during shutdown, Python is probably better off calling Py_FatalError rather than intermittently discarding messages. |
|
Date |
User |
Action |
Args |
2015-03-09 08:47:36 | marienz | set | recipients:
+ marienz, tim.peters, pitrou, neologix |
2015-03-09 08:47:36 | marienz | set | messageid: <1425890856.06.0.682486398419.issue23309@psf.upfronthosting.co.za> |
2015-03-09 08:47:36 | marienz | link | issue23309 messages |
2015-03-09 08:47:35 | marienz | create | |
|