Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b4f65a3e6a9a6957ddde84303564eb3559732b67
Ticket: 1958930fffffffffffffffffffffffffffffffff
exec with pipes and fileevents leaks ~2Mb everytime
User & Date: ferrieux on 2008-05-07 17:06:30
Changes

  1. icomment:
    Logged In: YES 
    user_id=496139
    Originator: NO
    
    Mark,
    
    While I'm very happy for you since you can proceed, there's one thing I don't quite grasp here.
    You mentioned instrumenting tclWinPipe, which to my knowledge implements the core Tcl "command pipelines", that is, the channel type of [open |cmd r+]. This type uses complicated machinery including ancillary threads and Windows Events to implement fileevents, because up to Win9x/Me it was the only way.
    
    Now your offending script instead uses TclX's [pipe] command, which yields two channels of type "file", which in Windows encapsulates only the vanilla file handle of Win32. As it turns out, those vanilla handles became waitable with WinNT (Thanks to Jeff and David for digging out these historical facts), so now TclX's [pipe] are fileevent-ready, which was not the case with pre-NT Windows (of course unix has been OK all the time ;-).
    
    Given this dichotomy, I don't understand where tclWinPipe, its extra threads, and their brutal termination, come into play...  Any idea ?
    
    
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"