New submission from Antoine Pitrou <pit...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43406>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to