Overview
| Artifact ID: | d0b99aa910c1209f9c2c25b5e32f6b208f3d40b4 |
|---|---|
| Ticket: | 478641ffffffffffffffffffffffffffffffffff
pkg_mkIndex core dumps |
| User & Date: | andreas_kupries on 2001-11-07 03:42:28 |
Changes
- icomment:
Logged In: YES user_id=75003 Most likely. I did a debug session this morning and came with this explanation (excerpt from email to Larry and Vincent). Sorry, Larry didn't tell me that he a bug report submitted or I would have updated it earlier. Hm. The trouble happens when the higher layers try to retrieve the current working directory. The VFS layer of Tcl is going through the registered filesystems and asks them if they know about a directory. This directory is the directory containing the tclvfs package. ... And the higher level tcl code just tries to write into the file "pkgIndex.tcl". This means that loading "tclvfs" by 'pkg_mkIndex' was alright. So was the code afterward looking for new commands ... But the last command, writing the package index fails. Aiiihh. I see the problem ! 'pkg_mkIndex' loads the extension into a slave- interpreter, does the command discovery and then destroys the slave again. But tclvfs stays in memory and when trying to write the pkgIndex from the _main_ interpreter tclvfs most assuredly tries to access the deleted slave to look for its "vfs::mount" variable. This is a design problem with tclvfs ... Maybe with VFS. A future VFS FR might be to have per- interp FS registrations instead of the current global one. Workaround, bugfix: Have tclvfs register a 'DeleteHandler' for the interp it uses to hold its own state. Unregister tclvfs if that interp goes away. - login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"