Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c75b568a0e995b624803d15bbbaaf75ede0d741b2732fa209ef73defb1c10af9
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-11 17:39:05
Changes

  1. icomment:
    If the caller of <code>TclNREvalObjv</code> is expected to do its own due
    diligence, then you are right and there is no need for
    <code>TclNREvalObjv</code> to perform the checks itself.  On the other hand,
    your fix incorrectly relates the <code>TCL_EVAL_NORESOLVE</code> and
    <code>CMD_IS_DEAD</code> flags.  In [9641d70a9caa2017] I've added a new test to
    your branch that illustrates the issue:  Because it happens to take a path
    through <code>TclNRInvoke</code>, both the <code>TCL_EVAL_NORESOLVE</code> and
    and <code>CMD_IS_DEAD</code> flags are set, causing <code>EvalObjvCore</code>
    to reject the command when it should dispatch it.
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"