Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f9b2bbeed39757e31206601f88aa7e250d17e432
Ticket: 1458266fffffffffffffffffffffffffffffffff
cmd execution traces interfere with step execution traces
User & Date: eriklns on 2006-04-01 18:09:46
Changes

  1. icomment:
    Logged In: YES 
    user_id=113903
    
    Don,
    
    I've been thinking about your question "what should the
    behaviour of the test script be and why?". 
    I wil get to that matter shortly, but first off, I want to
    emphasize that (in my view) an answer to that question is
    irrelevant for the decision as to whether the observed
    behaviour is faulty. 
    
    Do you agree on that?
    
    As to "what should the behaviour of the test script be and
    why?: Only if the following statement is true, I can give
    you an answer:
    
    statement
    =========
    "While any step trace handler is executing, further
    invocations of Tcl commands should never trigger any step
    traces again (i.e. regardless the command or the trace
    handler)."
    
    So, can you (or another member of the core team) tell
    whether this statement is true?
    
    If you can't tell, or if it is not true, then I feel we're
    heading into a minefield of complicating cases that exist in
    the space spanned up by:
    - traces on different commands (regardless trace handler)
    - different trace handlers (regardless command that triggers
    them)
    - different types of step trace (enterstep/leavestep
    - step traces vs. (non-step) command traces
    - did I forget something ...?
    
    Personally, I'm not prepared to say anything about how
    traces should behave in degenerate cases in remote corners
    of that space, without fully understanding the design
    specification of the tracing mechanism. The manual page of
    the [trace] command is explicit about the behaviour in one
    specific complicating case:
    
    if a trace handler calls the command that triggered the
    trace in the first place, that command will not trigger a
    trace again.
    
    The issue that I reported appears to violate precisely that
    one case about which the manual page is explicit.
    
    Sincerely,
    
    Erik Leunissen
    ==============
    
    
    
  2. login: "eriklns"
  3. mimetype: "text/plain"
  4. username: "eriklns"