Artifacts Associated With Ticket 3480592fffffffffffffffffffffffffffffffff
Ticket change [bb0c3a1134] (rid 129412) by dgp on 2012-01-27 16:37:51:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
This demo script creates a busy loop: proc demo {} { catch demo demo } demo The guards in Tcl meant to detect and stop infinite recursion don't catch this one. - foundin initialized to: "obsolete: 8.5.11"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "Houdini escape inf recursion detection"
- type initialized to: "Bug"
Ticket change [69ede1d78f] (rid 128060) by dgp on 2012-01-27 23:45:48:
- icomment:
It's not necessarily a bug. Certainly we permit scripts that hang Tcl: while 1 {} It's at least surprising though, since at least at a simple level we aim to discover and report infinite recursions. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [86e2692180] (rid 131591) by dgp on 2012-01-27 23:53:17:
- icomment:
Aha! This structure doesn't actually escape detection. It just delays it a very very great deal. The time to detect the recursion is quadratic in the recursionlimit of the interp. Use interp recursionlimit {} 20 before the script, and it will stop with an error. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [3df4e1922c] (rid 121184) by sebres on 2012-01-28 00:07:24:
- icomment:
this is not a busy loop, it's a "tree" of "demo" calls, where in catch each recusrsion level ends level - 1 times with "too many nested evals...". Also factorial from 1000 - is very very big... IMO - is not a bug. while 1 {incr test} - is also "busy loop"? - login: "sebres"
- mimetype: "text/plain"
- username: "sebres"
- icomment:
Ticket change [4eee82ea8f] (rid 125735) by dkf on 2012-01-30 20:43:16:
- closedate changed to: "2012-01-30T13:43:16"
- closer changed to: "dkf"
- icomment:
allow_comments - 1 Confirmed as not a bug, just (eye-wateringly) expensive.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "dkf"