Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cc65b7873ff9eeb1ad5eba0e915a1b79bd857f69
Ticket: 730244ffffffffffffffffffffffffffffffffff
missing refCount management in Tcl_EvalObjv
User & Date: dgp on 2003-04-30 15:34:56
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    This script panics:
    
    interp create i
    proc test args {puts $args}
    trace add execution test enter {interp alias i alias {} ;#}
    interp alias i alias {} test this
    i eval alias
    
    The problem is that TEOVI does not use
    refCounting to protect the elements of
    the objv array.  So if a trace frees an
    argument value, that value is not available
    for command procedure execution.
    
    Most TEOVI callers manage refCounts,
    but Tcl_EvalObjv does not; thus interp alias
    calls do not.
    
    A fix is to add objv refCounting to Tcl_EvalObjv,
    at an unknown performance cost.
    
    Thoughts?
    
  4. foundin changed to: "obsolete: 8.4.2"
  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: "missing refCount management in Tcl_EvalObjv"
  11. type changed to: "Bug"