Artifacts Associated With Ticket 1042910fffffffffffffffffffffffffffffffff
Ticket change [f1dd4bdc3b] (rid 109435) by yahalom on 2004-10-08 09:45:11:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- 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) } - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "yahalom"
- subsystem initialized to: "08. Environment Variables"
- title initialized to: "tcl crash when env variable too large"
- type initialized to: "Bug"
Ticket change [f72557f263] (rid 91324) by davygrvy on 2004-10-09 09:26:41:
- 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
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [afed0942d3] (rid 97899) by hobbs on 2004-10-09 09:32:54:
- 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 - login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "7 High"
- username: "hobbs"
- icomment:
Ticket change [c1ec946acf] (rid 111410) by hobbs on 2005-10-05 13:54:48:
- closedate changed to: "2005-10-05T06:54:48"
- closer changed to: "hobbs"
- 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
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Pending"
- username: "hobbs"
Ticket change [26a43f2333] (rid 88383) by sf-robot on 2005-10-20 09:20:34:
- closedate changed to: "2005-10-20T02:20:34"
- closer changed to: "sf-robot"
- 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).
- login: "sf-robot"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "sf-robot"