[Y2038] Question about porting y2038-tests to glibc

Carlos O'Donell carlos@redhat.com
Fri Oct 30 17:57:04 GMT 2020


On 10/30/20 1:29 PM, Joseph Myers wrote:
> On Fri, 30 Oct 2020, Carlos O'Donell via Libc-alpha wrote:
> 
>> I would accept QEMU usage in build-many-glibcs.py, and I also agree
>> that such checks must have a clean baseline.
> 
> Note that anything involving QEMU user emulation for these time tests 
> probably needs QEMU work to add an option to use a different time for the 
> emulated program, unless such an option already exists.  (For that matter, 
> QEMU system emulation would also need such an option.)
 
The option for '-rtc [base=utc|localtime|datetime][,clock=host|rt|vm][,driftfix=none|slew]'
exists today. It could be tested to verify it works in user or system modes
and as such represents a way forward. So '-rtc base=20380120,clock=rt' should
put you past the y2038 transition, and '-rtc base=20380119,clock=rt' should
put you before the y2038.

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list