Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7a9537f4d6786ef1ca3272b725ea056eea35bb1a
Ticket: 88aef05cda36aca8233aaeaa1d8b41cb4b188192
Script level application bug in refchan causes Tcl crash
User & Date: aku on 2014-04-02 16:17:48
Changes

  1. icomment:
    > This is presumably so that the cost of allocating
    > a new eval array doesn't have to be paid each time.
    
    I am very sure that this is what is was thinking at the time.
    
    > can only be InvokeTclMethod() call operating on each
    > reflected channel at a time.
    
    Yes. Also something I was definitely _not_ seeing when writing the code.
    
    So, possible solutions ...
    
    (1) Dynamically (de)allocate the damn array in each call of InvokeTclMethod()
    (2) Flatly forbid the recursive entry of InvokeTclMethod().
    
    In terms of implementation both possibilities seem to be equivalent in difficulty, i.e. while not trivial, at least easy.
    
    In light of other data structures needing to be preserved for such calls, as demonstrated by related bug reports I currently trend towards preferring (2).
    
  2. login: "aku"
  3. mimetype: "text/plain"