Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2020-09-06
14:43 • Closed ticket [c1a376375e]: imported namespace ensemble command name distorted d... artifact: f3a6e798e8 user: jan.nijtmans
14:36
Re-apply fix for [c1a376375e0e6488], as the build-problems originated elsewhere check-in: fc0e2a4f3f user: jan.nijtmans tags: core-8-branch
2020-09-05
21:41 • Ticket [3422267ed6] segmentation fault from deleting the the target of an import... artifact: b9451e1446 user: jan.nijtmans
21:38 • Ticket [c1a376375e] imported namespace ensemble command name distorted during de... artifact: 3263d4cce5 user: jan.nijtmans
21:33
Backout [c1a376375e0e6488]: imported namespace ensemble command name distorted during deletion trace... check-in: e4a2a2c7d1 user: jan.nijtmans tags: core-8-branch
2020-09-02
09:35 • Ticket [c1a376375e] imported namespace ensemble command name distorted during de... artifact: cd1782e017 user: pooryorick
09:32 • Ticket [c1a376375e]: 3 changes artifact: 2e90cafb95 user: pooryorick
2020-09-01
22:36
Fix for [c1a376375e0e6488], imported namespace ensemble command name distorted during deletion trace... closed check-in: ebe3442625 user: pooryorick tags: bug-c1a376375e0e6488
2020-08-31
19:27 • New ticket [c1a376375e] imported namespace ensemble command name distorted durin... artifact: 4714fe20fc user: pooryorick

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.