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

History Of Ticket 217861ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 217861ffffffffffffffffffffffffffffffffff

  1. Ticket change [40d33e848d] (rid 116077) by nobody on 2000-10-26 00:45:00:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2047 Bug
      Version: 8.1
      SubmitDate: '1999-05-12'
      LastModified: '1999-05-14'
      Severity: CRIT
      Status: Closed
      Submitter: pat
      ChangedBy: stanton
      RelatedBugIDs: 1975
      OS: Other
      OSVersion: BSD/OS 4.0.1
      Machine: NA
      FixedDate: '2000-10-25'
      FixedInVersion: 8.1.1
      ClosedDate: '1999-05-14'
      
      
      Name:
      
      Robert Hare
      
      
      
      Comments:
      
      I have been unable to come up with a non-extended Tcl script that will  
      
          demonstrate this problem outside of my extension.  However, looking at
      
          DupListInternalRep in the List object reveals that the dupIntRepProc
      
          should set the object type in the copy.  I suspect there is a way to
      
          generate the problem
      
          without an extension, but I haven't found it yet.
      
      
      
      ReproducibleScript:
      
      The DupByteArrayInternalRep routine in tclBinary.c does not set the type
      
          in the
      
          copyPtr object to &tclByteArrayType.
      
      
      
      ObservedBehavior:
      
      While creating a new extension, I recevied a segmentation fault when
      
          calling
      
          Tcl_GetByteArrayFromObj on an object that had been duplicated.
      
      
      
      Patch:
      
      *** tclBinary.c.orig    Tue May 11 20:21:22 1999
      
      --- tclBinary.c Tue May 11 23:21:52 1999
      
      ***************
      
      *** 457,462 ****
      
      --- 457,463 ----
      
            memcpy((VOID *) copyArrayPtr->bytes, (VOID *) srcArrayPtr->bytes,
      
                  (size_t) length);
      
            SET_BYTEARRAY(copyPtr, copyArrayPtr);
      
      +     copyPtr->typePtr = &tclByteArrayType;
      
        }
      
        ^L
      
        /*
      
      
      
      PatchFiles:
      
      tclBinary.c
      
      
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.1"
    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:
      DupByteArrayInternalRep does not set object type of new obje
      
    11. type initialized to: "Bug"
  2. Ticket change [803ce6f004] (rid 97706) by welch on 2000-10-26 07:59:48:

    1. closedate changed to: "2000-10-26T00:59:48"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Invalid"
    5. status changed to: "Closed"
  3. Ticket change [c473e19b5e] (rid 111852) by dgp on 2001-04-13 23:32:01:

    1. closedate changed to: "2001-04-13T16:32:01"
    2. closer changed to: "dgp"
    3. subsystem changed to: "12. ByteArray Object"