Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4ef0eefade013cadbec270d0ce59d6f8130b11ef
Ticket: 3545365fffffffffffffffffffffffffffffffff
Crash in io-29.33b (no implicit flush of nonblocking on exit
User & Date: twylite on 2012-07-23 19:37:01
Changes

  1. icomment:
    Tcl_Close() doesn't CheckForDeadChannel(), nor do other internals in tclIO.c that call closeProc or close2Proc.  If one place does, then all of them should (or we'll just see this bug pop up again in another form).
    
    Would it not be safer to leave instanceData untouched, and let PipeClose2Proc (or other platform-specific close) give a "already closed" error, rather than risk a NULL pointer dereference?
    
    
    
  2. login: "twylite"
  3. mimetype: "text/plain"
  4. username: "twylite"