Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5c9ed9a0335fbdf8d52f8ae8cfc413c19376237fb376c75d7def91b48e1f5b00
Ticket: 1802895fffffffffffffffffffffffffffffffff
AfterDelay overflow
User & Date: serhiy.storchaka on 2026-10-19 18:00:22
Changes

  1. foundin changed to: "8.6.18, 9.0.5"
  2. icomment:
    Fixed on main by TIP 723 (too large delays give "time too far away"). Still present in 9.0 and 8.6: a blocking <tt>after 0x7fffffffffffffff</tt> returns at once on 64-bit systems (the millisecond arithmetic overflows), and where <tt>long</tt> is 32 bits any delay over about 11 years does. Proposed fix in branches [/timeline?r=after-overflow-9-0|after-overflow-9-0] and [/timeline?r=after-overflow-8-6|after-overflow-8-6]: both forms of <nowiki>[after]</nowiki> add the delay with a saturating <tt>TimeAddMs()</tt>. Tests timer-11.3 (fails without the fix on 9.0; its script returns at once on 8.6.18 too) and 11.4.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"