RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2003758 - threading wait(timeout) doesn't return after timeout if system clock is set backward
Summary: threading wait(timeout) doesn't return after timeout if system clock is set b...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python3
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.6
Assignee: Charalampos Stratakis
QA Contact: Lukáš Zachar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-13 15:37 UTC by Lukáš Zachar
Modified: 2022-06-09 05:51 UTC (History)
4 users (show)

Fixed In Version: python3-3.6.8-44.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 14:55:18 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-97014 0 None None None 2021-09-13 15:37:38 UTC
Red Hat Product Errata RHSA-2022:1986 0 None None None 2022-05-10 14:55:27 UTC

Description Lukáš Zachar 2021-09-13 15:37:06 UTC
Description of problem:

threading.Event().wait() is affected when system clock changes. 
This was fixed for python2 in bug 1368076 but change didn't reach python3


Version-Release number of selected component (if applicable):
all python3.x available on RHEL-8 (3.6, 3.8 and 3.9)

How reproducible:
always

Steps to Reproduce:
1. Call 'threading.Event().wait(5)'
2. Move time backwards 'date -s "-5 minutes"

Actual results:
Wait doesn't return after 5 seconds

Expected results:


Additional info:
Upstream issue https://bugs.python.org/issue41710

Comment 1 Victor Stinner 2021-10-06 11:59:40 UTC
threading.Event is implemented with threading.Condition. Python 3.8 can now uses a monotonic clock for threading.Condition: pthread_condattr_setclock(CLOCK_MONOTONIC).

See: https://bugs.python.org/issue12822


> Upstream issue https://bugs.python.org/issue41710

This issue is about threading.Lock. Python 3.11 can now use a monotonic clock for threading.Lock: sem_clockwait(lock, CLOCK_MONOTONIC, timeout). It requires glibc 2.30 or newer.

I backported the change to Python 3.9 and 3.10 branches upstream.

Comment 10 errata-xmlrpc 2022-05-10 14:55:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: python3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1986

Comment 11 Victor Stinner 2022-05-17 16:35:54 UTC
I'm happy to see python3 fixed in RHEL8 :-) Thanks Charalampos and Lukáš!


Note You need to log in before you can comment on or make changes to this bug.