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

History Of Ticket 218611ffffffffff

Artifacts Associated With Ticket 218611ffffffffff

  1. Ticket change [8bd9782bc6] (rid 127646) by nobody on 2000-10-26 01:03:05:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1442 Bug
      Version: 8.0.4
      SubmitDate: '1999-03-04'
      LastModified: '1999-09-13'
      Severity: LOW
      Status: Released
      Submitter: pat
      ChangedBy: hobbs
      OS: Solaris
      OSVersion: 2.5 Sparc
      Machine: Other
      FixedDate: '1999-09-13'
      FixedInVersion: 8.1
      ClosedDate: '2000-10-25'
      
      
      Name:
      mo
      
      ReproducibleScript:
      interp create i
      
      i eval {
          set env(VAR) 123455789ABCDEF
          append env(VAR) G
      
          puts "env(VAR) is \"$env(VAR)\""
      }
      
      
      
      
      ObservedBehavior:
      This code is broken under tcl 8.0.4 but it works under tcl 8.1b1.
      
      (under 8.1b1)
      env(VAR) is "123455789ABCDEFG"
      
      
      (under 8.0.4 and earlier)
      env(VAR) is ""
      
      
      
      
      DesiredBehavior:
      The variable value should be "123455789ABCDEFGH", not "".
      
      I attempted to figure out what was going on here
      with little luck. I found that Tcl_AppendObjCmd
      would call Tcl_ObjSetVar2 to append the "G" to
      the array variable but after the append in
      Tcl_ObjSetVar2 some write traces got invoked and
      on the second write trace Tcl_ObjSetVar2 got
      called again but this time the value of the var
      got set to "". If this code is run outside of
      a sub interp then it will invoke a single write
      trace but a second write trace (the one that
      incorrectly sets the value to "") will not get
      run. Does anyone have any clue what is going on
      here and how I can fix it?
      
      
      Any help would be great.
      Mo DeJong
      dejong at cs.umn.edu
      
      
      
      
      I've verified that this does happen.  Very odd.  Maybe a ref count bug.  However,
      we will probably not take time to fix this as it has been fixed in 8.1.  Please
      upgrade to get the fix.  03/13/1999 15:34 - rjohnson -
      
      
      
    4. foundin initialized to: "obsolete: 8.0.4"
    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: "bug in "append" command"
    11. type initialized to: "Bug"
  2. Ticket change [f60f601181] (rid 130227) by welch on 2000-10-26 08:25:10:

    1. closedate changed to: "2000-10-26T01:25:10"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [348d428565] (rid 106775) by dgp on 2001-04-16 23:10:06:

    1. closedate changed to: "2001-04-16T16:10:06"
    2. closer changed to: "dgp"
    3. subsystem changed to: "08. Environment Variables"
    4. title changed to: "bug in "append" command"