Overview
| Artifact ID: | 9a6ec0f1679e2d5e6d795ebacd84a255cbb0ad4b |
|---|---|
| Ticket: | 2001201fffffffffffffffffffffffffffffffff
Tcl_Exit() shouldn't call the full Tcl_Finalize() path |
| User & Date: | georgeps on 2008-06-23 20:53:24 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
Tcl_Exit() often results in segfaults on exit, when more than 1 thread is busy at the time of a Tcl_Exit(). The problem is that Tcl_Finalize cleans up the state used by active threads. This problem has existed for a long time. The comments in Tcl_Finalize indicate the expectation of 1 thread "there really should only be one thread alive at this moment." I propose this possible solution: 1. move the invoking in Tcl_Finalize of Tcl exit handlers into TclInvokeExitHandlers(); 2. Tcl_Finalize can call TclInvokeExitHandlers() 3. Tcl_Exit calls TclInvokeExitHandlers() instead of Tcl_Finalize(). Tcl_Finalize will still work for those that wish to use it, and Tcl_Exit will work in the multiple active threads case.
- foundin changed to: "obsolete: 8.6a0"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "georgeps"
- subsystem changed to: "49. Threading"
- title changed to:
Tcl_Exit() shouldn't call the full Tcl_Finalize() path
- type changed to: "Bug"