Skip to content
Tcl Source Code History Of Ticket 219181
Login

History Of Ticket 219181

Artifacts Associated With Ticket 219181

  1. Ticket change [657eb171d7] (rid 102555) by nobody on 2000-10-26 05:02:56:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.1"
    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: "69. Other"
    10. title initialized to: "[break] at level #0: No error message"
    11. type initialized to: "Bug"
  2. Ticket change [3223236c1a] (rid 93556) by dkf on 2000-11-13 20:25:43:

    1. closedate changed to: "2000-11-13T13:25:43"
    2. closer changed to: "dkf"
    3. foundin changed to: "obsolete: 8.3.2"
    4. 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.
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dkf"
  3. Ticket change [7c7ef57bcf] (rid 97090) by dgp on 2000-11-30 00:23:29:

    1. assignee changed to: "dgp"
    2. foundin changed to: "obsolete: 8.4a2"
    3. icomment:
      Re-opened.  Described bug is still present in both
      8.3.2 and 8.4a2.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "None"
    7. status changed to: "Open"
    8. username: "dgp"
  4. Ticket change [ed93cbe105] (rid 103909) by dkf on 2001-01-31 18:14:11:

    1. subsystem changed to: "16. Commands A-H"
  5. Ticket change [6e72d60238] (rid 100148) by dkf on 2001-02-26 18:44:41:

    1. 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...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. subsystem changed to: "45. Parsing and Eval"
    5. username: "dkf"
  6. Ticket change [55d773a323] (rid 94220) by dgp on 2001-02-27 05:55:21:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      See also #219384
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [64119d909f] (rid 92691) by dgp on 2001-03-03 00:41:58:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Dropping ownership of this bug so a maintainer can pick
      it up.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [caf978256d] (rid 95449) by dgp on 2001-03-03 00:43:45:

    1. assignee changed to: "msofer"
    2. 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.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  9. Add attachment "219181.patch" [6243bae6c1] (rid 92384) by msofer on 2002-03-27 21:30:01.

  10. Ticket change [8069b35d11] (rid 116860) by msofer on 2002-03-27 21:30:01:

    1. 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.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  11. Ticket change [bca26b9043] (rid 101787) by msofer on 2002-03-27 21:36:42:

    1. closedate changed to: "2002-03-27T14:36:42"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Patch committed.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "msofer"
  12. Ticket change [7e04b46a5a] (rid 97335) by dgp on 2002-03-28 00:47:25:

    1. closedate changed to: "2002-03-27T17:47:25"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      Can a corresponding patch work for
      core-8-3-1-branch ?
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. username: "dgp"
  13. Ticket change [d58e33a420] (rid 123644) by msofer on 2002-03-28 01:19:38:

    1. closedate changed to: "2002-03-27T18:19:38"
    2. closer changed to: "msofer"
    3. 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 ...
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. username: "msofer"
  14. Ticket change [641e1967de] (rid 92706) by dgp on 2002-03-29 06:12:08:

    1. 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
      
      $
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. resolution changed to: "Remind"
    5. status changed to: "Open"
    6. username: "dgp"
  15. Ticket change [8942230ecf] (rid 131997) by msofer on 2002-03-29 08:56:01:

    1. 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.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  16. Ticket change [346cc5f249] (rid 106761) by dgp on 2002-03-29 11:04:02:

    1. 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]
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  17. Add attachment "allowExcept.patch1" [27d6c34719] (rid 88591) by msofer on 2002-03-29 18:28:14.

  18. Ticket change [fc838e1ff6] (rid 108251) by msofer on 2002-03-29 18:28:14:

    1. 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).
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  19. Ticket change [2d5554e876] (rid 119046) by dgp on 2002-03-30 00:17:48:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  20. Ticket change [61924a393b] (rid 92264) by dgp on 2002-03-30 00:45:00:

    1. 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}"}
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  21. Ticket change [d098b3a83d] (rid 113211) by dgp on 2002-03-30 02:39:31:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      That was a [subst] bug.  See Tcl Bug 536879.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  22. Ticket change [20789a260b] (rid 91315) by dgp on 2002-03-30 04:00:26:

    1. 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.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  23. Ticket change [b140620539] (rid 98118) by msofer on 2004-03-27 04:09:20:

    1. closedate changed to: "2004-03-26T21:09:20"
    2. closer changed to: "msofer"
    3. status changed to: "Closed"