Artifacts Associated With Ticket 651139ffffffffff
Ticket change [1594dbfb95] (rid 124592) by nobody on 2002-12-09 22:27:55:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
While trying to get setup to duplicate that other bug (#649209), I discovered a severe logic error in the TclFinalizeThreadData function. This bug is somewhat specific to Windows and definitely specific to non-threaded builds. This is the kind of bug that could potentially be responsible for more than one open bug. TclpMasterLock is called unconditionally on tclThread.c:409, however the accompanying TclpMasterUnlock is only called if TCL_THREADS is defined. Of course, this is totally fatal to the process, because once the critical section has been acquired by one thread, it is forever orphaned and according to the Win32 API docs, the results of a thread dying while holding a critical section are "undefined". Additionally, TclpMasterUnlock is not defined when TCL_THREADS is not defined. It should always be declared, regardless of the TCL_THREADS define. Fortunately, a cursory search of the Tcl source code turned up no other instances of this particular logic error. I can create a patch for this bug if you want, but it would involve some work, since my local Tcl source is not quite in sync with CVS. JJM
- foundin initialized to: "obsolete: 8.4.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "49. Threading"
- title initialized to: "logic error in tclThread.c"
- type initialized to: "Bug"
Ticket change [218d71fe4c] (rid 130604) by andreas_kupries on 2002-12-10 05:31:08:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=75003 Also for David G. possibly.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
Ticket change [6dd1aecabd] (rid 128770) by hobbs on 2002-12-10 07:32:21:
- closedate changed to: "2002-12-10T00:32:21"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 This required also that TclpMasterUnlock was not conditional to TCL_THREADS in tclWinThrd.c.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "hobbs"
Ticket change [614b987e34] (rid 92216) by hobbs on 2002-12-10 11:16:05:
- closedate changed to: "2002-12-10T04:16:05"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 patch against 8.3.5 for reference attached. patch commited for 8.3.5+ / 8.4.1+.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
Add attachment "tclmasterunlock-651139.diff" [02c8fa6a6b] (rid 119710) by hobbs on 2002-12-10 11:16:06.
Ticket change [0359cbde33] (rid 119814) by hobbs on 2002-12-10 11:16:06:
- icomment:
File Added - 37243: tclmasterunlock-651139.diff
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment: