Skip to content
Tcl Source Code History Of Ticket 89dfecb6b7
Login

History Of Ticket 89dfecb6b7

Artifacts Associated With Ticket 89dfecb6b7

  1. Ticket change [de3940aeea] (rid 161078) by dgp on 2018-02-20 14:58:38:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Tcl itself does not expose thread IDs to scripts.
      
      The Thread package does, and does so via a formatted string representation
      
          tid0xHHHH...
      
      where the HHHH is a hex encoding of a pointer value.
      
      Tcl does have some testing commands that expose thread IDs as
      Tcl values:
      
          testmainthread, testchannel mthread, testthread create, testthread id
      
      (some other testing commands accept these values as arguments)
      
      These testing commands do not use the same value encoding that the
      Thread package does.
      
      Worse, they do not even use a fully consistent encoding among themselves.
      Some report the pointer value as a signed long, others as a signed wide,
      using decimal representation in both cases.
      
      The difference shows up only on platforms where long and wide are different,
      typically 32-bit systems.  Recent adoption of TIP 484 in 8.7a2 has
      exposed the problem as testing failures. 
      
      In particular, test chan-io-59.1 reports failure because the signed long
      representation of a thread ID pointer returned by [testmainthread] is
      not equal to the signed wide representation (new with TIP 484!) of
      the same thread ID pointer returned by [testchannel mthread].
      
      I think the best fix is to settle on the common signed wide rep
      of [testthread id] and get them all consistent.
      
      A related issue is to note that TclFormatInt() has incompatibly
      changed its function (It used to format the string rep of a signed
      long value -- now it does a signed wide value ) and all callers need
      to be checked that they are ok with that.
      
    5. foundin initialized to: "8.5+"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Important"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "49. Threading"
    14. title initialized to: "inconsistent thread id values in testing commands"
    15. type initialized to: "Bug"
  2. Ticket change [5d56a00736] (rid 161089) by dgp on 2018-02-22 19:04:06:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2458172.29451528"
    3. closer changed to: "dgp"
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"