Artifacts Associated With Ticket 218020
Ticket change [e1aaec37b3] (rid 87495) by nobody on 2000-10-26 00:52:15:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1135 Bug Version: 8.0.3 SubmitDate: '1999-02-02' LastModified: '1999-04-16' Severity: MED Status: Closed Submitter: welch ChangedBy: rjohnson OS: Windows NT OSVersion: 4.0 Machine: X86 FixedDate: '2000-10-25' ClosedDate: '1999-04-16' Name: Kirk Augustin Extensions: Aim CustomShell: lots ReproducibleScript: append env(TMP) "xxx" # where TMP is any valid env entry, and "xxx" is any string. ObservedBehavior: # You get a Purify error, and puts $env(TMP) # is garbage DesiredBehavior: obvious Patch: # in file generic\tclEnv.c, function TclSetEnv, move /* * Update all of the interpreters. */ for (eiPtr= firstInterpPtr; eiPtr != NULL; eiPtr = eiPtr->nextPtr) { (void) Tcl_SetVar2(eiPtr->interp, "env", (char *) name, (char *) value, TCL_GLOBAL_ONLY); } # To the end of the function, AFTER the env entry for the local interpreter is # appended. This prevents the env trace in other interpeters from going cyclic. PatchFiles: # file: generic\tclEnv.c # function: TclSetEnv() The old code tried to update the other interpreters before updating its own interpreter env, but each interpreter fired traces and caused an endless cycle, until memory was corrupted. This works in 8.1. Closing this bug. 04/16/1999 18:31 - rjohnson - - foundin initialized to: "obsolete: 8.0.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "unable to append to a value of env"
- type initialized to: "Bug"
Ticket change [156d5740c1] (rid 124563) by welch on 2000-10-26 08:12:12:
- closedate changed to: "2000-10-26T01:12:12"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [93635fd142] (rid 105806) by dgp on 2001-04-16 23:00:11:
- closedate changed to: "2001-04-16T16:00:11"
- closer changed to: "dgp"
- subsystem changed to: "08. Environment Variables"