Skip to content
Tcl Source Code History Of Ticket 1017004
Login

History Of Ticket 1017004

Artifacts Associated With Ticket 1017004

  1. Ticket change [ab0202bb94] (rid 101021) by dgp on 2004-08-26 16:27:13:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. 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?)
      
      
    4. foundin initialized to: "obsolete: 8.4.7"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "20. [interp]"
    10. title initialized to: "[namespace import] foils loop prevention"
    11. type initialized to: "Bug"
  2. Ticket change [d315d86d36] (rid 113634) by dgp on 2004-08-27 07:13:14:

    1. 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?)
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [34356cb4f5] (rid 106719) by dgp on 2004-08-27 07:33:33:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [3bc22d6147] (rid 112799) by dgp on 2004-08-27 20:50:59:

    1. title changed to:
      [namespace import] / alias foil each others loop prevention