Package: dovecot-core
Version: 1:2.4.1+dfsg1-6
Severity: important
Dear Maintainer,
* What led up to the situation?
Upgrade from 2.3.21.1+dfsg1-1+b2 to 1:2.4.1+dfsg1-6
* What was the outcome of this action?
Logs are flooded with messages "Warning: Time moved forward"
Dovecot version:
1:2.4.1+dfsg1-6 (Architecture: i386)
Operating system:
Linux lar 6.13.7-64+ #1 SMP PREEMPT Fri Mar 21 08:33:47 MEZ 2025 x86_64
GNU/Linux
OS Description: Debian GNU/Linux 13 (trixie)
Problem Description:
The function io_loop_get_wait_time in ioloop.c contains the line:
ioloop->next_max_time.tv_sec = (1ULL << (TIME_T_MAX_BITS-1)) - 1;
On 32-bit systems TIME_T_MAX_BITS is 31 such that the result of this
calculation is 1073741823. Far from the intended "infinity" and even before
"now". This leads to problems in the function io_loop_handle_timeouts_real:
the calculation of the time difference between now and next_max_time is then
something like -693628953 seconds which confuses dovecot and floods the logs
with these warnings:
Jan 02 17:43:43 lmtp(38364): Warning: Time moved forward 693630400.301863
seconds
Jan 02 17:43:43 lmtp(38364): Warning: Time moved forward 693630400.304144
seconds
Jan 02 17:45:43 lmtp(38364): Warning: Time moved forward 693630520.416053
seconds
Thanks for your consideration,
Andy
PS: I also tried to report this to https://dovecot.org/tmp/bug.html but got no
response yet.
-- Package-specific info:
-- System Information:
Debian Release: 13.2
APT prefers stable
APT policy: (550, 'stable'), (500, 'stable-updates'), (500,
'stable-security'), (500, 'testing'), (250, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 6.13.7-64+ (SMP w/128 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15) (ignored:
LC_ALL set to de_DE@euro), LANGUAGE=de_DE@euro
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages dovecot-core depends on:
ii adduser 3.152
ii dovecot-sieve 1:2.4.1+dfsg1-6
ii init-system-helpers 1.69~deb13u1
ii libapparmor1 4.1.0-1
ii libbz2-1.0 1.0.8-6
ii libc6 2.41-12bfw1
ii libcap2 1:2.75-10+b1
ii libcrypt1 1:4.4.38-1
ii libexttextcat-2.0-0 3.4.7-1+b1
ii libicu76 76.1-4
ii liblua5.4-0 5.4.7-1+b2
ii liblz4-1 1.10.0-4
ii libpam-runtime 1.7.0-5
ii libpam0g 1.7.0-5
ii libsodium23 1.0.18-1+b2
ii libssl3t64 3.5.1-1
ii libstemmer0d 2.2.0-4+b2
ii libsystemd0 257.8-1~deb13u1
ii libtirpc3t64 1.3.6+ds-1
ii libunwind8 1.8.1-0.1
ii libzstd1 1.5.7+dfsg-1
ii openssl 3.5.1-1
ii ssl-cert 1.1.3
ii ucf 3.0052
ii zlib1g 1:1.3.dfsg+really1.3.1-1+b1
dovecot-core recommends no packages.
Versions of packages dovecot-core suggests:
pn dovecot-flatcurve <none>
pn dovecot-gssapi <none>
ii dovecot-imapd 1:2.4.1+dfsg1-6
pn dovecot-ldap <none>
ii dovecot-lmtpd 1:2.4.1+dfsg1-6
pn dovecot-managesieved <none>
pn dovecot-mysql <none>
pn dovecot-pgsql <none>
pn dovecot-pop3d <none>
pn dovecot-solr <none>
pn dovecot-sqlite <none>
pn dovecot-submissiond <none>
ii ntp 1:4.2.8p15+dfsg-2~1.2.3+dfsg1-3
Versions of packages dovecot-core is related to:
ii dovecot-core [dovecot-common] 1:2.4.1+dfsg1-6
pn dovecot-dev <none>
pn dovecot-gssapi <none>
ii dovecot-imapd 1:2.4.1+dfsg1-6
pn dovecot-ldap <none>
ii dovecot-lmtpd 1:2.4.1+dfsg1-6
pn dovecot-managesieved <none>
pn dovecot-mysql <none>
pn dovecot-pgsql <none>
pn dovecot-pop3d <none>
ii dovecot-sieve 1:2.4.1+dfsg1-6
pn dovecot-sqlite <none>
-- no debconf information