Skip to content
Tcl Source Code Artifact [d66b54e3e3]
Login

Artifact [d66b54e3e3]

Artifact d66b54e3e391b020223bcbf708abeb16b3039dc34c09047be81af2b71f5b073a:

Ticket change [d66b54e3e3] - New ticket [3e8074aea74539cf|3e8074aea7] <i>[interp limit time -seconds] has a y2k38 problem</i>. by max on 2023-01-12 17:07:02.
D 2023-01-12T17:07:02.218
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment ```\r\n%\sset\si\s[interp\screate]\r\ninterp0\r\n%\s$i\slimit\stime\s-seconds\s[expr\s{2**31-1}]\r\n%\s$i\slimit\stime\s-seconds\s[expr\s{2**31}]\r\nseconds\smust\sbe\sat\sleast\s0\r\n%\s$i\slimit\stime\s-seconds\s[expr\s{2**32}]\r\ninteger\svalue\stoo\slarge\sto\srepresent\sas\snon-long\sinteger\r\n```\r\n\r\nThis\sbreaks\sseveral\sof\sthe\sinterp-34.*\stests\sthat\suse\s`interp\slimit\stime\s-seconds`\swhen\srun\son\sa\ssystem\swhose\stime\sis\spast\s`clock\sformat\s[expr\s{2**31-1}]`.\r\n\r\nA\squick\slook\sat\sthe\scode\sin\stclInterp.c\sshowed\sthat\s`ChildTimeLimitCmd()`\sparses\sthe\sargument\sto\sthe\s`-seconds`\sswitch\susing\s`TclGetIntFromObj()`\swhere\s`TclGetLongFromObj()`\sor\seven\s`TclGetWideIntFromObj()`\s(like\s`[clock\sformat]`)\sseems\smore\sappropriate\sto\smatch\sup\swith\sthe\srest\sof\stime\shandling\sin\sTcl,\swhich\sdoesn't\shave\sa\sy2k38\sproblem\sin\sgeneral.
J foundin 8.6.13
J is_private 0
J login max
J priority 5\sMedium
J private_contact d0d0130695c671d8c2d3cab5f9bc3575b9d369e4
J resolution None
J severity Minor
J status Open
J submitter max
J subsystem 20.\s[interp]
J title [interp\slimit\stime\s-seconds]\shas\sa\sy2k38\sproblem
J type Bug
K 3e8074aea74539cfd981ad6912c52c1488fc89c4
U max
Z 5fde04d4851cc93f48b8ebcbb08ee04a