Skip to content
Tcl Source Code History Of Ticket 3448512fffffffffffffffffffffffffffffffff
Login

History Of Ticket 3448512fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 3448512fffffffffffffffffffffffffffffffff

  1. Ticket change [bc6d8f2ef4] (rid 101748) by tombert on 2011-12-02 18:19:27:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "obsolete: 8.5.11"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "tombert"
    10. subsystem initialized to: "16. Commands A-H"
    11. title initialized to:
      clock scan "1958-01-01" fails only in debug compilation
      
    12. type initialized to: "Bug"
  2. Ticket change [86ab865eee] (rid 131556) by ferrieux on 2011-12-03 01:45:19:

    1. icomment:
      FWIW, I can't seem to repro on Linux, tip of core-8-5-branch.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  3. Ticket change [e34dba83d4] (rid 87773) by tombert on 2011-12-03 03:15:04:

    1. icomment:
      In linux my debug compilation returns -378694800
      seems to fail only in windows
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. username: "tombert"
  4. Ticket change [a41c17d407] (rid 110153) by dkf on 2011-12-03 23:50:52:

    1. assignee changed to: "kennykb"
    2. subsystem changed to: "06. Time Measurement"
  5. Ticket change [bf3b588a61] (rid 102217) by tombert on 2012-04-11 02:56:57:

    1. icomment:
      Still valid in latest head tcl 8.5.11, but only in the debug compilation. Tested in XP and W7.
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. username: "tombert"
  6. Ticket change [96f0e2fdb8] (rid 106421) by sebres on 2012-04-11 13:44:49:

    1. icomment:
      check your debug constellation:
         - which value returns ::tcl::clock::GetSystemTimeZone?
         - could you load package "registry"?
      
      
    2. login: "sebres"
    3. mimetype: "text/plain"
    4. username: "sebres"
  7. Ticket change [daaa9c890d] (rid 107830) by nijtmans on 2012-04-11 14:57:59:

    1. assignee changed to: "nijtmans"
    2. 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.
      
      
    3. login: "nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "Accepted"
    6. username: "nijtmans"
  8. Ticket change [b20bace38b] (rid 98267) by nijtmans on 2012-04-11 15:14:41:

    1. 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.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  9. Ticket change [2d136c5302] (rid 119018) by tombert on 2012-04-11 16:11:10:

    1. assignee changed to: "kennykb"
    2. 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
      
      
      
    3. login: "tombert"
    4. mimetype: "text/plain"
    5. resolution changed to: "None"
    6. username: "tombert"
  10. Ticket change [7710ac45d4] (rid 105698) by nijtmans on 2012-04-11 16:20:35:

    1. assignee changed to: "nijtmans"
    2. 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.
      
      
    3. login: "nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "Accepted"
    6. username: "nijtmans"
  11. Ticket change [16ee6feeff] (rid 124797) by sebres on 2012-04-11 16:26:47:

    1. 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.
      
      
    2. login: "sebres"
    3. mimetype: "text/plain"
    4. username: "sebres"
  12. Ticket change [8101dc6880] (rid 116963) by tombert on 2012-04-11 16:53:26:

    1. icomment:
      Yes of course I read, but I overreacted by Jans statement "nothing we can do about that" ...
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. username: "tombert"
  13. Ticket change [8518e0395a] (rid 131265) by nijtmans on 2012-04-12 03:48:03:

    1. closedate changed to: "2012-04-11T20:48:03"
    2. closer changed to: "nijtmans"
    3. icomment:
      Should be fixed now in core-8-4-branch, core-8-5-branch and trunk.
      
      Thomas, can you please test?
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Pending"
    8. username: "nijtmans"
  14. Ticket change [c675cdb8c2] (rid 121773) by tombert on 2012-04-13 01:06:28:

    1. icomment:
      Yes it works.
      thx!
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "tombert"
  15. Ticket change [53205b9918] (rid 126429) by nijtmans on 2012-04-13 03:46:06:

    1. closedate changed to: "2012-04-12T20:46:06"
    2. closer changed to: "nijtmans"
    3. status changed to: "Closed"
  16. Ticket change [1ee41b01ba] (rid 91052) by dgp on 2012-04-16 22:06:17:

    1. 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.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. resolution changed to: "Rejected"
    6. status changed to: "Open"
    7. username: "dgp"
  17. Ticket change [2afbbd998c] (rid 118661) by nijtmans on 2012-04-16 22:32:58:

    1. icomment:
      This must be the potential incompatibility mentioned in the ChangeLog. Thread
      is using an undocumented Tcl feature. Will study that.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  18. Ticket change [6a2630cac4] (rid 128094) by nijtmans on 2012-04-17 04:26:19:

    1. closedate changed to: "2012-04-16T21:26:19"
    2. closer changed to: "nijtmans"
    3. 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.
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. priority changed to: "5 Medium"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "nijtmans"
  19. Ticket change [fb4d4f761e] (rid 92034) by dgp on 2012-04-17 19:10:42:

    1. icomment:
      "by default"  8.6 can still be built --disable-threads.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. resolution changed to: "Rejected"
    5. status changed to: "Open"
    6. username: "dgp"
  20. Ticket change [d737a78a60] (rid 123943) by dgp on 2012-04-17 19:12:00:

    1. 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.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  21. Ticket change [2a529ed8b3] (rid 118537) by dgp on 2012-04-17 19:20:15:

    1. assignee changed to: "dgp"
    2. priority changed to: "9 Immediate"
  22. Ticket change [4c2e03bedd] (rid 126832) by dgp on 2012-04-17 20:50:20:

    1. closedate changed to: "2012-04-17T13:50:20"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      allow_comments - 1
      
      trunk should work again now.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. priority changed to: "5 Medium"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dgp"
  23. Ticket change [53f2e5b48d] (rid 93853) by nijtmans on 2012-04-17 21:22:47:

    1. 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!
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  24. Ticket change [c29613923b] (rid 111510) by dgp on 2012-04-17 22:00:42:

    1. 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.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  25. Ticket change [4ae5890aa5] (rid 126612) by dgp on 2012-04-20 00:07:34:

    1. 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.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  26. Ticket change [cffdc3605e] (rid 113087) by nijtmans on 2012-04-20 14:50:31:

    1. icomment:
      Migration to TIP 59 facilities done in thread-2-7-branch.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"