Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ded31af0d332cd8b10a57eb0f9ce86ed093cf253
Ticket: 1904907fffffffffffffffffffffffffffffffff
Fix [chan create]/return dict key finalization order issues
User & Date: andreas_kupries on 2008-03-07 03:23:34
Changes

  1. icomment:
    
    
    File Added - 269366: STACK.txt
    
    Logged In: YES 
    user_id=75003
    Originator: NO
    
    Using a symbol enabled tclsh I got myself a stacktrace from gdb ... Attached ...
    
    What happens is that FlushChannel (#20) invokes the driver output function, one 'ReflectOuptut' (#19), which delegates the writing to the '::vchan' via 'InvokeTclMethod' (#18), this then ends up in a call to '::vchan::write', and then it seems to compile this procedure (ProcCompileProc @ #10). And when it compiles the 'return' command of 'vchan::write' it craps out in 'TclMergeReturnOptions' (#5). This function was last changed Oct 18, 2007. The caller, 'TclCompileReturnCmd' (#6) was however changed last quite recently, Feb 28 2008, to fix a memory leak. As the crash happens on a Tcl_Obj with refCount 0 and otherwise looking already freed as well, I wonder if that change caused the problem.
    
    I will now get me some older revisions of the head and see if I can bisect the issue.
    
    File Added: STACK.txt
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"