Artifacts Associated With Ticket 3448512fffffffff
Ticket change [bc6d8f2ef4] (rid 101748) by tombert on 2011-12-02 18:19:27:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The command: clock scan "1958-01-01" fails with the error: time value too large/small to represent but only in my debug compilation. The release compilation returns a valid result. Environment: WinXP, Tcl 8.5.11, MinGW thx
- foundin initialized to: "obsolete: 8.5.11"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "tombert"
- subsystem initialized to: "16. Commands A-H"
- title initialized to:
clock scan "1958-01-01" fails only in debug compilation
- type initialized to: "Bug"
Ticket change [86ab865eee] (rid 131556) by ferrieux on 2011-12-03 01:45:19:
- icomment:
FWIW, I can't seem to repro on Linux, tip of core-8-5-branch.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [e34dba83d4] (rid 87773) by tombert on 2011-12-03 03:15:04:
- icomment:
In linux my debug compilation returns -378694800 seems to fail only in windows
- login: "tombert"
- mimetype: "text/plain"
- username: "tombert"
- icomment:
Ticket change [a41c17d407] (rid 110153) by dkf on 2011-12-03 23:50:52:
- assignee changed to: "kennykb"
- subsystem changed to: "06. Time Measurement"
Ticket change [bf3b588a61] (rid 102217) by tombert on 2012-04-11 02:56:57:
- icomment:
Still valid in latest head tcl 8.5.11, but only in the debug compilation. Tested in XP and W7.
- login: "tombert"
- mimetype: "text/plain"
- username: "tombert"
- icomment:
Ticket change [96f0e2fdb8] (rid 106421) by sebres on 2012-04-11 13:44:49:
- icomment:
check your debug constellation: - which value returns ::tcl::clock::GetSystemTimeZone? - could you load package "registry"?
- login: "sebres"
- mimetype: "text/plain"
- username: "sebres"
- icomment:
Ticket change [daaa9c890d] (rid 107830) by nijtmans on 2012-04-11 14:57:59:
- assignee changed to: "nijtmans"
- icomment:
sebres, good questions! Tried to reproduced this, and indeed I could. So - yes - there is a real bug here. First analysis pointed to line 535 of tclWinInit.c: #ifdef _DEBUG This should have been #ifdef TCL_CFG_DEBUG (The _DEBUG is probably microsoft-specific) Further on, in library/reg/pkgIndex.tcl: if {[info exists ::tcl_platform(debug)]} { The tcl8.5+ way of doing this is: if {[::tcl::pkgconfig get debug]} { (dde has the same problem) Then - third - there is no reason why ConvertLocalToUTCUsingC returns this error, in spite of the timezone not being found. Now investigating that. - login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- username: "nijtmans"
Ticket change [b20bace38b] (rid 98267) by nijtmans on 2012-04-11 15:14:41:
- icomment:
See also: <http://msdn.microsoft.com/en-us/library/d1y53h2a%28v=vs.80%29.aspx> So, the reason why ConvertLocalToUTCUsingC returns an error is simply that the function mktime is documented to handle only dates after midnight, January 1, 1970, nothing we can do about that. - login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [2d136c5302] (rid 119018) by tombert on 2012-04-11 16:11:10:
- assignee changed to: "kennykb"
- icomment:
The release compilation returns -378694800 with no error and this number is exactly 12 Years i.e. 1970-1958. So I thought that this is intended behaviour - but why is it available in the release but not in the debug code? thx
- login: "tombert"
- mimetype: "text/plain"
- resolution changed to: "None"
- username: "tombert"
Ticket change [7710ac45d4] (rid 105698) by nijtmans on 2012-04-11 16:20:35:
- assignee changed to: "nijtmans"
- icomment:
> So I thought that this is intended behaviour - but why is it available in >the release but not in the debug code? Because of the bug mentioned below. The real problem here was that the timezone could not be determined because the registry package couldn't be loaded. That is something we can correct (and I will do that). The fallback uses mktime, which only works >=1970, nothing we can do about that.
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- username: "nijtmans"
Ticket change [16ee6feeff] (rid 124797) by sebres on 2012-04-11 16:26:47:
- icomment:
Thomas, did you read our comments before you post your question? Presumption is the system time zone is not set (possible because package registry is not loaded). Because of bug with ::tcl_platform(debug) - to temporary bypass this in debug mode change your lib\tcl8.5\reg\pkgIndex.tcl to load correct tclreg.dll.
- login: "sebres"
- mimetype: "text/plain"
- username: "sebres"
- icomment:
Ticket change [8101dc6880] (rid 116963) by tombert on 2012-04-11 16:53:26:
- icomment:
Yes of course I read, but I overreacted by Jans statement "nothing we can do about that" ...
- login: "tombert"
- mimetype: "text/plain"
- username: "tombert"
- icomment:
Ticket change [8518e0395a] (rid 131265) by nijtmans on 2012-04-12 03:48:03:
- closedate changed to: "2012-04-11T20:48:03"
- closer changed to: "nijtmans"
- icomment:
Should be fixed now in core-8-4-branch, core-8-5-branch and trunk. Thomas, can you please test?
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- username: "nijtmans"
Ticket change [c675cdb8c2] (rid 121773) by tombert on 2012-04-13 01:06:28:
- icomment:
Yes it works. thx!
- login: "tombert"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "tombert"
- icomment:
Ticket change [53205b9918] (rid 126429) by nijtmans on 2012-04-13 03:46:06:
- closedate changed to: "2012-04-12T20:46:06"
- closer changed to: "nijtmans"
- status changed to: "Closed"
Ticket change [1ee41b01ba] (rid 91052) by dgp on 2012-04-16 22:06:17:
- icomment:
Checkin [8032e7f92e] on the trunk is intended to fix this bug. It may do that, but it also breaks release 2.6.7 of the Thread package. Starting with that checkin, every attempt to [load] the Thread shared library reports (falsely) "Tcl core wasn't compiled for threading." This needs immediate repair. Did not test the other branches, but seems at least likely the problem arises on them too.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- resolution changed to: "Rejected"
- status changed to: "Open"
- username: "dgp"
- icomment:
Ticket change [2afbbd998c] (rid 118661) by nijtmans on 2012-04-16 22:32:58:
- icomment:
This must be the potential incompatibility mentioned in the ChangeLog. Thread is using an undocumented Tcl feature. Will study that.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [6a2630cac4] (rid 128094) by nijtmans on 2012-04-17 04:26:19:
- closedate changed to: "2012-04-16T21:26:19"
- closer changed to: "nijtmans"
- icomment:
Fixed in thread package, by no longer depending on the tcl_platform(threaded) variable: It's no longer necessary since Tcl 8.6 is built threaded by default.
- login: "nijtmans"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "nijtmans"
Ticket change [fb4d4f761e] (rid 92034) by dgp on 2012-04-17 19:10:42:
- icomment:
"by default" 8.6 can still be built --disable-threads.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Open"
- username: "dgp"
- icomment:
Ticket change [d737a78a60] (rid 123943) by dgp on 2012-04-17 19:12:00:
- icomment:
Even setting aside that dispute, you can't change the core in ways that break released packages. Thread 2.6.7 still won't [load] into Tcl 8.6, even with a --enable-threads build.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [2a529ed8b3] (rid 118537) by dgp on 2012-04-17 19:20:15:
- assignee changed to: "dgp"
- priority changed to: "9 Immediate"
Ticket change [4c2e03bedd] (rid 126832) by dgp on 2012-04-17 20:50:20:
- closedate changed to: "2012-04-17T13:50:20"
- closer changed to: "dgp"
- icomment:
allow_comments - 1 trunk should work again now.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"
Ticket change [53f2e5b48d] (rid 93853) by nijtmans on 2012-04-17 21:22:47:
- icomment:
Don, Thanks! > Even setting aside that dispute, you can't change > the core in ways that break released packages. > Thread 2.6.7 still won't [load] into Tcl 8.6, even > with a --enable-threads build. It's not really a dispute, backwards compatibility is always good, so I agree with putting back the tcl_platform(threaded) variable. I simply didn't know that Thread was using the tcl_platform(threaded) variable. I think that breaking an extension which uses undocumented features could happen in a minor release, but it should not be done "on purpose" just to tease the extension maintainer. In this case, because Thread 2.7 will be distributed with Tcl 8.6, it would not even be a problem that Thread 2.6.7 doesn't load any more. However, because Thread will be distributed with Tcl, I think it should provide a good example and not use the tcl_platform(threaded) variable. Therefore, Thread should be modified anyway, without regarding the existance of tcl_platform(threaded) in the core (which is done now. Anyway, thanks!
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [c29613923b] (rid 111510) by dgp on 2012-04-17 22:00:42:
- icomment:
Mostly agreed. I've got no problem starting these tcl_platform entries down the deprecation path. I do need a gentler pace. Regarding Thread 2.7, the catch is that moving away from testing tcl_platform(threaded) requires dropping support for Tcl 8.4. I'm ok with that, but I'd want to at least get vasiljevic's thoughts before doing that.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [4ae5890aa5] (rid 126612) by dgp on 2012-04-20 00:07:34:
- icomment:
At the moment thread-2-7-branch is demanding Tcl 8.5+. The reason is that we wish to label the tip of that thread as version 2.7b1, and [package] could not handle such things until Tcl 8.5. Given that, I think a more complete reliance and demand on Tcl 8.5 in the Thread 2.7* releases is the right way to go. Then migration to using TIP 59 facilities instead of tcl_platform() is the way to go too.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [cffdc3605e] (rid 113087) by nijtmans on 2012-04-20 14:50:31:
- icomment:
Migration to TIP 59 facilities done in thread-2-7-branch.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment: