Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 74ca5f065cf33defa8a2de12939ac991bdf38471
Ticket: 219236ffffffffffffffffffffffffffffffffff
Tcl_EvalEx() passes the wrong command size to EvalObjv()
User & Date: nobody on 2000-10-26 05:03:58
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4729 Bug
    Version: 8.3
    SubmitDate: '2000-03-30'
    LastModified: '2000-04-03'
    Severity: MED
    Status: Assigned
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Solaris
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Yu Zhang
    
    CVS:
    * RCS: @(#) $Id: tclParse.c,v 1.13 1999/11/10 02:51:57 hobbs Exp $
    
    ObservedBehavior:
    I tried to integrate Don Libes tcl-debugger from expect5.31 with Tcl8.3.0 and found that all debugger functionality works except for breakpoint by pattern match. 
    The reason of this problem is: Tcl_EvalEx() passes bytesLeft instead of parse.commandSize as the size of the command just parsed to EvalObjv(). EvalObjv() will call trace functions, including the debugger_trap() function, passing them the command string. Due to the wrong command size, the command string debugger_trap() gets is wrong, causing bogus breakpoints.
    
    
    
    tclParse.c:1393 is the line in question.  The change passes the
    test suites, but maybe only because it only affects C command traces,
    in TclX and Expect.
    
    Looking at the structure of Tcl_Parse, I would think that the
    correct value is actually
        parse.commandStart + parse.commandSize
    because you have to account for possible comments. 
    -- 03/30/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "10. Objects"
  10. title changed to:
    Tcl_EvalEx() passes the wrong command size to EvalObjv()
    
  11. type changed to: "Bug"