You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PyThread_acquire_lock can block even when asked not ot #74950
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2017-06-26.20:14:13.114>created_at=<Date2017-06-26.12:27:17.101>labels= ['interpreter-core', 'type-bug', '3.7']
title='PyThread_acquire_lock can block even when asked not ot'updated_at=<Date2017-06-26.20:14:13.114>user='https://github.com/pitrou'
Discovered in bpo-30703. 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.
New changeset 55ab604 by Antoine Pitrou in branch '3.6':
[3.6] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (bpo-2418) 55ab604
New changeset 85b34ed by Antoine Pitrou in branch '3.5':
[3.5] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (bpo-2419) 85b34ed
New changeset 8284883 by Antoine Pitrou in branch '2.7':
[2.7] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (bpo-2420) 8284883
Activity
pitrou commentedon Jun 26, 2017
Discovered in bpo-30703. 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.
pitrou commentedon Jun 26, 2017
New changeset f84ac42 by Antoine Pitrou in branch 'master':
bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (bpo-2403)
f84ac42
pitrou commentedon Jun 26, 2017
New changeset 55ab604 by Antoine Pitrou in branch '3.6':
[3.6] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (bpo-2418)
55ab604
pitrou commentedon Jun 26, 2017
New changeset 85b34ed by Antoine Pitrou in branch '3.5':
[3.5] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (bpo-2419)
85b34ed
pitrou commentedon Jun 26, 2017
New changeset 8284883 by Antoine Pitrou in branch '2.7':
[2.7] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (bpo-2420)
8284883
pitrou commentedon Jun 26, 2017
Travis-CI and the 3.x buildbots seem fine.