Artifacts Associated With Ticket 1237907fffffffffffffffffffffffffffffffff
Ticket change [9c39c27b7b] (rid 111249) by patthoyts on 2005-07-14 00:24:40:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- comment initialized to:
[tcl::clock::Localtime -1] will crash tcl on Windows. The error seems to be in ThreadSafeLocalTime() as far as I can see. Systems with HAVE_LOCALTIME_R seem to be fine. Solaris 10 and Linux do not crash.
- foundin initialized to: "obsolete: 8.5a4"
- priority initialized to: "8"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "patthoyts"
- subsystem initialized to: "06. Time Measurement"
- title initialized to: "Windows crash in clock"
- type initialized to: "Bug"
Add attachment "clock.patch" [407d0694a5] (rid 121634) by patthoyts on 2005-07-14 07:47:17.
Ticket change [bbb102646e] (rid 129530) by patthoyts on 2005-07-14 07:47:17:
- icomment:
File Added - 141994: clock.patch Logged In: YES user_id=202636 Windows localtime() can return NULL if the provided time is < unix epoch. (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_CRT_localtime.asp) Attached one possible patch. We noticed that Solaris returns times in 1970 for -1 and -2 but seems to count downwards. Linux uses 1969.
- login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Ticket change [cf2a60f991] (rid 112922) by kennykb on 2005-07-16 05:33:22:
- closedate changed to: "2005-07-15T22:33:22"
- closer changed to: "kennykb"
- icomment:
Logged In: YES user_id=99768 Right you are. Also, we shouldn't have been in 'localtime' even in that case; Windows has provided us with tz conversion information, but we discarded it in favor of a tzdata file - that we subsequently discovered was missing. My changes fix that too.
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "kennykb"