Artifacts Associated With Ticket 731778ffffffffffffffffffffffffffffffffff
Ticket change [4e7e922021] (rid 125646) by nobody on 2003-05-03 10:08:29:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "None"
- title initialized to: "leaking critical sections..."
- type initialized to: "Bug"
Ticket change [6cb8c14c2d] (rid 128566) by mistachkin on 2003-05-03 17:11:10:
- 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.
- login: "mistachkin"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "mistachkin"
- icomment:
Ticket change [f3fa7c4ae9] (rid 129813) by kennykb on 2003-05-06 18:39:00:
- subsystem changed to: "49. Threading"
Ticket change [1255b4b284] (rid 95287) by andreas_kupries on 2003-05-07 06:08:32:
- assignee changed to: "hobbs"
Ticket change [bcbcc4a6aa] (rid 101803) by mistachkin on 2003-05-10 15:36:02:
- 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.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [aa0949773a] (rid 99253) by hobbs on 2003-07-17 06:25:27:
- assignee changed to: "mistachkin"
- icomment:
Logged In: YES user_id=72656 any update on a patch for these?
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
Ticket change [9c09349b6a] (rid 111214) by dgp on 2003-11-13 08:29:58:
- foundin changed to: "obsolete: 8.4.5"
Ticket change [c50f3c98fa] (rid 111930) by mistachkin on 2004-06-24 15:14:23:
- assignee changed to: "davygrvy"
- 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?
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
Ticket change [0cc8566dbe] (rid 114237) by mistachkin on 2004-06-24 15:53:21:
- 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."
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [d6105570c9] (rid 123741) by davygrvy on 2004-06-24 16:39:59:
- 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?
- login: "davygrvy"
- mimetype: "text/plain"
- resolution changed to: "Works For Me"
- username: "davygrvy"
- icomment:
Ticket change [96aa94da71] (rid 106362) by davygrvy on 2004-06-25 02:26:38:
- 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? - login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [4f12b97380] (rid 125760) by davygrvy on 2004-10-27 03:48:44:
- priority changed to: "4"
Ticket change [5340742872] (rid 93726) by davygrvy on 2004-10-28 03:57:10:
- closedate changed to: "2004-10-27T20:57:10"
- closer changed to: "davygrvy"
- icomment:
Logged In: YES user_id=7549 committed to HEAD.
- login: "davygrvy"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "davygrvy"