Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8b1c2f31621a6cc9690fc18b82068f8e97a0a14d1a149dfeab6dd6ec0bcebfaa
Ticket: 3b6b1c4e495f11ad9cf02230579359b72c8ccd73
Tcl 9.0 hangs infinitely
User & Date: pointsman on 2023-06-30 08:47:28
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    There is Tcl code which runs with Tcl 8.6 or 8.7 but hangs (runs
    infinite) with Tcl 9.
    
    Unfortunately I wasn't able to nail this down to a small,
    stripped-down example of the problem. But there is an short recipt to
    demonstrate the problem. You need an installed Tcl 9 and a tcllib
    repository.
    
    Inside your tcllib check-out do:
    
    fossil update tcl9-testarea-rde
    
    Then run
    
    tclsh sak.tcl test run --shell /path/to/your/tcl/9/installation/tclsh9.0 base64
    
    This runs infinitely.
    
    If you run this with a path to a Tcl 8.6 or 8.7 tclsh with the --shell
    option this runs to an end as expected.
    
    While I was not able to find the crucial actions on script level to
    trigger that I found that tclsh9.0 endlessly loops in
    [https://core.tcl-lang.org/tcl/file?udc=1&ln=4640-4647&ci=trunk&name=generic%2FtclBasic.c]
    (attached to the running process with gdb and analysed).
    
    Bisecing turned out to be not so much enlightening:
    
    2018-10-08 19:36:29 [acd6c0661e] BAD
    2018-10-08 19:00:39 [f3d49044c4] GOOD
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "pointsman"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "pointsman"
  14. subsystem changed to: "None"
  15. title changed to: "Tcl 9.0 hangs infinitely"
  16. type changed to: "Bug"