Re: [perl #62432] Rakudo segfault when passing/calling sub

[email protected] ("Patrick R. Michaud") Fri, 16 Jan 2009 11:11:12 -0600
Newsgroups perl.perl6.internals
Message-ID <[email protected]>
On Fri, Jan 16, 2009 at 01:43:11AM -0800, I Sop wrote:
> With r35615.
> 
> Following script to perl6 segfaults:
> 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