[New-bugs-announce] [issue43406] Possible race condition between signal catching and signal.signal

Antoine Pitrou report at bugs.python.org
Thu Mar 4 16:31:08 EST 2021


New submission from Antoine Pitrou <pitrou at free.fr>:

We can receive signals (at the C level, in trip_signal() in signalmodule.c) while signal.signal is being called to modify the corresponding handler.  Later when PyErr_CheckSignals() is called to handle the given signal, the handler may be a non-callable object and will raise a cryptic asynchronous exception.

----------
components: Interpreter Core, Library (Lib)
messages: 388131
nosy: pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: Possible race condition between signal catching and signal.signal
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

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


More information about the New-bugs-announce mailing list