Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault when nqp::nextfiledir'ing a closed dir handle #6241

Closed
p6rt opened this issue May 13, 2017 · 3 comments
Closed

segfault when nqp::nextfiledir'ing a closed dir handle #6241

p6rt opened this issue May 13, 2017 · 3 comments
Labels
SEGV Segmentation fault, bus error, etc.

Comments

@p6rt
Copy link

p6rt commented May 13, 2017

Migrated from rt.perl.org#131301 (status was 'resolved')

Searchable as RT131301$

@p6rt
Copy link
Author

p6rt commented May 13, 2017

From @zoffixznet

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

@p6rt
Copy link
Author

p6rt commented May 19, 2017

From @zoffixznet

On Fri, 12 May 2017 20​:15​:41 -0700, cpan@​zoffix.com wrote​:

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​: MoarVM/MoarVM@22fb8e4
  Raku/nqp@de324a2
  rakudo/rakudo@902fac5cec
Test​: Raku/nqp@9c4d4586c0

@p6rt p6rt closed this as completed May 19, 2017
@p6rt
Copy link
Author

p6rt commented May 19, 2017

@zoffixznet - Status changed from 'new' to 'resolved'

@p6rt p6rt added the SEGV Segmentation fault, bus error, etc. label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SEGV Segmentation fault, bus error, etc.
Projects
None yet
Development

No branches or pull requests

1 participant