Skip to content
Tcl Source Code History Of Ticket 1078024
Login

History Of Ticket 1078024

Artifacts Associated With Ticket 1078024

  1. Ticket change [b454f25052] (rid 125012) by hobbs on 2004-12-03 00:08:10:

    1. assignee initialized to: "davygrvy"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      There is an issue with finalization of the threaded
      Windows build that can appear in winDde.test and
      occasionally winPipe.test.  Kevin narrowed it down to
      this series of events:
      
      * Tcl_Finalize is called from Tcl_Exit and runs all the
      exit handlers.
      
      * After all the exit handlers are run, it winds up
      calling Tcl_FinalizeThread.
      
      * From there we get into Tcl_FinalizeIOSubsystem, and
      thence to Tcl_Close
      
      * We have an open pipe at this point, so we get into
      PipeClose2Proc from tclWinPipe.c.
      
      * This calls Tcl_CleanupChildren -> Tcl_WaitPid
      
      * and Tcl_WaitPid finds that the pipe subsystem isn't
      initialized - because its exit handler has already run,
      so calls PipeInit, re-establishing the exit handler.
      
      * Now we shut down the zippy memory allocator - with
      the exit handler still on the list.
      
      * The last-ditch Tcl_Finalize in DLL_PROCESS_DETACH
      finds the exit handler and runs it - and then frees the
      memory.
      
      * Which is now in use as a CRITICAL_SECTION down in the
      C runtime... boom.
      
      * I believe that it's a threaded problem only, and the
      exit handler is being created in Windows-specific code.
      
      * I don't know if there's similar code in Unix.
      
      This is perhaps related to 990457 (this is unix
      specific, but about threaded exit behavior)
      
      
    4. foundin initialized to: "obsolete: 8.4.8"
    5. priority initialized to: "7 High"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "hobbs"
    9. subsystem initialized to: "49. Threading"
    10. title initialized to:
      threaded exit can reinit PipeInit on exit and crash
      
    11. type initialized to: "Bug"
  2. Ticket change [8ea053f4eb] (rid 120144) by mistachkin on 2005-03-04 14:29:40:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      Argle.  I bet this is causing a number of issues I've been
      seeing on Win32.  
      
      Unfortunately, I do not know enough about how the IO
      subsystem is supposed to work.
      
      This bug is only loosely related to bug 990457, if at all.
      This bug is almost certainly related to bug 912571.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  3. Ticket change [1b622e5e1c] (rid 123139) by dgp on 2005-11-02 00:11:51:

    1. assignee changed to: "kennykb"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Have the finalization fixes since
      the last comment resolved this one?
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  4. Ticket change [2ba9de6b29] (rid 118780) by kennykb on 2005-11-04 23:01:38:

    1. status changed to: "Closed"
  5. Ticket change [c67bb93b01] (rid 121778) by kennykb on 2005-11-04 23:01:39:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      I would presume that it's fixed by my commits of 2005-06-22.
      The controversial panic in Tcl_Finalize to guard against
      creating
      an exit handler after exit handlers have already run should
      protect us against having this problem recur.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"
    5. username: "kennykb"
  6. Ticket change [54b4811f1e] (rid 93991) by kennykb on 2005-11-04 23:01:40:

    1. closedate changed to: "2005-11-04T16:01:40"
    2. closer changed to: "kennykb"