Skip to content
Tcl Source Code History Of Ticket 218020ffffffffff
Login

History Of Ticket 218020ffffffffff

Artifacts Associated With Ticket 218020ffffffffff

  1. Ticket change [e1aaec37b3] (rid 87495) by nobody on 2000-10-26 00:52:15:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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 -
      
      
      
    4. foundin initialized to: "obsolete: 8.0.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "unable to append to a value of env"
    11. type initialized to: "Bug"
  2. Ticket change [156d5740c1] (rid 124563) by welch on 2000-10-26 08:12:12:

    1. closedate changed to: "2000-10-26T01:12:12"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [93635fd142] (rid 105806) by dgp on 2001-04-16 23:00:11:

    1. closedate changed to: "2001-04-16T16:00:11"
    2. closer changed to: "dgp"
    3. subsystem changed to: "08. Environment Variables"