Artifacts Associated With Ticket 1017004
Ticket change [ab0202bb94] (rid 101021) by dgp on 2004-08-26 16:27:13:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
TclPreventAliasLoop doesn't detect and prevent loops that include a [namespace import] link. % namespace eval ns namespace export alias % interp alias {} ns::alias {} ns::target ns::alias % namespace import ns::alias % interp alias {} ns::target {} alias ns::target % alias too many nested evaluations (infinite loop?) - foundin initialized to: "obsolete: 8.4.7"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "20. [interp]"
- title initialized to: "[namespace import] foils loop prevention"
- type initialized to: "Bug"
Ticket change [d315d86d36] (rid 113634) by dgp on 2004-08-27 07:13:14:
- icomment:
Logged In: YES user_id=80530 Another variation, this time the flaw is in the loop detection inside Tcl_Import(): % namespace eval ns namespace export alias % interp alias {} ns::alias {} alias ns::alias % namespace import ns::alias % alias too many nested evaluations (infinite loop?) - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [34356cb4f5] (rid 106719) by dgp on 2004-08-27 07:33:33:
- icomment:
Logged In: YES user_id=80530 BTW, I think it's fair to claim that neither of these issues is really a bug. Tcl certainly allows other ways to set up infinite loops: proc foo {} foo; foo and the recursion limit is the only protection. I raise these points only because loops made purely of aliases, or purely of imports, are detected and prevented at creation time. The pure import loops must be prevented to avoid loss of the base Tcl_Command, but any loop that includes an alias could reasonably be allowed to be caught at runtime. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [3bc22d6147] (rid 112799) by dgp on 2004-08-27 20:50:59:
- title changed to:
[namespace import] / alias foil each others loop prevention
- title changed to: