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 in ObjAt initialization #3413
Comments
From pjablons@conncoll.eduIn the REPL, the following line leads to a crash, with the error message "Segmentation fault (core dumped)":
For whatever reason, passing bogus named parameters to ObjAt (in the REPL) causes a segfault, but the issue doesn't present itself with other classes (at least that I've tried). Perl6 version: 2014.04 built on MoarVM 2014.04 |
From @usev6Status update: This (still) segfaults on Moar (REPL only), but runs fine on Parrot and JVM. |
@usev6 - Status changed from 'new' to 'open' |
From @usev6Actually one got a segfault (or a NullPointerException on JVM) until recently with the following code (not specific to REPL): $ perl6-m -e 'my $foo = ObjAt.new(:val("test")); $foo ~~ /"foo"/' Parrot gave an error message though: $ perl6-p -e 'my $foo = ObjAt.new(:val("test")); $foo ~~ /"foo"/' This was fixed with commit rakudo/rakudo@403b0f0687. The problem seemed to be that there where methods "Str" and "gist" which happily tried to nqp::unbox_x(self) when self was null. However, the above command now dies because it requires a positional parameter to be passed: $ perl6-m -e 'my $foo = ObjAt.new(:val("test")); $foo ~~ /"foo"/' $ perl6-p -e 'my $foo = ObjAt.new(:val("test")); $foo ~~ /"foo"/' ## same output for perl6-j |
From @usev6Oops, it was fixed with commit rakudo/rakudo@cb5bb33c1b (moritz++) |
From @usev6The new test file S02-types/built-in.t is now included in t/spectest.data: rakudo/rakudo@01c3faf9c5 I'm closing this ticket as resolved. |
1 similar comment
From @usev6The new test file S02-types/built-in.t is now included in t/spectest.data: rakudo/rakudo@01c3faf9c5 I'm closing this ticket as resolved. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#122094 (status was 'resolved')
Searchable as RT122094$
The text was updated successfully, but these errors were encountered: