Artifacts Associated With Ticket 443184ffffffffffffffffffffffffffffffffff
Ticket change [4afbeaceff] (rid 126623) by nobody on 2001-07-20 20:28:13:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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. - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "20. [interp]"
- title initialized to: "interp alias {} unknown {} nothing; foo"
- type initialized to: "Bug"
Ticket change [642a14b7a6] (rid 92713) by dgp on 2001-07-21 03:39:24:
- icomment:
Logged In: YES user_id=80530 Contrast this with % proc unknown args nothing; foo too many nested calls to Tcl_EvalObj (infinite loop?)
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [76d78209ac] (rid 105653) by dgp on 2001-07-21 04:11:29:
- 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
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [2478bb95fa] (rid 131111) by dkf on 2001-08-20 21:20:32:
- priority changed to: "6"
Ticket change [48f5c089c2] (rid 99987) by andreas_kupries on 2001-09-08 05:50:10:
- assignee changed to: "hobbs"
Ticket change [48fffdb415] (rid 99995) by hobbs on 2001-09-11 07:00:42:
- assignee changed to: "dgp"
- 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. - login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "4"
- username: "hobbs"
Ticket change [4467b7821f] (rid 116705) by hobbs on 2001-09-11 07:50:47:
- assignee changed to: "hobbs"
- closedate changed to: "2001-09-11T00:50:47"
- closer changed to: "hobbs"
- 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.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "hobbs"
Ticket change [a4c69321f6] (rid 110260) by dgp on 2001-09-11 10:53:05:
- closedate changed to: "2001-09-11T03:53:05"
- closer changed to: "dgp"
- 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 - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [b8af374371] (rid 129004) by dgp on 2001-09-11 13:22:41:
- closedate changed to: "2001-09-11T06:22:41"
- closer changed to: "dgp"
- 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
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [3d76fbe91e] (rid 121094) by hobbs on 2001-09-12 01:24:47:
- closedate changed to: "2001-09-11T18:24:47"
- closer changed to: "hobbs"
- 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?)} - login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"