Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b4d7903d921ca7ecde8d2db4743b6ab15089c1b5
Ticket: 671138ffffffffffffffffffffffffffffffffff
TableToUtfProc/tclEncoding error
User & Date: lvirden on 2003-01-20 19:58:37
Changes

  1. icomment:
    Logged In: YES 
    user_id=15949
    
    After looking into the core a bit, I discover that dst has
    what appears tobe a  length instead of an address.  Poking
    up the stack trace, the problem appears to be in tclIO.c,
    line 4673, which reads:
    
        dst = objPtr->bytes + offset;
    (dbx 18) print objPtr
    objPtr = 0x37530
    [You have mail]
    (dbx 19) print objPtr->bytes
    objPtr->bytes = (nil)
    
    So instead of getting an offset in this objPtr, we get nonsense.
    print *objPtr     
    *objPtr = {
        refCount    = 1
        bytes       = (nil)
        length      = 114
        typePtr     = 0xef6cfd5c
        internalRep = {
            longValue     = 313440
            doubleValue   = 6.6511836072015e-309
            otherValuePtr = 0x4c860
            wideValue     = 1346214549258240LL
            twoPtrValue   = {
                ptr1 = 0x4c860
                ptr2 = (nil)
            }
        }
    }
    print *objPtr->typePtr
    *objPtr->typePtr = {
        name             = 0xef6d90ac "string"
        freeIntRepProc   = 0xef685508 =
    &`libtcl8.4g.so`tclStringObj.c`FreeStringInternalRep(Tcl_Obj
    *objPtr)
        dupIntRepProc    = 0xef685090 =
    &`libtcl8.4g.so`tclStringObj.c`DupStringInternalRep(register
    Tcl_Obj *srcPtr, register Tcl_Obj *copyPtr)
        updateStringProc = 0xef685318 =
    &`libtcl8.4g.so`tclStringObj.c`UpdateStringOfString(Tcl_Obj
    *objPtr)
        setFromAnyProc   = 0xef6851d0 =
    &`libtcl8.4g.so`tclStringObj.c`SetStringFromAny(Tcl_Interp
    *interp, register Tcl_Obj *objPtr)
    }
    print *objPtr->internalRep->twoPtrValue->ptr1
    *objPtr->internalRep.twoPtrValue.ptr1 = (void)
    
    
    
  2. login: "lvirden"
  3. mimetype: "text/plain"
  4. subsystem changed to: "25. Channel System"
  5. username: "lvirden"