Artifacts Associated With Ticket 219181
Ticket change [657eb171d7] (rid 102555) by nobody on 2000-10-26 05:02:56:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2136 Bug Version: 8.1 SubmitDate: '1999-06-03' LastModified: '1999-08-14' Severity: MED Status: Assigned Submitter: techsupp ChangedBy: hobbs OS: Other Machine: NA FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Don Porter ReproducibleScript: # FILE: test.tcl puts stderr [info patchlevel] break ObservedBehavior: $ tclsh8.0 test.tcl 8.0.5 invoked "break" outside of a loop while executing "# FILE: test.tcl puts stderr [info patchlevel] break " (file "test.tcl" line 1) $ tclsh8.1 test.tcl 8.1.0 DesiredBehavior: Ideally, consistent error messages between 8.0.x and 8.1.x Tcl releases. At a minimum, there should be some error message reported by Tcl 8.1.x. Verified in 8.2.0. Returns an empty line. -- 08/14/1999 hobbs - foundin initialized to: "obsolete: 8.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "[break] at level #0: No error message"
- type initialized to: "Bug"
Ticket change [3223236c1a] (rid 93556) by dkf on 2000-11-13 20:25:43:
- closedate changed to: "2000-11-13T13:25:43"
- closer changed to: "dkf"
- foundin changed to: "obsolete: 8.3.2"
- icomment:
Not sure when this got fixed, but it works identically in 8.0.4 and 8.3.2, so I'm closing this one.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"
Ticket change [7c7ef57bcf] (rid 97090) by dgp on 2000-11-30 00:23:29:
- assignee changed to: "dgp"
- foundin changed to: "obsolete: 8.4a2"
- icomment:
Re-opened. Described bug is still present in both 8.3.2 and 8.4a2.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
- username: "dgp"
Ticket change [ed93cbe105] (rid 103909) by dkf on 2001-01-31 18:14:11:
- subsystem changed to: "16. Commands A-H"
Ticket change [6e72d60238] (rid 100148) by dkf on 2001-02-26 18:44:41:
- icomment:
Logged In: YES user_id=79902 Hmm. The problem is not that the [break] isn't having an effect, but rather that no error message is being generated. See the following session: $ cat test.tcl # FILE: test.tcl puts stderr [info patchlevel] break puts stderr "FELL THROUGH" $ tclsh8.3 test.tcl 8.3.2 $ tclsh8.0 test.tcl 8.0.4 invoked "break" outside of a loop while executing "# FILE: test.tcl puts stderr [info patchlevel] break puts stderr "FELL THROUGH" " (file "test.tcl" line 1) $ tclsh8.3 % source test.tcl 8.3.2 invoked "break" outside of a loop Note first that neither 8.0.4 or 8.3.2 fell through to the rest of the script, so the break itself must have worked. Second, note that there is an extra blank line generated after the printing of the patchlevel under 8.3.2, so something is coming of the break. It looks to me like this is actually either a problem with Tcl_EvalFile or with the default error handler in 8.3.2, and this problem is not exercised when running interactively... - login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "45. Parsing and Eval"
- username: "dkf"
- icomment:
Ticket change [55d773a323] (rid 94220) by dgp on 2001-02-27 05:55:21:
- icomment:
Logged In: YES user_id=80530 See also #219384
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [64119d909f] (rid 92691) by dgp on 2001-03-03 00:41:58:
- icomment:
Logged In: YES user_id=80530 Dropping ownership of this bug so a maintainer can pick it up.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [caf978256d] (rid 95449) by dgp on 2001-03-03 00:43:45:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=80530 Miguel, Sorry to assign this directly to you, but SF won't let me assign it to "None" as I want.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Add attachment "219181.patch" [6243bae6c1] (rid 92384) by msofer on 2002-03-27 21:30:01.
Ticket change [8069b35d11] (rid 116860) by msofer on 2002-03-27 21:30:01:
- icomment:
File Added - 20130: 219181.patch Logged In: YES user_id=148712 The direct evaluation path (Tcl_EvalEx) was missing the "ProcessUnexpectedResult at level 0" code. The enclosed patch fixes this.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [bca26b9043] (rid 101787) by msofer on 2002-03-27 21:36:42:
- closedate changed to: "2002-03-27T14:36:42"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Patch committed.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "msofer"
Ticket change [7e04b46a5a] (rid 97335) by dgp on 2002-03-28 00:47:25:
- closedate changed to: "2002-03-27T17:47:25"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Can a corresponding patch work for core-8-3-1-branch ?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [d58e33a420] (rid 123644) by msofer on 2002-03-28 01:19:38:
- closedate changed to: "2002-03-27T18:19:38"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Yes, but ... In 8.3 the function Tcl_EvalEx is in tclParse.c; in order to apply this fix I'd have to choose among 1. move all evaluation functions to tclBasic.c, as in 8.4 2. promote "static void ProcessUnexpectedResult" to "void TclProcessUnexpectedResult" in tclBasic.c 3. duplicate ProcessUnexpectedResult in tclParse.c For such a long-standing bug (since 8.1), I thought it wasn't worth it. I'll reconsider 2 or 3 if poked ...
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [641e1967de] (rid 92706) by dgp on 2002-03-29 06:12:08:
- icomment:
Logged In: YES user_id=80530 Re-opening this one. The fix is incomplete. There's real weirdness going on with Tcl_AllowExceptions(). It can only be set, never cleared. Evaluation of an alias is one thing that sets it. Use this demo script: # FILE: demo.tcl interp alias {} patch {} info patchlevel puts stderr [patch] break $ tclsh8.0 demo.tcl 8.0.5 invoked "break" outside of a loop while executing "interp alias {} patch {} info patchlevel puts stderr [patch] break " (file "demo.tcl" line 1) $ tclsh8.3 demo.tcl 8.3.4 $ tclsh8.4 demo.tcl 8.4a5 $ - login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Remind"
- status changed to: "Open"
- username: "dgp"
- icomment:
Ticket change [8942230ecf] (rid 131997) by msofer on 2002-03-29 08:56:01:
- icomment:
File Added - 20236: allowExcept.patch Logged In: YES user_id=148712 :( Tcl_AllowExceptions was not enabled for the new path! This new patch may solve the issue, without yet giving the correct result for Don's new test script.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [346cc5f249] (rid 106761) by dgp on 2002-03-29 11:04:02:
- icomment:
Logged In: YES user_id=80530 As discussed in the chat, that's not it either. Be sure you also test the case: foo [set a 1] [break] - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "allowExcept.patch1" [27d6c34719] (rid 88591) by msofer on 2002-03-29 18:28:14.
Ticket change [fc838e1ff6] (rid 108251) by msofer on 2002-03-29 18:28:14:
- icomment:
File Deleted - 20236: File Added - 20257: allowExcept.patch1 Logged In: YES user_id=148712 New patch, as discussed in the chat. Don, could you please check if JCW's Tk issue is solved by this? Also, I'd rather let *you* describe what happens to TCL_RETURN (in doc/AllowExc.3). Actually, it is not trivial to explain: there is no library function similar to [return] (or did I miss it?), and the field iPtr->returnCode is not accessible to standard extensions (it is part of Interp but not Tcl_Interp).
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [2d5554e876] (rid 119046) by dgp on 2002-03-30 00:17:48:
- icomment:
Logged In: YES user_id=80530 Yes, that patch fixes the console bug reported by JCW. Test suite passes too, including your new tests. I'm still concerned about possible problems with Tcl_EvalTokensStandard making multiple calls to Tcl_EvalEx in its for loop and having that 2d and later calls not respect the original ALLOW_EXCEPTIONS value. I haven't cooked up a test case for that, though. I'm pleased to see the call to Tcl_LogCommandInfo within TclCompEvalObj almost completely removed. That meshes nicely with some of my TIP 90 work. It's only still there for sort of handling errors from Tcl_AsyncInvoke. Is it doing anything close to the right thing in that case? Regarding documentation of TCL_RETURN coming back from a Tcl_*Eval* routine, rather than document current behavior, I'd rather change it so that it makes more sense. See the comments for Tcl Bug 219191 about the inconsistent mess that's currently in place.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [61924a393b] (rid 92264) by dgp on 2002-03-30 00:45:00:
- icomment:
Logged In: YES user_id=80530 This might be related, or might be a different [subst] bug: % list [catch {subst {a[break]b}} msg] $msg $errorInfo 0 a {} % list [catch {subst {a$foo([break])b}} msg] $msg $errorInfo 1 {} { while executing "subst {a$foo([break])b}"} - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [d098b3a83d] (rid 113211) by dgp on 2002-03-30 02:39:31:
- icomment:
Logged In: YES user_id=80530 That was a [subst] bug. See Tcl Bug 536879.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [20789a260b] (rid 91315) by dgp on 2002-03-30 04:00:26:
- icomment:
Logged In: YES user_id=80530 OK, there's no script that can demo the problem with Tcl_EvalTokensStandard. Only a direct call to it can do that. This only needs fixing if T_ETS remains in the public interface. Tcl_EvalTokens and Tcl_ParseVar both call T_ETS, but they already have their own rules about masking away non-TCL_OK codes. I think the patch is ready for commit, and in the interest of restoring Tk to usable status, I'm doing that now. Leaving the report open for Miguel to review the T_ETS issue.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [b140620539] (rid 98118) by msofer on 2004-03-27 04:09:20:
- closedate changed to: "2004-03-26T21:09:20"
- closer changed to: "msofer"
- status changed to: "Closed"