Ticket #944 (closed bug: fixed)
Exception handling in top-level main function is broken.
| Reported by: | bacek | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Version: | trunk |
| Severity: | medium | Keywords: | |
| Cc: | Language: | ||
| Patch status: | Platform: |
Description
Hello.
bacek@icering:~/src/parrot$ cat e2.pir
.sub main :main
$P0 = newclass 'Foo'
$P0 = new ['Foo']
push_eh catch
$S0 = $P0
say "huh?"
.return()
catch:
say "caught"
.return()
.end
.namespace ['Foo']
.sub get_string :vtable :method
$P0 = new ['Exception']
throw $P0
.end
bacek@icering:~/src/parrot$ ./parrot e2.pir
caught
huh?
Segmentation fault
-- Bacek
Change History
Note: See
TracTickets for help on using
tickets.
