Skip to content
Tcl Source Code History Of Ticket d5acb07b64119b04
Login

History Of Ticket d5acb07b64119b04

Artifacts Associated With Ticket d5acb07b64119b04

  1. Ticket change [5e6dd5bdbd] (rid 255097) by emiliano on 2026-08-02 16:43:24:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      After merge of TIP 752, running 32bit linux
      
      
      ```
      $ uname -m
      i686
      $ tclsh9.1 
      % clock seconds
      203
      ```
      
      The problem is an int overflow in Tcl_GetDayTime(). Attached patch fixes the issue and also shut ups a compiler warning
      
    5. foundin initialized to: "9.1b1"
    6. is_private initialized to: "0"
    7. login: "emiliano"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "emiliano"
    13. subsystem initialized to: "06. Time Measurement"
    14. title initialized to: "TIP 752 broke [clock seconds] in 32bit linux"
    15. type initialized to: "Bug"
  2. Add attachment "clockseconds.diff" [c08532f2d1] (rid 255099) by emiliano on 2026-08-02 16:44:35.

  3. Ticket change [44e0b1d461] (rid 255100) by emiliano on 2026-08-02 16:45:08:

    1. login: "emiliano"
    2. mimetype: "text/plain"
    3. priority changed to: "7 High"
    4. severity changed to: "Severe"
  4. Ticket change [39283cb9d5] (rid 255101) by jan.nijtmans on 2026-08-02 19:52:24:

    1. icomment:
      +1
      
      Just go ahead!
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  5. Ticket change [cee65c8a3a] (rid 255454) by jan.nijtmans on 2026-08-10 10:03:52:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461262.9193521761"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Fixed [d06307ab8097484d|here]
      
      
      However .... Tcl 9.x is supposed to be compiled with -D_TIME_BITS=64 (and -D_FILE_OFFSET_BITS=64), which makes time_t a 64-bit type. Then this 'bug' doesn't occur. Apparently, you are using an older (pre-5.1) linux kernel, which doesn't 64-bit time. This means that your Tcl build on linux is not Y2038-safe. It would be better to upgrade your environment somewhere in the next 12 years!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"