Ticket #1593 (closed bug: fixed)
parrot puts an invalid value in a register when vtable override does not return as expected
| Reported by: | NotFound | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | none | Version: | 2.3.0 |
| Severity: | high | Keywords: | |
| Cc: | Language: | ||
| Patch status: | Platform: |
Description
This shows the problem:
$ cat override.pir
.sub main
$P0 = newclass ['Foo']
$P1 = new $P0
$P2 = $P1[0]
say 'in main'
print $P2
.end
.namespace [ 'Foo' ]
.sub get_pmc_keyed_int :vtable
.param int i
say 'Foo overrides'
.end
$ parrot override.pir
Foo overrides
in main
Segmentation fault (core dumped)
Oddly, it doesn't segfault in a non optimized build.
Change History
Note: See
TracTickets for help on using
tickets.
