Skip to content
Tcl Source Code History Of Ticket 443184ffffffffff
Login

History Of Ticket 443184ffffffffff

Artifacts Associated With Ticket 443184ffffffffff

  1. Ticket change [4afbeaceff] (rid 126623) by nobody on 2001-07-20 20:28:13:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl can be made to eat resources until it dies, by
      doing "interp alias {} unknown {} nothing", where
      "nothing" is a nonexistent procedure, and then invoking
      unknown.
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "20. [interp]"
    10. title initialized to: "interp alias {} unknown {} nothing; foo"
    11. type initialized to: "Bug"
  2. Ticket change [642a14b7a6] (rid 92713) by dgp on 2001-07-21 03:39:24:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Contrast this with
      
      % proc unknown args nothing; foo
      too many nested calls to Tcl_EvalObj (infinite loop?)
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [76d78209ac] (rid 105653) by dgp on 2001-07-21 04:11:29:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Note another way aliases differ from procs:
      
      http://groups.google.com/groups?hl=en&safe=off&th=1784032ddc241340,4&seekm=8mf2uq%24jkq%241%40bob.news.rcn.net
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [2478bb95fa] (rid 131111) by dkf on 2001-08-20 21:20:32:

    1. priority changed to: "6"
  5. Ticket change [48f5c089c2] (rid 99987) by andreas_kupries on 2001-09-08 05:50:10:

    1. assignee changed to: "hobbs"
  6. Ticket change [48fffdb415] (rid 99995) by hobbs on 2001-09-11 07:00:42:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=72656
      
      I'm dubious of how and if this should be fixed in the 
      core.  What occurs is a memory exhaustion failure, and it 
      does require direct coding on the user's part.  While this 
      may be a bit more obtuse than
          set i 1000000
          while 1 { string repeat a [incr i] }
      it is the same failure.  Very fragile checks would have to 
      be put in to avoid this, and I'm not sure we should do 
      anything more than document the use of 'unknown' better.
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. priority changed to: "4"
    6. username: "hobbs"
  7. Ticket change [4467b7821f] (rid 116705) by hobbs on 2001-09-11 07:50:47:

    1. assignee changed to: "hobbs"
    2. closedate changed to: "2001-09-11T00:50:47"
    3. closer changed to: "hobbs"
    4. icomment:
      Logged In: YES 
      user_id=72656
      
      Forget my blathering.  Looking closer I see that the same 
      check for loop can be done (the numLevels was actually 
      getting incr'ed, but wasn't getting checked because we were 
      using TclObjInvoke instead of Tcl_EvalObjEx).  Fixed in 
      8.4a4cvs and core-8-3-1-branch.
      
      
    5. login: "hobbs"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "hobbs"
  8. Ticket change [a4c69321f6] (rid 110260) by dgp on 2001-09-11 10:53:05:

    1. closedate changed to: "2001-09-11T03:53:05"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      test stack-2.1 fails on the core-8-3-1-branch.
      
      ==== stack-2.1 maxNestingDepth reached on infinite recursion
      FAILED
      ==== Contents of test case:
      
          catch {rename unknown unknown_safe}
          interp alias {} unknown {} notaknownproc
          catch {foo} msg
          catch {rename unknown {} ; rename unknown_safe unknown}
          set msg
      
      ---- Result was:
      a b  c
      ---- Result should have been:
      too many nested calls to AliasObjCmd (infinite loop using
      alias?)
      ==== stack-2.1 FAILED
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. username: "dgp"
  9. Ticket change [b8af374371] (rid 129004) by dgp on 2001-09-11 13:22:41:

    1. closedate changed to: "2001-09-11T06:22:41"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      OK, the stack-2.1 test failure is just a specific instance
      of a general problem in the test suite.  See Tcl Bug 460591.
      
      http://sf.net/tracker/index.php?func=detailbug&aid=460591&group_id=10894&atid=110894
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. username: "dgp"
  10. Ticket change [3d76fbe91e] (rid 121094) by hobbs on 2001-09-12 01:24:47:

    1. closedate changed to: "2001-09-11T18:24:47"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      This can be isolated with the changes:
      
      ***************
      *** 46,55 ****
        } {too many nested calls to Tcl_EvalObj (infinite loop?)}
        
        test stack-2.1 {maxNestingDepth reached on infinite 
      recursion} {minStack2400} {
      !     catch {rename unknown unknown_safe}
      !     interp alias {} unknown {} notaknownproc
      !     catch {foo} msg
      !     catch {rename unknown {} ; rename unknown_safe 
      unknown}
            set msg
        } {too many nested calls to AliasObjCmd (infinite loop 
      using alias?)}
        
      --- 46,57 ----
        } {too many nested calls to Tcl_EvalObj (infinite loop?)}
        
        test stack-2.1 {maxNestingDepth reached on infinite 
      recursion} {minStack2400} {
      !     # do this in a slave to not mess with parent
      !     set slave stack-2.1
      !     interp create $slave
      !     $slave eval { interp alias {} unknown {} 
      notaknownproc }
      !     set msg [$slave eval { catch {foo} msg ; set msg }]
      !     interp delete $slave
            set msg
        } {too many nested calls to AliasObjCmd (infinite loop 
      using alias?)}
        
      
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. username: "hobbs"