|
2022-04-14
| ||
| 10:33 | • Closed ticket [ac601b59ba]: using the Thread package in a debugging build of Tcl... artifact: 7b04a4da0a user: jan.nijtmans | |
|
2022-03-22
| ||
| 00:52 | • Ticket [ac601b59ba]: 3 changes artifact: 241093ea99 user: pooryorick | |
| 00:46 | Fix [ac601b59bab7] by making only unloading a library from the process if it has an Unload functions... check-in: f0a6d62a1a user: pooryorick tags: core-8-branch | |
|
2022-03-21
| ||
| 21:50 | • New ticket [ac601b59ba] using the Thread package in a debugging build of Tcl res... artifact: a27197b534 user: pooryorick | |
using the Thread package in a debugging build of Tcl results in a segmentation fault at exit
Closed / Fixedac601b59bab79fbe0559f19f65620c28a3287517Created 5 years agoUpdated 5 years ago
Descriptionwiki2022-03-21 21:50:50
In a debugging build of core_8_branch, a script that does nothing more than
require the Thread package results in a segmentation fault when the process
exits. This is due to the fact that since commit [3b0e92b198],
LoadCleanupProc() unloads every loaded library when an interp is
deleted. Later, FinalizeThread() calls exit handlers set up by
the Thread library, but those handlers have been unloaded, causing a
segmentation fault.
pooryorickwiki2022-03-22 00:52:43
Fixed in [f0a6d62a1ade872d]. With this fix, a library is only unloaded from the process if it provides a "Unload" function. Since it requires some care to produce a library fit for dynamic unloading, it makes sense to limit unload functionality only to those libraries specifically designed to support it. Checking for the existence of an "Unload" function is a good way to differentiate between modules that can be unloaded, and modules that cannot.
jan.nijtmanswiki2022-04-14 10:33:21
Since the fix is in core-8-branch now, this ticket can be closed.
Thanks, pooryorick, for the fix!
Log in (anonymous is fine) to add a comment.