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
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "cyan"
- subsystem changed to: "18. Commands M-Z"
- title changed to:
Segfault in bytecode compiled try with chained handler
- type changed to: "Bug"