Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f1dd4bdc3b5302d3e24cbba0840f862d68452244
Ticket: 1042910fffffffffffffffffffffffffffffffff
tcl crash when env variable too large
User & Date: yahalom on 2004-10-08 09:45:11
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    tcl 8.4.7
    pltfrom: windows XP/2000
    when I run this script tclsh crashes.
    the problem is with environemnt variable being in 
    the length of 32767 or more. this problem causes a 
    serious file upload problem with tclhttpd.
    
    set xxx [string repeat x 32765]
    set env(query) $xxx
    set xxx [string repeat x 32767]
    set env(query) $xxx
    set crash $env(query)
    
    a longer test that shows the problem is with the 
    32767:
    while {1} {
    append xxx x
    puts [string length $xxx]
    set env(query) $xxx
    set b $env(query)
    }
    
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "yahalom"
  9. subsystem changed to: "08. Environment Variables"
  10. title changed to: "tcl crash when env variable too large"
  11. type changed to: "Bug"