On Saturday 05 July 2008 09:42:33 Jeff Horwitz wrote:

> In r29081, the following code segfaults:
>
>    module Foo::Bar;
>    sub foo() { say "bar"; }
>    foo(); # segfaults here
>
> The script works if the modules declaration is omitted.  I also tried
> running with -G, and it still segfaults at the same place.  pmichaud was
> able to reproduce as well.
>
> Backtrace follows:
>
> #0  0x402cc6df in Parrot_Closure_invoke (interp=0x804f048, pmc=0x4161e700,
>      in_next=0x868e23c) at closure.pmc:103
> 103             else if ((PObj_get_FLAGS(outer_sub) & SUB_FLAG_IS_OUTER)
> &&

Random guess: foo() is a Closure PMC, but it doesn't have an outer.  Aren't 
all Subs generated from Rakudo Closures at the moment?

-- c

Reply via email to