Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 47c5be4fe435c63cd733c0ae4258766397e5b8be
Ticket: 88aef05cda36aca8233aaeaa1d8b41cb4b188192
Script level application bug in refchan causes Tcl crash
User & Date: dgp on 2014-04-02 02:40:10
Changes

  1. icomment:
    This one is pretty ugly.
    
    The problem arises because the reflected
    channel builds the command to be evaluated
    in an array within the reflected channel
    data structure, rcPtr->argv .  This is presumably
    so that the cost of allocating a new eval array
    doesn't have to be paid each time.
    
    The problem is if there is one argv array per
    reflected channel, then there can only be one
    InvokeTclMethod() call operating on each
    reflected channel at a time.  As soon as you 
    try to do two concurrently -- such as when 
    one nests in the other -- they will stomp on
    each other's argument words, and crashing is
    about the nicest thing to expect.
    
  2. login: "dgp"
  3. mimetype: "text/plain"