Overview
| Artifact ID: | 9492997e1bbda2835d9450ed1cc23f71a3ac18bc |
|---|---|
| Ticket: | 2931244fffffffffffffffffffffffffffffffff
TCL 8.5.8 crashes on exit |
| User & Date: | ferrieux on 2010-01-13 22:57:02 |
Changes
- icomment:
OK so you destructor gets called by dlclose(), hence by TclFinalizeLoad, which is very late in the Tcl_Finalize sequence, notably *after* TclFinalizeObjects. Hence you shouldn't do any Tcl_Obj freeing, nor anything Tcl-oriented for that matter, in the destructor. Just do things that are related to (1) the outside side-effects of your extensions (created files or shared memory segments mainly), and (2) optionally private mallocs, and only if you want to use a vlagrind-like tool to hunt leaks. All the rest is guaranteed to be properly nuked by the normal finalization process.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"