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

History Of Ticket 523217ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 523217ffffffffffffffffffffffffffffffffff

  1. Ticket change [57a8a16d4e] (rid 117655) by hobbs on 2002-02-27 01:02:04:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The file readlink command in the new VFS system isn't 
      handling refcounts right, leading to repeatable crash 
      situations.  The following code will crash on RH6.1 or 
      SuSE7.3:
      
      foreach file [lsort [glob /usr/bin/c*]] {
      catch { file readlink $file }
      }
      
      There relevant stack trace info is:
      
      #0  0x400bd990 in free () from /lib/libc.so.6
      #1  0x080f375f in TclpFree (cp=0x810909c "")
          at ../generic/tclAlloc.c:1639
      #2  0x08072bff in Tcl_Free (ptr=0x810909c "")
          at ../generic/tclCkalloc.c:1160
      #3  0x080c5856 in FreeFsPathInternalRep 
      (pathObjPtr=0x81314f8)
          at ../generic/tclIOUtil.c:3780
      #4  0x080558d4 in TclFreeObj (objPtr=0x81314f8)
          at /cvs/tcl/tcl8.4/unix/../generic/tclObj.c:696
      #5  0x080c82f2 in FreeListInternalRep 
      (listPtr=0x8131768)
          at ../generic/tclListObj.c:1387
      #6  0x0809ddde in TclExecuteByteCode 
      (interp=0x810f110, codePtr=0x81188a8)
          at ../generic/tclExecute.c:1375
      #7  0x0809d150 in TclCompEvalObj (interp=0x810f110, 
      objPtr=0x8117880, 
          engineCall=0)
          at ../generic/tclExecute.c:941
      #8  0x0806e63d in Tcl_EvalObjEx (interp=0x810f110, 
      objPtr=0x8117880, 
          flags=131072) at ../generic/tclBasic.c:3864
      
      If you remove the Tcl_DecrRefCount at tclCmdAH.c:1113 
      the bug will go away, but I'm sure that it leaking 
      memory.  This needs to get addressed ASAP, along with 
      a more robust test suite on the VFS stuff (with a 
      purify run if possible).
      
    4. foundin initialized to: "obsolete: 8.4a4"
    5. priority initialized to: "9 Immediate"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "hobbs"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "refcount crash in file readlink"
    11. type initialized to: "Bug"
  2. Ticket change [8a8bfae827] (rid 127408) by nobody on 2002-03-01 03:00:14:

    1. icomment:
      Logged In: NO 
      
      That DecrRefCount is certainly needed according to the way 
      the code is documented -- 'Tcl_FSLink' returns an object 
      with refCount 1, which goes up to 2 when it is set as the 
      interp's result.  So therefore it should be decremented.
      
      I can't see anything obviously wrong, but 
      Tcl_FSNewNativePath is the likely culprit.  Perhaps 
      something odd is happening with the 'pure normalized' path-
      type Tcl_Obj that is created.  There is some slightly 
      tricky logic with these, since they actually contain a 
      circular reference, by design. -- Vince.
      
      As far as a more robust test suite on VFS stuff goes, 
      that's hard to do without adding a proper vfs package to 
      the core.  Ideas appreciated, however.
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  3. Ticket change [483a12b794] (rid 99846) by vincentdarley on 2002-03-17 00:24:22:

    1. closedate changed to: "2002-03-16T17:24:22"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      See fix to bug 511666, which contains a fix to this.  
      Tested on linux.
      
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "vincentdarley"