[perl #131510] [SEGV] Segfault when `-Ilib` while running a file that does `use lib ` and loads some modules
This appears to be resolved - possibly in https://github.com/rakudo/rakudo/commit/37250ed5ebc3d25eae656ddfa19187c90a712e3c
[perl #131510] [SEGV] Segfault when `-Ilib` while running a file that does `use lib ` and loads some modules
Also noticed another failure mode in a more recent version[^1] of the test file: fails (likely due to segv): prove -e 'perl6 -Ilib' -r t/03-DESTROY.t succeeds: prove -e 'perl6 -Ilib' -vlr t/03-DESTROY.t And removing the `-Ilib` from prove line didn't help it, but removing the `use lib` from the test file and using solely -Ilib avoided the problem. [1] https://github.com/zoffixznet/perl6-Temp-Path/blob/0c2d855ffd4e602aafc34297f17d2a428c080cdd/t/03-DESTROY.t
[perl #131510] [SEGV] Segfault when `-Ilib` while running a file that does `use lib ` and loads some modules
Also noticed another failure mode in a more recent version[^1] of the test file: fails (likely due to segv): prove -e 'perl6 -Ilib' -r t/03-DESTROY.t succeeds: prove -e 'perl6 -Ilib' -vlr t/03-DESTROY.t And removing the `-Ilib` from prove line didn't help it, but removing the `use lib` from the test file and using solely -Ilib avoided the problem. [1] https://github.com/zoffixznet/perl6-Temp-Path/blob/0c2d855ffd4e602aafc34297f17d2a428c080cdd/t/03-DESTROY.t
[perl #131510] [SEGV] Segfault when `-Ilib` while running a file that does `use lib ` and loads some modules
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131510] # in the subject line of all future correspondence about this issue. # 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 ` 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 ` but that didn't segfault. Perhaps it's got to do with loading some installed modules?