Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Crash in TclIO.c

Closed / Fixed986289ffffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-07-06 23:40:17
Tested in Activestate 8.4.6 and 8.5.0.0b2 for Windows

Attempting to close a file opened for writing in a
virtual filesystem causes a crash.  See:

http://sourceforge.net/tracker/index.php?func=detail&aid=984388&group_id=32692&atid=406308
dkf Ticket [986289ffff]: 4 changes [History diff]2004-07-07 15:42:28
andreas_kupriesplain2004-07-08 23:43:20
Logged In: YES 
user_id=75003

For the record, the referenced bug is in the tracker for
Tclvfs. All information (discussion, scripts to reproduce,
...) can be found there.
andreas_kupriesplain2004-07-16 03:47:18
Logged In: YES 
user_id=75003

The Tclvfs extensions allows calling of tcl scripts from
within the close handler of a channel. These scripts must
not invoke [close] on the same channel. Added code fixing
this (new flag, set before the handlers, relevant api
functions check the flag and reject the call. An error
message is returned, instead of the core crashing.

Committed to 8.4 and head branches.
Log in (anonymous is fine) to add a comment.