Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f5e24f6424bb119f34cd95301975370cf9f24dbd
Ticket: 3532959fffffffffffffffffffffffffffffffff
free lambda after interp -> crash
User & Date: andreas_kupries on 2012-06-09 00:47:28
Changes

  1. icomment:
    tl;dr (Summary of chat):
    We have a branch in the repository where a fix is worked on.
    
    Discussion on why the use of pointer keyed hashtables hung
            on the Interp structure and not by extending relevant structures
    
            => Forbidden from changing the public API (public structures).
    => Some structures which are officially internal (in tclInt.h)
       are semi-public, including Proc.
    => User: tclcompiler, tbcload, the former actually allocates
       Proc structures on its own. (Suspected, dgp verified).
    
    Possible change: Move the hashtables out of Interp into per-thread
    data storage.
    
    Another possibility: Preserve/Release the interp over lifetime of
    the Proc structure. jenglish advises against due to O(n) in the P/R
    implementation.
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"