Skip to content
Tcl Source Code History Of Ticket 731778ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 731778ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 731778ffffffffffffffffffffffffffffffffff

  1. Ticket change [4e7e922021] (rid 125646) by nobody on 2003-05-03 10:08:29:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The following critical sections are never deleted 
      (not even during process detach) via 
      DeleteCriticalSection:
      
      from tclWinThrd.c: 
      
      joinLock
      initLock
      masterLock
      
      This may not be a complete list, I have not checked 
      the rest of the Tcl/Tk source code.
      
      JJM
      
      
    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: "nobody"
    9. subsystem initialized to: "None"
    10. title initialized to: "leaking critical sections..."
    11. type initialized to: "Bug"
  2. Ticket change [6cb8c14c2d] (rid 128566) by mistachkin on 2003-05-03 17:11:10:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      This should be fixed by deleting the critical sections 
      upon process detach (when the Tcl dll is being 
      unloaded). It will probably have to be done either dead 
      last in the finalization process or darn close to it.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "mistachkin"
  3. Ticket change [f3fa7c4ae9] (rid 129813) by kennykb on 2003-05-06 18:39:00:

    1. subsystem changed to: "49. Threading"
  4. Ticket change [1255b4b284] (rid 95287) by andreas_kupries on 2003-05-07 06:08:32:

    1. assignee changed to: "hobbs"
  5. Ticket change [bcbcc4a6aa] (rid 101803) by mistachkin on 2003-05-10 15:36:02:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      JeffH, I can help you fix this issue.  I have some ideas 
      that I would like to run by you.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  6. Ticket change [aa0949773a] (rid 99253) by hobbs on 2003-07-17 06:25:27:

    1. assignee changed to: "mistachkin"
    2. icomment:
      Logged In: YES 
      user_id=72656
      
      any update on a patch for these?
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. username: "hobbs"
  7. Ticket change [9c09349b6a] (rid 111214) by dgp on 2003-11-13 08:29:58:

    1. foundin changed to: "obsolete: 8.4.5"
  8. Ticket change [c50f3c98fa] (rid 111930) by mistachkin on 2004-06-24 15:14:23:

    1. assignee changed to: "davygrvy"
    2. icomment:
      Logged In: YES 
      user_id=113501
      
      
      David, I believe you have fixed this bug?  By the way, looking 
      at the code in TclFinalizeLock, are you sure it's safe to delete 
      a critical section that you are currently holding?
      
      
      
    3. login: "mistachkin"
    4. mimetype: "text/plain"
    5. username: "mistachkin"
  9. Ticket change [0cc8566dbe] (rid 114237) by mistachkin on 2004-06-24 15:53:21:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      from MSDN: 
      
      DeleteCriticalSection
      
      "... If a critical section is deleted while it is still owned, the 
      state of the threads waiting for ownership of the deleted 
      critical section is undefined."
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  10. Ticket change [d6105570c9] (rid 123741) by davygrvy on 2004-06-24 16:39:59:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      The change went into the HEAD on 2004-04-22 and the 8.4 
      branch on 2004-05-05
      
      If deleting an owned CRITICAL_SECTION causes any bad stuff 
      we can change it.  I haven't found any bad results from it.  
      Right after this we're a dozen or so calls from hitting 
      ExitProcess or DllMain exiting anyways.  I'm not too worried 
      given that I can't find any bad stuff that it causes.
      
      I could add a Tcl_MutexUnlock(initLock); before 
      TclFinalizeLock if you want?
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. resolution changed to: "Works For Me"
    5. username: "davygrvy"
  11. Ticket change [96aa94da71] (rid 106362) by davygrvy on 2004-06-25 02:26:38:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      How's this?
      
      RCS file: /cvsroot/tcl/tcl/win/tclWinThrd.c,v
      retrieving revision 1.31
      diff -c -r1.31 tclWinThrd.c
      *** tclWinThrd.c22 Jun 2004 13:09:01 -00001.31
      --- tclWinThrd.c24 Jun 2004 19:24:27 -0000
      ***************
      *** 435,441 ****
        allocOnce = 0;
            }
        #endif
      !     /* Destroy the critical section that we are holding. */
            DeleteCriticalSection(&initLock);
        }
        
      --- 435,442 ----
        allocOnce = 0;
            }
        #endif
      !     LeaveCriticalSection(&initLock);
      !     /* Destroy the critical section that we were holding. */
            DeleteCriticalSection(&initLock);
        }
      
      Just adding a leave before the destroy?
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  12. Ticket change [4f12b97380] (rid 125760) by davygrvy on 2004-10-27 03:48:44:

    1. priority changed to: "4"
  13. Ticket change [5340742872] (rid 93726) by davygrvy on 2004-10-28 03:57:10:

    1. closedate changed to: "2004-10-27T20:57:10"
    2. closer changed to: "davygrvy"
    3. icomment:
      Logged In: YES 
      user_id=7549
      
      committed to HEAD.
      
      
    4. login: "davygrvy"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "davygrvy"