[issue30765] PyThread_acquire_lock can block even when asked not ot

Antoine Pitrou report at bugs.python.org
Mon Jun 26 08:27:17 EDT 2017


New submission from Antoine Pitrou:

Discovered in issue30703.  When POSIX semaphores are not used for Python locks, pthread_mutex_lock() is called for acquiring a lock even when asked not to block.  This can be disastrous when called from a signal handler.

----------
components: Interpreter Core
messages: 296886
nosy: haypo, ned.deily, pitrou, ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: PyThread_acquire_lock can block even when asked not ot
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30765>
_______________________________________


More information about the Python-bugs-list mailing list