Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a1bd3d0aac3ab163ffdb81703d4e4730d80d8275
Ticket: 999084ffffffffffffffffffffffffffffffffff
re-entrant Tcl_Finalize()
User & Date: dgp on 2004-07-28 00:05:09
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    This patch moves the ExitHandler calls
    of Tcl_Finalize() outside of the
    TclpInitLock-ed region.
    
    This will avoid deadlocks like the one
    seen in Tk Bug 714956, when the
    execution of a registered ExitHandler
    causes another, nested, call to
    Tcl_Finalize().
    
    This patch should be safe, because
    the exitHandler loop is careful to always
    pull the next handler to run from the
    beginning of the loop, and discard each
    as it is run, terminating only when the
    list is empty.
    
    The rest of Tcl_Finalize(), protected
    by a TclpInitLock region, should, we
    hope, be prevented from making
    a nested call back into Tcl_Finalize().
    
    Please review.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "02. Event Loops"
  10. title changed to: "re-entrant Tcl_Finalize()"
  11. type changed to: "Patch"