-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARM32 Year 2038 issue #96460
ARM32 Year 2038 issue #96460
Comments
Tagging subscribers to this area: @dotnet/area-system-datetime Issue DetailsSystemNative_GetSystemTimeAsTicks suffers from the Y2038 issue. This is, I would guess, expected. Sample code: while (true) Build and then run the above on a 32bit ARM platform (in this case running Debian 11 armhf with Linux kernel 5.15.99) . My results during the rollover:
Opening this case for tracking purposes. At some point the powers in charge will need to sync up with Debian efforts, which are still a work in progress. Related Debian notes: https://wiki.debian.org/ReleaseGoals/64bit-time . I would guess that at some point .net would obsolete support for systems with 32bit time_t and require 64bit time_t.
|
The code could maybe check whether |
@janvorli fixed this issue for musl-libc in https://github.com/dotnet/runtime/pull/50105/files and other PRs. The assumption was that we are already using 64-bit time for glibc and musl-libc wasn't updated. runtime/eng/native/configurecompiler.cmake Lines 440 to 441 in fac60d0
|
@am11 Would you be interested in submitting a PR with this fix? |
Contributes to dotnet#96460
Contributes to dotnet#96460
https://github.com/dotnet/runtime/blob/f2a9ef8d392b72e6f039ec0b87f3eae4307c6cae/src/native/libs/System.Native/pal_datetime.c#L38C13-L38C13
SystemNative_GetSystemTimeAsTicks suffers from the Y2038 issue. This is, I would guess, expected.
Sample code:
Build and then run the above on a 32bit ARM platform (in this case running Debian 11 armhf with Linux kernel 5.15.99, using .net8 runtime) .
My results during the rollover:
Opening this case for tracking purposes. At some point the powers in charge will need to sync up with Debian efforts, which are still a work in progress. Related Debian notes: https://wiki.debian.org/ReleaseGoals/64bit-time .
I would guess that at some point .net would obsolete support for systems with 32bit time_t and require 64bit time_t.
The text was updated successfully, but these errors were encountered: