Skip to content
Tcl Source Code History Of Ticket 2971921fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2971921fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2971921fffffffffffffffffffffffffffffffff

  1. Ticket change [263cb4184d] (rid 88308) by cyan on 2010-03-17 12:30:14:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl from CVS on 2010-03-14 on Linux (Ubuntu 9.10 x86_64)
      
      When a bytecode compiled try command throws an error in the body, which is caught in a trap {...} handler, the finally handler is not executed.
      
      The following script reliably reproduces the problem for me:
      
      proc go {} {
          try {
              puts "In try body"
              throw {bar} "hello"
          } trap {bar} {res options} {
              puts "trapped bar"
          } finally {
              puts "in finally"
          }
          puts "after try"
      }
      
      go
      
      puts "-----------------"
      try {
          puts "In try body"
          throw {bar} "hello"
      } trap {bar} {res options} {
          puts "trapped bar"
      } finally {
          puts "in finally"
      }
      puts "after try"
      
      
      Expected output: 
      
      In try body
      trapped bar
      in finally
      after try
      -----------------
      In try body
      trapped bar
      in finally
      after try
      
      
      Problem output:
      In try body
      trapped bar
      after try
      -----------------
      In try body
      trapped bar
      in finally
      after try
      
      
      The behaviour changed with the CVS commit "Compilation of [try] now enabled!" by dkf on 2010-02-09 22:51:53.
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "cyan"
    10. subsystem initialized to: "18. Commands M-Z"
    11. title initialized to: "Bytecode compiled try misses finally handler"
    12. type initialized to: "Bug"
  2. Add attachment "foo" [20b245a5f6] (rid 130466) by cyan on 2010-03-17 19:48:50.

  3. Ticket change [21c01b3743] (rid 130639) by cyan on 2010-03-17 19:48:50:

    1. icomment:
      
      
      File Added - 367096: foo
      
      
      
    2. login: "cyan"
    3. mimetype: "text/plain"
    4. username: "cyan"
  4. Ticket change [243965a3f1] (rid 131077) by dgp on 2010-03-18 00:03:24:

    1. priority changed to: "9 Immediate"
  5. Ticket change [be8f607b54] (rid 102091) by dkf on 2010-03-18 18:01:55:

    1. icomment:
      Oh dear, that wasn't very nice was it? I had a jump going to the wrong place (the middle of an instruction). I'm not quite sure what it did then as it was executing immediate data, but that was clearly wrong!
      
      Fixed now.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [ef1b361fcd] (rid 108933) by dkf on 2010-03-18 18:02:06:

    1. closedate changed to: "2010-03-18T11:02:06"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"