Artifacts Associated With Ticket 688fcc7082fa
Ticket change [d8e474a137] (rid 185596) by pooryorick on 2020-08-16 09:52:56:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
In Tcl built with <code>-DPURIFY</code> and <code>--enable-symbols</code>, the following script results in a segmentation fault: <code><verbatim> variable res {} namespace eval ns1 { namespace export * proc p1 {} { return success } interp alias {} [namespace current]::p2 {} [namespace current]::p1 } namespace eval ns2 { namespace import [namespace parent]::ns1::p2 } proc ondelete {oldname newname op} { variable res catch { $oldname } cres set res [string match {invalid command name*ns1::p1*} $cres] } trace add command ns2::p2 delete ondelete namespace delete ns1 </verbatim></code> The issue is that the delete trace on the imported routine deletes the namespace of the underlying routine, resulting in the deletion of both the underlying routine and the alias, but then the imported command is called, and its <code>ImportedCmdData</code> structure still holds a reference to the now-deleted Alias structure. - is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
trace on imported alias deletes alias and then calls import and triggers memory error
- type initialized to: "Bug"
Ticket change [d6a8917c2d] (rid 185601) by pooryorick on 2020-08-16 10:06:37:
- icomment:
Fixed in [037c0ff27fd5d0a2] by modifying <code>Tcl_DeleteCommandFromToken()</code> so that it deletes any imports of the routine before deleting the routine itself.
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [89922f1a21] (rid 185614) by pooryorick on 2020-08-17 10:21:42:
- login: "pooryorick"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
Ticket change [950417fab7] (rid 185753) by pooryorick on 2020-08-29 09:03:37:
- closedate changed to: "2459090.87751332"
- closer changed to: "pooryorick"
- login: "pooryorick"
- mimetype: "text/plain"
- status changed to: "Closed"
Ticket change [c39fd56136] (rid 194398) by pooryorick on 2021-05-17 21:35:32:
- closedate changed to: "2459352.39968116"
- icomment:
Fix applied to core-8-6-branch in [e45d054ba46ee5c2].
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
Ticket change [44c7f28a54] (rid 194402) by jan.nijtmans on 2021-05-18 08:47:19:
- assignee changed to: "pooryorick"
- closer changed to: "nobody"
- icomment:
Re-opening, because this fix broke the build: [https://github.com/tcltk/tcl/actions/runs/852459210]
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "None"
- status changed to: "Open"
Ticket change [c9b3384c3c] (rid 194418) by pooryorick on 2021-05-18 14:30:25:
- icomment: "Fixed again in [3b0e92b198b86975]."
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
Ticket change [39f066f591] (rid 194419) by jan.nijtmans on 2021-05-18 15:10:26:
- icomment:
This - indeed - looks OK now, but it's only applied to 8.6 yet. Will 8.7 and 9.0 follow soon? Then it can be closed.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [6399055756] (rid 194478) by jan.nijtmans on 2021-05-20 15:53:22:
- icomment:
@pooryorick: Noting that commit [3b0e92b198b86975] was on core-8-branch, is this bug now fixed on all branches?
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [4a21a16411] (rid 194997) by pooryorick on 2021-06-21 21:36:11:
- icomment:
This fix was committed to core-8-branch in [037c0ff27fd5d0a2] and also made its way to trunk via merge of core-8-branch. [3b0e92b198b86975] is unrelated and shouldn't have been noted in this report.
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [fccf1a8427] (rid 194998) by pooryorick on 2021-06-21 21:36:36:
- closedate changed to: "2459387.40041782"
- closer changed to: "pooryorick"
- login: "pooryorick"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"