Skip to content
Tcl Source Code History Of Ticket 219164ffffffffff
Login

History Of Ticket 219164ffffffffff

Artifacts Associated With Ticket 219164ffffffffff

  1. Ticket change [171bf0e408] (rid 124829) by nobody on 2000-10-26 05:02:42:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1637 Bug
      Version: 8.1b2
      SubmitDate: '1999-03-25'
      LastModified: '1999-10-26'
      Severity: MED
      Status: Assigned
      Submitter: stanton
      ChangedBy: hershey
      OS: All
      OSVersion: NA
      Machine: NA
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      There are several bugs in interp.test that are marked as "knownBug".  These should be fixed:
      
      test interp-26.4 {result code transmission: invoke hidden direct}  {knownBug} {
          # The known bug is that code 2 is returned, not the -code argument
          catch {interp delete a}
          interp create a
          set res {}
          interp hide a return
          for {set code -1} {$code<=5} {incr code} {
      lappend res [catch {interp invokehidden a return -code $code ret$code}]
          }
          interp delete a
          set res
      } {-1 0 1 2 3 4 5}
      
      test interp-26.5 {result code transmission: invoke hidden indirect}  {knownBug} {
          # The known bug is that the break and continue should raise errors
          # that they are used outside a loop.
          catch {interp delete a}
          interp create a
          set res {}
          interp eval a {proc retcode {code} {return -code $code ret$code}}
          interp hide a retcode
          for {set code -1} {$code<=5} {incr code} {
      lappend res [catch {interp invokehidden a retcode $code} msg] $msg
          }
          interp delete a
          set res
      } {-1 ret-1 0 ret0 1 ret1 0 ret2 3 ret3 4 ret4 5 ret5}
      
      test interp-26.6 {result code transmission: all combined}  {knownBug} {
          # Test that all the possibles error codes from Tcl get passed
          # In both directions.  This doesn't work.
          set interp [interp create];
          proc MyTestAlias {interp args} {
      global aliasTrace;
      lappend aliasTrace $args;
      eval interp invokehidden [list $interp] $args
          }
          foreach c {return} {
      interp hide $interp  $c;
              interp alias $interp $c {} MyTestAlias $interp $c;
          }
          interp eval $interp {proc ret {code} {return -code $code ret$code}}
          set res {}
          set aliasTrace {}
          for {set code -1} {$code<=5} {incr code} {
      lappend res [catch {interp eval $interp ret $code} msg] $msg
          }
          interp delete $interp;
          set res
      } {-1 ret-1 0 ret0 1 ret1 0 ret2 3 ret3 4 ret4 5 ret5}
      
      test interp-26.8 {errorInfo transmission: safe interps} {knownBug} {
          # this test fails because the errorInfo is fully transmitted
          # whether the interp is safe or not.  The errorInfo should never
          # report data from the master interpreter because it could
          # contain sensitive information.
          set interp [interp create -safe];
          proc MyError {secret} {
      return -code error "msg"
          }
          proc MyTestAlias {interp args} {
      MyError "some secret"
          }
          interp alias $interp test {} MyTestAlias $interp;
          set res [interp eval $interp {catch test;set errorInfo}]
          interp delete $interp;
          set res
      } {msg
          while executing
      "test"}
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.1b2"
    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:
      various aspects of error handling fail with interp aliases
      
    11. type initialized to: "Bug"
  2. Ticket change [4ce76d8fbe] (rid 126969) by dkf on 2001-01-31 17:48:55:

    1. subsystem changed to: "20. [interp]"
  3. Ticket change [802897be13] (rid 97687) by andreas_kupries on 2001-09-08 06:11:16:

    1. assignee changed to: "hobbs"
  4. Ticket change [a614faa13d] (rid 98537) by msofer on 2004-05-22 06:57:22:

    1. assignee changed to: "msofer"
    2. foundin changed to: "obsolete: 8.5a1"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Found this oldie while grepping for {knownBug}; assigning to
      myself so that I remember to take a look.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. username: "msofer"
  5. Ticket change [e173599aeb] (rid 87450) by dgp on 2004-11-04 07:39:37:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      got a good idea on how 
      to "fix" these problems, if
      in fact we can agree these
      are really bugs.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [e959fc3dd3] (rid 104808) by msofer on 2008-06-28 21:22:10:

    1. assignee changed to: "dgp"
  7. Ticket change [313a2420dd] (rid 258534) by serhiy.storchaka on 2026-10-17 10:53:34:

    1. icomment:
      interp-26.8 (the parent's errorInfo and errorstack leaking into a safe interp through an alias) is now tracked separately in [a63f5a4fed].
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"