Skip to content
Tcl Source Code History Of Ticket 079d72381d84445b
Login

History Of Ticket 079d72381d84445b

Artifacts Associated With Ticket 079d72381d84445b

  1. Ticket change [daa3ec0e9b] (rid 195692) by anonymous on 2021-09-23 14:14:41:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Platform: Tcl8.7a5 built on Linux x86_64 with tcllib 1.20 installed
      
      To reproduce: Start tclsh8.7 and enter 'package require crc16', tclsh
      never returns to the prompt.
      
      The hang appears to be due to a change in the behaviour of int() between
      Tcl 8.6 and 8.7. The code in crc16.tcl that causes the hang is included
      below, the same code can also be found in crc32.tcl.
      
      # calculate the sign bit for the current platform.
      variable signbit
      if {![info exists signbit]} {
          variable v
          for {set v 1} {int($v) != 0} {set signbit $v; set v [expr {$v<<1}]} {}
          unset v
      }
      
      Under Tcl 8.6, int($v) returns zero when the native word-length is exceeded,
      under 8.7 it doesn't.
      
      Tcl 8.6.11:
      % expr int(18446744073709551616)
      0
      % 
      Tcl 8.7a5:
      %  expr int(18446744073709551616)
      18446744073709551616
      %
      
    5. foundin initialized to: "8.7a5"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "8e5a305d42b9381cdca00d58075ee28d965f6ab0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "17. Commands I-L"
    15. title initialized to:
      Tcl 8.7a5 hangs loading package crc16 or crc32 from tcllib 1.20
      
    16. type initialized to: "Bug"
  2. Ticket change [f72c610716] (rid 195722) by jan.nijtmans on 2021-09-24 13:43:55:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2459482.07216863"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      This behavioral change comes from [https://core.tcl-lang.org/tips/doc/trunk/tip/514.md|TIP #514].
      
      This is already fixed in tcllib version 1.1.4. See:
      [https://core.tcl-lang.org/tcllib/info/95af8220a8f4f2de|here]
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Duplicate"
    8. status changed to: "Closed"
  3. Ticket change [fae6b703ac] (rid 195723) by jan.nijtmans on 2021-09-24 13:47:39:

    1. closedate changed to: "2459482.07476811"
    2. icomment:
      > This is already fixed in tcllib version 1.1.4
      This is fixed in crc16 version 1.1.4 (which has its own versioning)
      
      It appears that Tcllib 1.20 - which is the most recent - does not contain the fix yet. You'll have to wait for Tcllib 1.21 (or patch it yourself)
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"