#1053873 cronie: Crond with high load after 19-01-2038

Package:
cronie
Source:
cronie
Description:
Process Scheduling Daemon
Submitter:
Tony de Goede
Date:
2024-03-22 14:45:03 UTC
Severity:
normal
Tags:
#1053873#5
Date:
2023-10-13 11:01:07 UTC
From:
To:
Dear Maintainer,

   When setting the time to 19 Jan 2038 3:14 GMT using "date 011903142038"
the crond gets high load.

   Inspection of the cronie code, the meanloop of cron is controlled by a
time value that becomes buggie after 0x7fffffff (19/01/2038)
   Probably cron_sleep is wrong. The actual sleep() is never called after
2038
   The time is used to calculate the delay value but when used as unsigned
the value becomes negative.
   it will continously run in the loop causing a high load of the cron
daemon.

#1053873#12
Date:
2023-10-20 15:01:16 UTC
From:
To:
Thank you for reporting this bug!

cron_sleep was recently updated to address a different issue, but it may
apply to your bug. Would you try testing cronie with the changes in this
commit [1] applied?

Also, this bug has been forwarded upstream if you would like to contact
the upstream maintainer directly about this issue.

[1]
https://github.com/cronie-crond/cronie/commit/78e634967d6886339be57854f0e11c6ab1fb73cd

Thank you,

#1053873#17
Date:
2023-10-27 14:24:43 UTC
From:
To:
I have not been able to reproduce this bug. It is already forwarded
upstream for further discussion.

#1053873#26
Date:
2023-12-22 14:50:09 UTC
From:
To:
Control: tags 1053873 = wontfix

This is the year 2038 problem for 32-bit architectures. Debian has
release goals for fixing or working around this issue for most 32-bit
architectures, but based on Debian's wiki, i386 will not be
transitioning time_t for 64-bit time [1].

[1] https://wiki.debian.org/ReleaseGoals/64bit-time

Best,