Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: de195c70ccee3e2b9cda9313a8d370cc664565f31858a78f6dc09ec1df79be39
Ticket: 29e8848eb9766b81413989ad8125b0c22d1d2c7e
calling an imported alias in a deletion trace on the alias causes Tcl to cycle on routine resolution
User & Date: pooryorick on 2020-08-10 19:56:27
Changes

  1. icomment:
    Yes, I created the new <code>CMD_DEAD</code> flag and then inadvertently used
    the <code>CMD_IS_DELETED</code> instead.  Fixed in [68a1f5598fe5b281].  I think
    the new flag is warranted because the <code>Command</code> structure includes a
    <code>refCount</code> flag, implying that is is meant to be shared and that
    there should be a way for something holding it to know whether it is still
    valid.  Maybe instead of the new flag, <code>Tcl_DeleteCommandFromToken </code>
    could increment the <code>cmdEpoch</code>.  That might be a little more costly
    to evaluate in <code>EvalObjvCore</code> though.
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"