From: SourceForge.net <no...@so...> - 2009-05-12 15:43:17
|
Bugs item #2035893, was opened at 2008-08-02 09:25 Message generated for change (Comment added) made by msofer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2035893&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 45. Parsing and Eval Group: obsolete: 8.6a1 Status: Open Resolution: None Priority: 8 Private: No Submitted By: miguel sofer (msofer) Assigned to: miguel sofer (msofer) Summary: can NRE break limits and script cancellation? Initial Comment: Understand and makes sure that NRE, and in particular the ability to run arbitrary code in the callbacks, did not open gaping holes in those mechanisms. If it did, FIX it. ---------------------------------------------------------------------- >Comment By: miguel sofer (msofer) Date: 2009-05-12 12:43 Message: The issue is: during cancellation every callback is run - necessary for cleanup. If a callback launches a new evaluation, it will not run (as the intrep is marked as being cancelled or beyond its limits). If a callback launches some long-running or cpu-eating C code ... cancellation is postponed until it returns! Not too different from what would happen if you try to cancel or pass a limit while running some C code. The one diff is: the first scenario will not cancel until a return to Tcl happens; in the new scenario Tcl thinks it has already cancelled before bad stuff happens. So the new problem is: we now have a new way for a C extension to refuse being cancelled! ---------------------------------------------------------------------- Comment By: Joe Mistachkin (mistachkin) Date: 2009-03-25 07:19 Message: I do not understand NRE well enough yet to know if it can somehow bypass script cancellation. Are there specific things to look for (e.g. perhaps, things that are not covered by the current tests)? ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2009-03-25 06:14 Message: What they can't do is run arbitrary Tcl code (at least for limits) since they'll hit the traps again. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2035893&group_id=10894 |