Artifacts Associated With Ticket 2282547fff
Ticket change [67d2370919] (rid 102958) by nijtmans on 2008-11-14 09:04:31:
- assignee initialized to: "nijtmans"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I cannot imagine that anyone would require that, but still it is a current problem. Fixing Bugs [2059262] and [2269431] leads to the following conflict. When unloading a shared library wen Tcl exists we have two choices. We can leave it to the OS, as Tcl 8.4 did, or we can force unloading at TclFinalize time, as Tcl 8.5 did. The method in Tcl 8.4 had the disadvantage that shared libraries cannot be loaded from VFS, that's why it was changed in Tcl 8.5. However, this introduced Bug [2059262]. Fixing this introduced Bug [2269431]. Both bugs are fixed now, simply by checking if the library comes from the native file system not. If so, we let the OS handle the unloading, otherwise we force unloading at TclFinalize time. Libraries which have an UnLoad proc use the second method as well. However, I think there is a way out of this, therefore this new (lower-priority) artifact.
- foundin initialized to: "obsolete: 8.6a4"
- is_private initialized to: "0"
- priority initialized to: "3 Low"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nijtmans"
- subsystem initialized to: "40. Dynamic Loading"
- title initialized to:
load of ill-behaved shared library from VFS: core dump
- type initialized to: "Bug"
Ticket change [839ff6aea5] (rid 137003) by jan.nijtmans on 2014-02-21 19:08:51:
- assignee changed to: "jan.nijtmans"
Ticket change [2e99055a2e] (rid 137017) by jan.nijtmans on 2014-02-21 19:12:30:
- submitter changed to: "jan.nijtmans"
Ticket change [acc54c5315] (rid 257784) by serhiy.storchaka on 2026-10-12 18:37:33:
- icomment:
Since [80aa157f45] (TIP #357), <code>TclFinalizeLoad()</code> unloads all non-static libraries, from VFS or not, when Tcl is built with <code>TCL_UNLOAD_DLLS</code> (always on Windows, configure option <code>--enable-dll-unloading</code> on Unix). Ill-behaved libraries require building with <code>--disable-dll-unloading</code>. On Unix the temporary copy of a library loaded from VFS is deleted right after loading, so it does not need to be unloaded.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment: