[Bug time/30200] time sometimes appears to go backwards
bruno at clisp dot org
sourceware-bugzilla@sourceware.org
Tue Mar 21 15:29:51 GMT 2023
https://sourceware.org/bugzilla/show_bug.cgi?id=30200
--- Comment #13 from Bruno Haible <bruno at clisp dot org> ---
(In reply to Adhemerval Zanella from comment #12)
> So this problem *always* existed
>From "This problem always existed" you cannot imply "This problem never caused
trouble, otherwise it would have been reported".
In https://sourceware.org/pipermail/libc-alpha/2023-March/146219.html I
explain:
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%.
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list