Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: eb0bcf2ca734e2a08429c7598e594ca605b9d6f6
Ticket: 1987821fffffffffffffffffffffffffffffffff
leak in ioCmd.test
User & Date: andreas_kupries on 2008-06-10 08:58:07
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    Originator: NO
    
    That is weird. The object in line 1426 of tclIORChan.c is 'offObj', which immediately becomes the 'argOneObj' argument of 'InvokeTclMethod'. This function increments the ref-count in line 2157 of the same file, and decrements it in line 2228, same file again. The baseObj allocated after 'offObj' doesn't seem to be leaked. It goes through the same path, with code incr/decr in lines 2161 and 2230. This Tcl_Obj does not seem to leak. At least you did not say anything about that.
    
    It is not clear to me how one of the two leaks, but not the other.
    
    Can you tell me how you invoked valgrind, your test script, and so on to help me in investigating this ?
    
    Note that the new tclIORTrans.c has an identical InvokeTclMethod which may be susceptible as well, depending.
    
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"