Artifacts Associated With Ticket ccc448a6bfd59cbd
Ticket change [179d8e33ae] (rid 195560) by pooryorick on 2021-09-01 21:32:18:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
When passed as a file to tclsh, the following script, with <code>eva</code> missing the final <code>l</code>, results in a segmentation fault: <code><verbatim> namespace eva n1 {error hello} </verbatim></code> An alternate script that produces the same result is: <code><verbatim> namespace eval n1 { namespace ensemble create namespace export * proc p1 args {error hello} } namespace eva n1 {::n1 p1} </verbatim></code> The reason is that <code>TclSpellFix</code> sets <code>NULL</code> as the first object pointer in <code>iPtr->ensembleRewrite.sourceObjs</code> and then later, in <code>NRNamespaceEvalCmd</code>, <code>TclFetchEnsembleRoot</code> copies a pointer to this array into <code>framePtr->objv</code>. Next, when an error occurs, <code>TclLogCommandInfo</code> accesses this array and trips on the <code>NULL</code>, causing the segmentation fault. - 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: "21. [namespace]"
- title initialized to:
namespace ensemble subcommand name prefix matching and a subsequent error results in a segmentation fault
- type initialized to: "Bug"
Ticket change [bf612c0f9a] (rid 195569) by pooryorick on 2021-09-01 23:14:19:
- icomment: "Fixed in commit [a2e801a3d6c1675b]."
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
Ticket change [b74f7e9b31] (rid 195570) by jan.nijtmans on 2021-09-02 09:21:02:
- assignee changed to: "pooryorick"
- icomment:
Is this fix going to be backported to 8.7 -> 8.6 too?
- login: "jan.nijtmans"
- mimetype: "text/plain"
Ticket change [8ffcf076d2] (rid 195572) by jan.nijtmans on 2021-09-02 10:07:56:
- icomment:
Windows build fails due to the the following warning, which is threated as an error in debug builds: <pre> D:\a\tcl\tcl\win\..\generic\tclEnsemble.c(2247): error C2220: the following warning is treated as an error D:\a\tcl\tcl\win\..\generic\tclEnsemble.c(2247): warning C4047: '=': 'Tcl_Obj *const *' differs in levels of indirection from 'Tcl_Obj *const ' </pre>
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [43fd49a9cc] (rid 195602) by pooryorick on 2021-09-02 21:17:53:
- icomment: "Warning silenced in [d49a1b03291b4cde]."
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
Ticket change [fc4ca7cfba] (rid 195619) by pooryorick on 2021-09-02 22:43:11:
- icomment: "Fix merged to core-8-branch in [bd393417060a158f]."
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
Ticket change [1933487875] (rid 195625) by pooryorick on 2021-09-02 23:05:08:
- icomment:
Fix merged to core-8-6-branch in [da5128637598b0f1].
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [4c3e04761d] (rid 195629) by jan.nijtmans on 2021-09-03 07:54:53:
- closedate changed to: "2459460.82978179"
- closer changed to: "jan.nijtmans"
- icomment: "Thanks! Closing"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Closed"