Skip to content
Tcl Source Code History Of Ticket 218676
Login

History Of Ticket 218676

Artifacts Associated With Ticket 218676

  1. Ticket change [fb16299754] (rid 91992) by nobody on 2000-10-26 01:04:01:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1710 Bug
      Version: 8.0.5
      SubmitDate: '1999-04-05'
      LastModified: '1999-09-20'
      Severity: CRIT
      Status: Released
      Submitter: pat
      ChangedBy: hobbs
      OS: All
      OSVersion: NA
      Machine: NA
      FixedDate: '1999-09-20'
      FixedInVersion: 8.2
      ClosedDate: '2000-10-25'
      
      
      Name:  Paul Duffin
      email:  [email protected]
      Support:  None
      Severity:  1
      Synopsis:  String rep freed before internal rep.
      
      ObservedBehavior:
          When for whatever reason both the internal representation and the string
          representation of an object are freed, e.g. inside Tcl_SetStringObj, or
          Tcl_SetListObj, or when an object itself is freed, the string rep is
          being freed
          before the internal rep. This breaks my code because I try and access
          the string
          representation in the freeIntRepProc.
          
          The core is inconsistent, sometimes it frees the string rep first, other
          times 
          it frees it last, and the behaviour has changed from 8.0.4 to 8.1b2,
          although it
          affects all 8.* releases.
          
      
      DesiredBehavior:
          I expect the string representation to be freed after the internal
          representation
          so that I can use it in my freeIntRepProc. This affects all 8.* releases
          so 
          should be fixed in Tcl8.1b2 and Tcl8.0.5.
      
      
      This is not documented behavior, but it's an easy fix so we might as well make it.  I can't see any reason why the internal rep should not be freed before the string rep in all cases, so we may want to document this as the expected sequence, and possibly add a new interface to encapsulate this.  
      04/27/1999 10:00 - stanton -
      This fix has been applied sometime before 8.2.0 (internal free rep
      proc is called before InvalidateStringRep). 
      -- 09/20/1999 hobbs
      
      
      
    4. foundin initialized to: "final: 8.0.5"
    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: "String rep freed before internal rep"
    11. type initialized to: "RFE"
  2. Ticket change [6d391819b0] (rid 128654) by welch on 2000-10-26 08:27:10:

    1. closedate changed to: "2000-10-26T01:27:10"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [7030083ea2] (rid 100434) by dgp on 2001-04-21 03:23:19:

    1. foundin changed to: "None"
    2. status changed to: "Open"
    3. subsystem changed to: "None"
  4. Ticket change [8c3507abfc] (rid 127712) by dgp on 2001-04-21 03:23:41:

    1. closedate changed to: "2001-04-20T20:23:41"
    2. closer changed to: "dgp"
    3. status changed to: "Closed"
    4. subsystem changed to: "10. Objects"