Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5085a70c8ab71969998bb0f08a67f40cf8c08ff1
Ticket: 582522ffffffffffffffffffffffffffffffffff
aliases do not fire exec traces
User & Date: dgp on 2002-07-16 22:07:25
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    % proc print args {puts "printtrace $args"}
    % proc foo {} {puts orig_foo}
    % interp alias {} al_foo {} foo
    al_foo
    % trace add execution foo enter {print foo}
    % trace add execution al_foo enter {print al_foo}
    % foo
    printtrace foo foo enter
    orig_foo
    % al_foo
    printtrace al_foo al_foo enter
    orig_foo
    % 
    
    
    The [print foo] trace is missing.  It should
    have been fired by [al_foo].
    
    The problem seems to be that execution
    traces are performed by
    TclEvalObjvInternal() and aliases get
    evaluated by TclObjInvoke() which
    bypasses that and executes the
    command procedure directly.
    
    In combination with Bug 582506, it
    seems the correct solution may be
    to tie execution traces into the
    command procedure itself instead
    of in TclEvalObjvInternal().
    
    
    
  4. foundin changed to: "obsolete: 8.4b2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "45. Parsing and Eval"
  10. title changed to: "aliases do not fire exec traces"
  11. type changed to: "Bug"