|
2021-09-03
| ||
| 07:54 | • Closed ticket [ccc448a6bf]: namespace ensemble subcommand name prefix matching ... artifact: 4c3e04761d user: jan.nijtmans | |
|
2021-09-02
| ||
| 23:05 | • Ticket [ccc448a6bf]: 3 changes artifact: 1933487875 user: pooryorick | |
| 23:03 | Merge fixes for [ccc448a6bfd5], namespace ensemble subcommand name prefix matching and a subsequent ... check-in: da51286375 user: pooryorick tags: core-8-6-branch | |
| 22:43 | • Ticket [ccc448a6bf] namespace ensemble subcommand name prefix matching and a su... artifact: fc4ca7cfba user: pooryorick | |
| 22:38 | Backport fixes for [ccc448a6bfd5], namespace ensemble subcommand name prefix matching and a subseque... check-in: bd39341706 user: pooryorick tags: core-8-branch | |
| 21:17 | • Ticket [ccc448a6bf] namespace ensemble subcommand name prefix matching and a su... artifact: 43fd49a9cc user: pooryorick | |
| 21:14 | Silence warning in fix for [ccc448a6bfd5], namespace ensemble subcommand name prefix matching and a ... check-in: d49a1b0329 user: pooryorick tags: trunk, main | |
| 10:07 | • Ticket [ccc448a6bf] namespace ensemble subcommand name prefix matching and a su... artifact: 8ffcf076d2 user: jan.nijtmans | |
| 09:21 | • Ticket [ccc448a6bf]: 4 changes artifact: b74f7e9b31 user: jan.nijtmans | |
|
2021-09-01
| ||
| 23:14 | • Ticket [ccc448a6bf]: 4 changes artifact: bf612c0f9a user: pooryorick | |
| 23:13 | Fix for [ccc448a6bfd59cbd], namespace ensemble subcommand name prefix matching and a subsequent erro... check-in: a2e801a3d6 user: pooryorick tags: trunk, main | |
| 21:32 | • New ticket [ccc448a6bf] namespace ensemble subcommand name prefix matching and ... artifact: 179d8e33ae user: pooryorick | |
namespace ensemble subcommand name prefix matching and a subsequent error results in a segmentation fault
eva
missing the final l, results in a segmentation fault:
namespace eva n1 {error hello}
An alternate script that produces the same result is:
namespace eval n1 {
namespace ensemble create
namespace export *
proc p1 args {error hello}
}
namespace eva n1 {::n1 p1}
The reason is that TclSpellFix sets NULL as the first
object pointer in iPtr->ensembleRewrite.sourceObjs and then later,
in NRNamespaceEvalCmd, TclFetchEnsembleRoot copies a
pointer to this array into framePtr->objv. Next, when an error
occurs, TclLogCommandInfo accesses this array and trips on the
NULL, causing the segmentation fault.
Fixed in commit [a2e801a3d6c1675b].
Is this fix going to be backported to 8.7 -> 8.6 too?
Windows build fails due to the the following warning, which is threated as an error in debug builds:
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 '
Warning silenced in [d49a1b03291b4cde].
Fix merged to core-8-branch in [bd393417060a158f].
Fix merged to core-8-6-branch in [da5128637598b0f1].
Thanks! Closing