Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[namespace path] and NS_DEAD

Closed / Fixed1352734fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-11-10 01:28:14
A namespace in the path can be: NS_DEAD: it cannot be
used, but is not freed because there is some nsNameType
obj pointing to it.

The test namespace-51.13 (marked knownbug) causes a
panic when a CallFrame for an NS_DEAD namespace is
pushed. The test carries a comment that it "fails right
now due to unrelated bug", which is not identified. 

I think this might really be a bug in the [namespace
path] implementation. First suspect is in the command
resolution code, specifically in Tcl_FindCommand:
shouldn't the flag NS_DEAD be checked in or around line
2399? There might be other places too.
msofer Pending ticket [1352734fff]. [History diff]2005-11-12 05:22:27
msoferplain2005-11-12 05:22:28
Logged In: YES 
user_id=148712

The problem lies in a cached nsNameType Tcl_Obj. Fixed in
HEAD - fix may not be all too robust (delete traces might
still break it?)
msofer Ticket [1352734fff]: 2 changes [History diff]2005-11-12 05:22:29
msofer Closed ticket [1352734fff]. [History diff]2005-11-14 07:31:32
Log in (anonymous is fine) to add a comment.