Overview
| Artifact ID: | a17d584a0570341cecc71495959d27b75673a596 |
|---|---|
| Ticket: | 597575ffffffffffffffffffffffffffffffffff
[exit] in sub-thread may crash. |
| User & Date: | georgeps on 2008-08-15 10:23:03 |
Changes
- icomment:
Logged In: YES user_id=585068 Originator: NO bug report 2001201 has a patch to fix this. "We ought to change the way the core is finalizing various subsytems. We'd need to introduce refcounts on those subsystems and do the tear down on the last-thread exit." Why would we need that to fix the Tcl_Exit problem? Why not just remove the full Tcl_Finalize from Tcl_Exit, as the patch associated with 2001201 does? I agree we need the reference count solution if we want Tcl_Finalize to work in the multiple-Tcl-thread case, which it doesn't currently, but I don't know if that's reasonable or doable when Tcl_Finalize cleans up global state for all Tcl threads, and 1 or more of the threads that are not calling Tcl_Finalize may be in unknown states. It seems simpler and more maintainable to just have threads join/exit and cleanup via Tcl_Finalize when all other threads have exited.
- login: "georgeps"
- mimetype: "text/plain"
- username: "georgeps"