Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fbdf2f4487fe2e16117efe6d9121909e49865646
Ticket: 2724403fffffffffffffffffffffffffffffffff
Delete NS with active coro -> leak
User & Date: msofer on 2009-05-02 13:03:32
Changes

  1. icomment:
    The problem seems to be that TclTeardownNamespace is never called on ::y
    The namespace is active when the call to Tcl_DeleteNamespace is called on it, so it is only marked as NS_DYING|NS_KILLED, and is supposed to be torn down (among others, deleting all its commands) when the CallFrame is popped. But the coro's frame is never dropped in this case, so the ns is not torn down and the command ::y::run is never deleted. 
    Nasty. 
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"