imported namespace ensemble command name distorted during deletion trace on the import
Closed / Fixedc1a376375e0e648830cf52ca984a9ace563c0706Created 6 years agoUpdated 6 years ago
Descriptionwiki2020-08-31 19:27:28
The following script should result in an error to the effect that the routine
doesn't exist. Instead, it returns the full path of the deleted routine with
the empty string in place of the tail of the deleted routine.
#! /usr/bin/env tclsh
proc traced {oldname newname op} {
set origin [namespace origin $oldname]
puts [list origin 1 $origin]
rename $origin {}
set origin [namespace origin $oldname]
puts [list origin 2 $origin]
}
namespace export *
namespace eval ns1 {
namespace ensemble create
}
namespace eval ns2 {
namespace import ::ns1
trace add command ns1 delete traced
}
rename ns1 {}
Referenced by1
b9451e1446Ticket [3422267ed6] segmentation fault from deleting the the target of an imported alias during a trace on the target of the alias status still Open with 3 other changes ticket2020-09-05 21:41:03
pooryorickwiki2020-09-02 09:32:48
Fixed in [Fixed in [ebe34426255bef25].
pooryorick Ticket [c1a376375e]: 3 changes
[History diff]2020-09-02 09:35:13
jan.nijtmanswiki2020-09-05 21:38:27
Please make sure Travis builds OK before merging to core-8-branch. Reverted now from core-8-branch for this reason. Sorry!
jan.nijtmanswiki2020-09-06 14:43:13
Since the Travis build problem didn't arise from this bug-fix, re-applied now. Thanks!
Log in (anonymous is fine) to add a comment.