Artifacts Associated With Ticket d5acb07b64119b04
Ticket change [5e6dd5bdbd] (rid 255097) by emiliano on 2026-08-02 16:43:24:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- 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
- foundin initialized to: "9.1b1"
- is_private initialized to: "0"
- login: "emiliano"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "emiliano"
- subsystem initialized to: "06. Time Measurement"
- title initialized to: "TIP 752 broke [clock seconds] in 32bit linux"
- type initialized to: "Bug"
Add attachment "clockseconds.diff" [c08532f2d1] (rid 255099) by emiliano on 2026-08-02 16:44:35.
Ticket change [44e0b1d461] (rid 255100) by emiliano on 2026-08-02 16:45:08:
- login: "emiliano"
- mimetype: "text/plain"
- priority changed to: "7 High"
- severity changed to: "Severe"
Ticket change [39283cb9d5] (rid 255101) by jan.nijtmans on 2026-08-02 19:52:24:
- icomment:
+1 Just go ahead!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [cee65c8a3a] (rid 255454) by jan.nijtmans on 2026-08-10 10:03:52:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461262.9193521761"
- closer changed to: "jan.nijtmans"
- 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!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"