On Tue, Oct 13, 2015 at 09:20:54AM -0700, Shoichi Kaji wrote:
> + perl6-m -Ilib -MA -e B.bar
> test.sh: line 19: 31493 Segmentation fault perl6-m -Ilib -MA -e 'B.bar'
> ```
$ ./perl6-m -Ilib -MA -e 'B.bar'
ASAN:SIGSEGV
=
==27416
# New Ticket Created by Shoichi Kaji
# Please include the string: [perl #126350]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=126350 >
The following script exits with segmentation fault.
(code is also available at
https://gi
It seems to segfault in the op getlex when trying to locate &foo.
Moving sub foo to within the BEGIN block helps and moving it outside of A gives:
Cannot invoke this object
in method at lib/A.pm6:5
Neither the rakudo optimizer nor spesh seem to be to blame.