From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 209333858C66; Tue, 21 Mar 2023 16:02:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 209333858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679414557; bh=mqlZbo4uPkaPkY45oXJ2KKUeFMWRc+8ZsPGjp/9/0yg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CmYLrEl5YTl4edxPn3OOxoIrIw8md+a6m8+Y1TtzQfxQwWaHgr3JjjnQ8kno+7E2B VUKlx0uD3N1ARIp9ReBzObp7sqjxVf77IwKoAZjbrK0bQSP3xd+O3Z9OTZCev990Tw VjYqpDOv7vPGB3IphLRx653n5P8OVIzpm4lCTXOA= From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug time/30200] time sometimes appears to go backwards Date: Tue, 21 Mar 2023 16:02:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: time X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: adhemerval.zanella at linaro dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30200 --- Comment #14 from Adhemerval Zanella --- (In reply to Bruno Haible from comment #13) > (In reply to Adhemerval Zanella from comment #12) > > So this problem *always* existed >=20 > From "This problem always existed" you cannot imply "This problem never > caused trouble, otherwise it would have been reported". I will quote myself "I completely agree with you [Paul] that this is problematic" to make it clear I agree this is a problem. I even sent a fix to make it u= se the same clock for all time interface that does not specify the clock id [1= ], although I ended up retiring it because Florian explicit say he would rever= t it on RH distros because of performance implications.=20 [1] https://sourceware.org/pipermail/libc-alpha/2023-March/146088.html >=20 > In https://sourceware.org/pipermail/libc-alpha/2023-March/146219.html I > explain: >=20 > On a typical system, there are > - hundreds of programs that call gettimeofday() or timespec_get(), > - hundreds of programs that call time(). > Each time a program calls gettimeofday() or timespec_get(), and then, > within 1 to 3 milliseconds, a program (the same or a different one) > calls time(), there is the potential for trouble because the time > appears to go backwards. This trouble can occur with probability > between 0.1% and 0.3%. >=20 > This is the kind of trouble that does occur, but that people don't report > because > - it occurs only 1 in 300 to 1000 times, > - it is nearly impossible to track down to glibc, since it will appear as= an > interoperation bug between two different programs in the first place. --=20 You are receiving this mail because: You are on the CC list for the bug.=