Skip to content
Tcl Source Code History Of Ticket 999084ffffffffff
Login

History Of Ticket 999084ffffffffff

Artifacts Associated With Ticket 999084ffffffffff

  1. Ticket change [a1bd3d0aac] (rid 109779) by dgp on 2004-07-28 00:05:09:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "02. Event Loops"
    10. title initialized to: "re-entrant Tcl_Finalize()"
    11. type initialized to: "Patch"
  2. Add attachment "finalize.patch" [332e2f4cef] (rid 106538) by dgp on 2004-07-28 07:05:09.

  3. Ticket change [de1bcb4308] (rid 114788) by dgp on 2004-07-28 07:05:09:

    1. icomment:
      
      
      File Added - 95491: finalize.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [e29b34795d] (rid 87659) by dgp on 2004-07-28 21:25:42:

    1. assignee changed to: "vasiljevic"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      passing on to someone I think
      knows Tcl_Finalize() better.
      
      This patch fixes a bug, but does
      it cause any new trouble?
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  5. Ticket change [52e546288c] (rid 126399) by vasiljevic on 2004-07-29 20:04:22:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      I see no obvious problems.  
      A side-effect, though, is that, when Tcl_Finalize is called 
      simultaneously by two threads, both of them will execute 
      exit callbacks. Each exit callback will be run once, but you  
      never know in which thread this may happen. 
      Strictly speaking, this should pose no problems, provided that 
      exit callbacks are really app-wide and do not assume any 
      thread local storage ownerships and such. Actually, they should 
      be designed as such in the first place. 
        
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  6. Ticket change [6472074c5d] (rid 92775) by dgp on 2004-07-30 22:16:28:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2004-07-30T15:16:28"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Thanks!  Applying for 8.4.8 and 8.5.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Accepted"
    8. status changed to: "Closed"
    9. username: "dgp"