Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_StackChannel doesn't permit NULL interp

Closed / Fixed1380662fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-12-14 18:51:12
Tcl_StackChannel() takes an interp
argument as a place to write error
messages, but doesn't follow the
usual practice of accepting a NULL
value.

This need for non-NULL interp can
cascade up, forcing Tcl_FSOpenFileChannel()
to need a non-NULL interp as well.
dgpplain2005-12-15 01:59:13
Logged In: YES 
user_id=80530


I believe the attached
patch corrects the problem.
dgpplain2005-12-15 01:59:15
File Added - 159873: 1380662.patch
dgpplain2005-12-15 02:32:30
Logged In: YES 
user_id=80530


Tcl_Close() and Tcl_UnstackChannel()
have similar issue, but appear trickier
to untangle.
dgpplain2005-12-15 03:21:32
File Added - 159875: 1380662.patch

Logged In: YES 
user_id=80530


attached patch takes care
of everything I could find.
dgpplain2005-12-15 03:21:33
File Deleted - 159873:
dgpplain2005-12-19 23:13:40
Logged In: YES 
user_id=80530


good points from dkf:

avoid Tcl_Panic() if possible

TclChanCaughtErrorBypass()
can't seem to make up its
mind whether it can handle
NULL interp, it should be made
to.
dgpplain2006-02-10 03:42:48
Logged In: YES 
user_id=80530


Revised patch ready for review.
dgpplain2006-02-10 03:42:49
File Deleted - 159875: 



File Added - 166829: 1380662.patch
dgpplain2006-02-15 22:44:46
Logged In: YES 
user_id=80530

committed to HEAD
dgpplain2006-02-15 23:04:36
Logged In: YES 
user_id=80530


also committing this
version of the patch to
the 8-4-branch.
dgp Ticket [1380662fff]: 2 changes [History diff]2006-02-15 23:04:37
dgpplain2006-02-15 23:04:49
File Added - 167560: 1380662-84.patch
Log in (anonymous is fine) to add a comment.

Attachments: