-
Notifications
You must be signed in to change notification settings - Fork 29.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
test-fs-utimes-y2K38 fails on 32-bit platforms with 64-bit time_t #45906
Comments
Libuv is probably also partially - if not wholly - to blame for using |
Not sure if it can be fixed without changes in libuv or without breaking dates before 1970-01-01 again. node -e 'fs.writeFileSync("/tmp/issue45906","");fs.utimesSync("/tmp/issue45906",2**31,2**31);' && stat /tmp/issue45906 return |
@LiviaMedeiros that command returns:
|
I have realized that this is actually passing on 32-bit Arm (ARMv7) and I couldn't figure out why, but I just did – it is because x86 defaults to I think for us (I'm trying to package Node 18 for a Linux distro) it makes sense to just change it to |
@awilfox (I figured it might be a |
Version
v18.12.1
Platform
Linux ember.foxkit.us 5.15.44-mc2-easy #1 SMP Wed Aug 17 20:37:04 UTC 2022 i686 GNU/Linux
Subsystem
fs
What steps will reproduce the bug?
make jstest
on a 32-bit computer with 64-bittime_t
.How often does it reproduce? Is there a required condition?
Always reproducible on any 32-bit computer with 64-bit
time_t
. This includes Linux musl libc, and glibc when_TIME_BITS=64
.What is the expected behavior?
Passing tests.
What do you see instead?
Additional information
This is passing on the 16 LTS branch. It seems like it may be fallout from #43714 but I'm not sure.
The text was updated successfully, but these errors were encountered: