Skip to content
Tcl Source Code History Of Ticket 218621ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 218621ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 218621ffffffffffffffffffffffffffffffffff

  1. Ticket change [6e2904f08d] (rid 128827) by nobody on 2000-10-26 01:03:15:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1486 Bug
      Version: 8.0.5
      SubmitDate: '1999-03-11'
      LastModified: '1999-04-09'
      Severity: MED
      Status: Released
      Submitter: pat
      ChangedBy: surles
      OS: Linux-Red Hat
      OSVersion: 5.1
      Machine: Other
      FixedDate: '1999-04-09'
      FixedInVersion: 8.1b3
      ClosedDate: '2000-10-25'
      
      
      Name:
      Bart Veer
      
      Extensions:
      None
      
      CustomShell:
      None.
      
      ReproducibleScript:
          The man page for Tcl_DeleteAssocData() states:
          
          "Tcl_DeleteAssocData deletes an association with a specified key in
          the given interpreter.  It does not call the deletion procedure."
          
          The implementation in generic/tclBasic.c contains:
          
              dPtr = (AssocData *) Tcl_GetHashValue(hPtr);
              if (dPtr->proc != NULL) {
                  (dPtr->proc) (dPtr->clientData, interp);
              }
          
          
      
      
      
      ObservedBehavior:
          Application code that invoked Tcl_DeleteAssocData() also deleted the
          clientdata, as per the documentation. This resulted in a double-free
          attempt and heap corruption.
          
      
      
      
      DesiredBehavior:
          Tcl_DeleteAssocData() probably should delete the clientdata, for
          consistency with e.g. Tcl_DeleteCommand(). Therefore the code is
          correct, but the relevant line from the documentation needs to be
          removed. Obviously this approach has the advantage of not changing the
          behaviour of any existing code.
          
      
      
      
      
      
          This problem is also present in Tcl8.1b1
      ---
      04/09/1999 13:32 - surles - Changed the man page to say it DOES call the deletion proc.
      
      
      
    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: "46. Traces"
    10. title initialized to: "Doc/implementation mismatch for AssocData"
    11. type initialized to: "Bug"
  2. Ticket change [99b4a06d4c] (rid 110836) by welch on 2000-10-26 08:25:11:

    1. closedate changed to: "2000-10-26T01:25:11"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [ab60b63918] (rid 101095) by dgp on 2001-04-05 06:40:44:

    1. closedate changed to: "2001-04-04T23:40:44"
    2. closer changed to: "dgp"
    3. subsystem changed to: "45. Parsing and Eval"