Discussion:
[perl #62432] Rakudo segfault when passing/calling sub
(too old to reply)
I Sop
2009-01-16 09:43:11 UTC
Permalink
# New Ticket Created by I Sop
# Please include the string: [perl #62432]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=62432 >


With r35615.

Following script to perl6 segfaults:
sub yum() { }
sub callit(&x) { x; }
callit yum;

But this doesn't:
sub yum() { }
sub callit(&x) { x; }
callit &yum;

Neither does this:
sub yum() { }
yum;
Patrick R. Michaud
2009-01-16 17:11:12 UTC
Permalink
Post by I Sop
With r35615.
sub yum() { }
sub callit(&x) { x; }
callit yum;
This now responds with an appropriate exception:

$ cat x.pl
sub yum() { }
sub callit(&x) { x; }
callit yum;

$ ./parrot perl6.pbc x.pl
Non-Callable argument for x in call to callit
current instr.: 'die' pc 15989 (src/builtins/control.pir:204)
[...]
$

Handing ticket over to moritz++ so we can get a spectest for it.

Thanks!

Pm

Loading...