[issue40826] Segfaults when close file descriptor 0

2020-06-01 Thread STINNER Victor
STINNER Victor added the comment: The following change modified PyOS_InterruptOccurred() to require the hold the GIL: commit d83168854e19d0381fa57db25fca6c622917624f Author: Victor Stinner Date: Fri Mar 20 14:50:35 2020 +0100 bpo-40010: Optimize pending calls in multithreaded applicat

[issue40826] Segfaults when close file descriptor 0

2020-05-30 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19793 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20549 ___ Python tracker _

[issue40826] Segfaults when close file descriptor 0

2020-05-30 Thread Dong-hee Na
Dong-hee Na added the comment: FYI this change fix this issue. --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -1782,7 +1782,11 @@ PyOS_FiniInterrupts(void) int PyOS_InterruptOccurred(void) { -PyInterpreterState *interp = _PyInterpreterState_GET(); +PyThreadState *tstat

[issue40826] Segfaults when close file descriptor 0

2020-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Simpler reproducer: import os os.close(0) -- components: +Interpreter Core nosy: +serhiy.storchaka title: Segfaults on io.FileIO(0).name in 3.9 -> Segfaults when close file descriptor 0 ___ Python tracker