Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3e56ff4a1dcc0b6cee7c2ce7f5cf71b3158e2ff3
Ticket: 3007374fffffffffffffffffffffffffffffffff
Segfault in bytecode compiled try with chained handler
User & Date: cyan on 2010-05-26 14:00:05
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    In current CVS (2010-05-26 15:30) on Ubuntu 9.10 amd64, bytecode compiled try commands that use chained handlers (with "-") segfault when the handler given as "-" is hit _after_ the handler script executes, but before the finally clause.
    
    The following code reproduces the problem for me:
    
    try {
    return [list foo1 bar1]
    } on return {res} - on ok {res} {
    puts "1 Result ok: ($res)"
    } finally {
    puts "1 In finally"
    }
    
    apply {
    {} {
    try {
    return [list foo2 bar2]
    } on return {res} - on ok {res} {
    puts "2 Result ok: ($res)"
    } finally {
    puts "2 In finally"
    }
    }
    }
    
    
    Expected output:
    
    1 Result ok: (foo1 bar1)
    1 In finally
    2 Result ok: (foo2 bar2)
    2 In finally
    
    Got output:
    
    1 Result ok: (foo1 bar1)
    1 In finally
    2 Result ok: (foo2 bar2)
    zsh: segmentation fault (core dumped)  ./ok_result.tcl
    
    
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "cyan"
  10. subsystem changed to: "18. Commands M-Z"
  11. title changed to:
    Segfault in bytecode compiled try with chained handler
    
  12. type changed to: "Bug"