# New Ticket Created by Zoffix Znet
# Please include the string: [perl #131510]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=131510 >
To get code that segfaults:
cd $(mktemp -d); git clone https://github.com/zoffixznet/perl6-Temp-Path .
; git checkout ca5ab2816705cf36911b91e4029224b4d4644a2d;
Now run this several times and it'll segfault ~50% of the time:
perl6 -Ilib t/03-DESTROY.t
The test file already does `use lib <lib>` and if you remove `-Ilib` switch,
the segfault seems to disappear:
perl6 t/03-DESTROY.t
I tried making a small test case that just had a dummy module and was doing
`use lib <lib>` but that didn't segfault.
Perhaps it's got to do with loading some installed modules?