Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ae15e72c63df0b2f8cd906194105a4dc6fe67226b751ade01558bc6df817e02a
Ticket: b5777d3d3290348abc980027a96607ccfe4bf4da
Crash corner-case in TIP #502 implementation
User & Date: jan.nijtmans on 2020-08-25 16:03:24
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Try the following:
    
    <pre>
    $tclsh8.7
    % string index abcd 0-0x10000000000000000
    % 
    tailcall cannot find the right splicing spot: should not happen!
    Abort trap: 6
    </pre>
    
    (press "enter" twice after typing the command).
    
    I could re-produce this both on Windows 10 and on MacOS.
    
    Bisection shows that this crash is already happening since commit [bae05b9e6f], which is the TIP #502 implementation. Before that, the result was the same as in Tcl 8.6:
    
    <pre>
    $ tclsh8.6
    % string index abcd 0-10000000000000000
    bad index "0-10000000000000000": must be integer?[+-]integer? or end?[+-]integer?
    </pre>
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "jan.nijtmans"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to: "Crash corner-case in TIP #502 implementation"
  15. type changed to: "Bug"