Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 87dbac1e8c70d62ff73ad048158c5e8a446bbd4d
Ticket: 1437595fffffffffffffffffffffffffffffffff
WinSock cores/hangs on thread or app exit
User & Date: vasiljevic on 2006-02-23 18:19:44
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    There is a sequence problem in the way how the 
    win socket/pipe subsystem is teared down. The generic
    code which handles the finalization invokes thread
    exit handlers first, then finalizes IO subsystem.
    Unfortunately, the finalization of the IO subsystem
    may access data which is gargabe-collected by the 
    therad exit handler. In such cases, the application
    will either hang or core.
    
    The attached patch works-arround this by moving the
    functionality of the thread-exit handler into a 
    special TclpFinalizeSockets() call. This call is now
    part of the generic TclFinalizeIOSubsystem.
    
    This change is no-op for Unix. It affects Windows
    (win/) and old Mac-9 (mac/) code bases. 
    
    
    
    
  4. foundin changed to: "obsolete: 8.4.12"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vasiljevic"
  9. subsystem changed to: "27. Channel Types"
  10. title changed to: "WinSock cores/hangs on thread or app exit"
  11. type changed to: "Bug"