Overview
| Artifact ID: | 1cb3f0643a3f8c74ee1a7e3a1b42c603eb63a6a9 |
|---|---|
| Ticket: | 873311ffffffffffffffffffffffffffffffffff
Infinite loop in the virtual filesystem code |
| User & Date: | nobody on 2004-01-08 20:59:55 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- 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". - foundin changed to: "obsolete: 8.4.5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "37. File System"
- title changed to: "Infinite loop in the virtual filesystem code"
- type changed to: "Bug"