Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6a2f1902f856e276ffa44664da9426817441b6fb
Ticket: 3111059fffffffffffffffffffffffffffffffff
coro+proc+ns deadlock
User & Date: ferrieux on 2010-11-18 07:03:29
Changes

  1. icomment:
    As a confirmation, the following doesn't leak:
    
    proc gbar {} yield
    while 1 {
       namespace eval foo {
         coroutine coro ::gbar
         namespace delete ::foo
       }
    }
    
    So, the key is the proc belonging to the NS, not the coro resume command. The leak is thus a consequence of the global delayed-NS-teardown policy. The fix, as Colin mentions on the chat, is probably to insist on applying the coro special case (sync teardown) in that case.
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"