Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1cb3f0643a3f8c74ee1a7e3a1b42c603eb63a6a9
Ticket: 873311ffffffffffffffffffffffffffffffffff
Infinite loop in the virtual filesystem code
User & Date: nobody on 2004-01-08 20:59:55
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    In tclIOUtil.c about line 650 in the
    TclFinalizeFilesystem()
    function we have:
    
        fsRecPtr = filesystemList;
        while (fsRecPtr != NULL) {
            tmpFsRecPtr = filesystemList->nextPtr;
                          ^^^^^^^^^^^^^^
                          should be fsRecPtr
    
            if (fsRecPtr->fileRefCount <= 0) {
                /* The native filesystem is static, so we
    don't free it */
                if (fsRecPtr != &nativeFilesystemRecord) {
                    ckfree((char *)fsRecPtr);
                }
            }
            fsRecPtr = tmpFsRecPtr;
        }
        filesystemList = NULL;
    
    The effect of this error is that if you have ever called
    Tcl_FSRegister(), you get stuck in an infinite loop when
    you try to shut down.
    
    In case the copy/paste above gets mangled by this bug
    tracking system (which seems likely) I will restate the
    bug in prose:  The "filesystemList" variable on line 625
    of tclIOUtil.c version 1.92 should be "fsRecPtr".
    
  4. foundin changed to: "obsolete: 8.4.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "37. File System"
  10. title changed to: "Infinite loop in the virtual filesystem code"
  11. type changed to: "Bug"