Skip to content
Tcl Source Code History Of Ticket 1042910fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1042910fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1042910fffffffffffffffffffffffffffffffff

  1. Ticket change [f1dd4bdc3b] (rid 109435) by yahalom on 2004-10-08 09:45:11:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "yahalom"
    9. subsystem initialized to: "08. Environment Variables"
    10. title initialized to: "tcl crash when env variable too large"
    11. type initialized to: "Bug"
  2. Ticket change [f72557f263] (rid 91324) by davygrvy on 2004-10-09 09:26:41:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      Works on Win2K with current CVS 8.5:
      
      33724
      33725
      33726
      33727
      33728
      33729
      33730
      33731
      33732
      33733
      33734
      33735
      
      
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  3. Ticket change [afed0942d3] (rid 97899) by hobbs on 2004-10-09 09:32:54:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      While it doesn't crash for me on XP SP2, I do find that
      setting it to that value actually causes the value to be unset:
      
      (Tcl) 55 % set env(query) foo
      foo
      (Tcl) 56 % string length $env(query)
      3
      (Tcl) 57 % catch {set env(query) $xxx}
      0
      (Tcl) 58 % string length $env(query)
      can't read "env(query)": no such variable
      (Tcl) 59 % string length $xxx
      32767
      
      This is with 8.4.head
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. username: "hobbs"
  4. Ticket change [c1ec946acf] (rid 111410) by hobbs on 2005-10-05 13:54:48:

    1. closedate changed to: "2005-10-05T06:54:48"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      There only appears to be a Tcl-level crash on systems where
      the value gets large, as MS behavior seems to be unset the
      var.  In any case, we are using putenv, and MS docs do no
      indicate any space limitations to putenv, which we are
      allocating anyways.
      
      http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_crt__putenv.2c_._wputenv.asp
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Wont Fix"
    7. status changed to: "Pending"
    8. username: "hobbs"
  5. Ticket change [26a43f2333] (rid 88383) by sf-robot on 2005-10-20 09:20:34:

    1. closedate changed to: "2005-10-20T02:20:34"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"