Skip Menu |
Report information
Id: 131301
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [SEGV] segfault when nqp::nextfiledir'ing a closed dir handle
Download (untitled) / with headers
text/plain 195b
Doesn't affect Perl 6-level code, but perhaps a SEGV is too bad and should be fixed? perl6 -Mnqp -e 'nqp::closedir(my $fh := nqp::opendir(".")); nqp::nextfiledir($fh)' Segmentation fault
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 585b
On Fri, 12 May 2017 20:15:41 -0700, cpan@zoffix.com wrote: Show quoted text
> Doesn't affect Perl 6-level code, but perhaps a SEGV is too bad and > should be fixed? > > perl6 -Mnqp -e 'nqp::closedir(my $fh := nqp::opendir(".")); > nqp::nextfiledir($fh)' > Segmentation fault
Thank you for the report. This is now fixed. Fix: https://github.com/MoarVM/MoarVM/commit/22fb8e49c02a8a3cae33333faa18106815c8e526 https://github.com/perl6/nqp/commit/de324a2d0f94449f43c7c0a48dbf8257e3631f9e https://github.com/rakudo/rakudo/commit/902fac5cec Test: https://github.com/perl6/nqp/commit/9c4d4586c0


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org