Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 74d49b98a2a9df5d65f99e976899029ecbf19404b39cd197c7d86aeddc8e6f31
Ticket: 92aeb847f9b92cfbd281e9263be3f019ad59192b
proc with more than 2**31 variables
User & Date: jan.nijtmans on 2025-04-10 14:21:03
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Example (by Ashok):
    <pre>
    % proc xx [lrepeat 0x100000000 x] {}
    killed
    
    Or explicitly defining the proc in script
    
    % set l [lrepeat 0x100000000 x]; llength $l
    4294967296
    % writeFile manyargs.tcl [list proc xx $l {return $x}]
    % exit
    [apn@tcltk build]$ LD_LIBRARY_PATH=`pwd` ./tclsh manyargs.tcl 
    killed
    </pre>
    
    Note that this has no relation to TIP #626: Those examples don't
    have more than 2**31 command lines arguments, the "proc" command
    just has it's second command-line argument being a list with
    2**31 arguments. Since Tcl 9.0 already allows large list
    sizes, Tcl 9.0 should already be able to handle this.
    
    Since a proc with that many variable is unrealistic, setting this
    ticket as "minor"
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "jan.nijtmans"
  14. subsystem changed to: "22. [proc] and [uplevel]"
  15. title changed to: "proc with more than 2**31 variables"
  16. type changed to: "Bug"