|
2012-04-20
| ||
| 14:50 | • Ticket [3448512fff] clock scan "1958-01-01" fails only in debug compil... artifact: cffdc3605e user: nijtmans | |
| 00:07 | • Ticket [3448512fff]: 4 changes artifact: 4ae5890aa5 user: dgp | |
|
2012-04-17
| ||
| 22:00 | • Ticket [3448512fff]: 4 changes artifact: c29613923b user: dgp | |
| 21:22 | • Ticket [3448512fff]: 4 changes artifact: 53f2e5b48d user: nijtmans | |
| 20:50 | • Closed ticket [3448512fff]. artifact: 4c2e03bedd user: dgp | |
| 19:20 | • Ticket [3448512fff]: 2 changes artifact: 2a529ed8b3 user: dgp | |
| 19:12 | • Ticket [3448512fff]: 4 changes artifact: d737a78a60 user: dgp | |
| 19:10 | • Open ticket [3448512fff]. artifact: fb4d4f761e user: dgp | |
| 04:26 | • Closed ticket [3448512fff]. artifact: 6a2630cac4 user: nijtmans | |
|
2012-04-16
| ||
| 22:32 | • Ticket [3448512fff]: 4 changes artifact: 2afbbd998c user: nijtmans | |
| 22:06 | • Open ticket [3448512fff]. artifact: 1ee41b01ba user: dgp | |
|
2012-04-13
| ||
| 03:46 | • Closed ticket [3448512fff]. artifact: 53205b9918 user: nijtmans | |
| 01:06 | • Open ticket [3448512fff]. artifact: c675cdb8c2 user: tombert | |
|
2012-04-12
| ||
| 03:48 | • Pending ticket [3448512fff]. artifact: 8518e0395a user: nijtmans | |
|
2012-04-11
| ||
| 16:53 | • Ticket [3448512fff]: 4 changes artifact: 8101dc6880 user: tombert | |
| 16:26 | • Ticket [3448512fff]: 4 changes artifact: 16ee6feeff user: sebres | |
| 16:20 | • Ticket [3448512fff]: 6 changes artifact: 7710ac45d4 user: nijtmans | |
| 16:11 | • Ticket [3448512fff]: 6 changes artifact: 2d136c5302 user: tombert | |
| 15:14 | • Ticket [3448512fff]: 4 changes artifact: b20bace38b user: nijtmans | |
| 14:57 | • Ticket [3448512fff]: 6 changes artifact: daaa9c890d user: nijtmans | |
| 13:44 | • Ticket [3448512fff]: 4 changes artifact: 96f0e2fdb8 user: sebres | |
| 02:56 | • Ticket [3448512fff]: 4 changes artifact: bf3b588a61 user: tombert | |
|
2011-12-03
| ||
| 23:50 | • Ticket [3448512fff]: 2 changes artifact: a41c17d407 user: dkf | |
| 03:15 | • Ticket [3448512fff]: 4 changes artifact: e34dba83d4 user: tombert | |
| 01:45 | • Ticket [3448512fff]: 4 changes artifact: 86ab865eee user: ferrieux | |
|
2011-12-02
| ||
| 18:19 | • New ticket [3448512fff]. artifact: bc6d8f2ef4 user: tombert | |
clock scan "1958-01-01" fails only in debug compilation
Closed / Fixed3448512fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-12-02 18:19:27
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
ferrieuxplain2011-12-03 01:45:19
FWIW, I can't seem to repro on Linux, tip of core-8-5-branch.
tombertplain2011-12-03 03:15:04
In linux my debug compilation returns -378694800 seems to fail only in windows
dkf Ticket [3448512fff]: 2 changes
[History diff]2011-12-03 23:50:52
tombertplain2012-04-11 02:56:57
Still valid in latest head tcl 8.5.11, but only in the debug compilation. Tested in XP and W7.
sebresplain2012-04-11 13:44:49
check your debug constellation: - which value returns ::tcl::clock::GetSystemTimeZone? - could you load package "registry"?
nijtmansplain2012-04-11 14:57:59
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.
nijtmansplain2012-04-11 15:14:41
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.
tombertplain2012-04-11 16:11:10
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
nijtmansplain2012-04-11 16:20:35
> 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.
sebresplain2012-04-11 16:26:47
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.
tombertplain2012-04-11 16:53:26
Yes of course I read, but I overreacted by Jans statement "nothing we can do about that" ...
nijtmansplain2012-04-12 03:48:03
Should be fixed now in core-8-4-branch, core-8-5-branch and trunk. Thomas, can you please test?
tombertplain2012-04-13 01:06:28
Yes it works. thx!
nijtmans Closed ticket [3448512fff].
[History diff]2012-04-13 03:46:06
dgpplain2012-04-16 22:06:17
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.
nijtmansplain2012-04-16 22:32:58
This must be the potential incompatibility mentioned in the ChangeLog. Thread is using an undocumented Tcl feature. Will study that.
nijtmansplain2012-04-17 04:26:19
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.
dgpplain2012-04-17 19:10:42
"by default" 8.6 can still be built --disable-threads.
dgpplain2012-04-17 19:12:00
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.
dgp Ticket [3448512fff]: 2 changes
[History diff]2012-04-17 19:20:15
dgpplain2012-04-17 20:50:20
allow_comments - 1 trunk should work again now.
nijtmansplain2012-04-17 21:22:47
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!
dgpplain2012-04-17 22:00:42
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.
dgpplain2012-04-20 00:07:34
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.
nijtmansplain2012-04-20 14:50:31
Migration to TIP 59 facilities done in thread-2-7-branch.
Log in (anonymous is fine) to add a comment.