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
Proxy class attribute interaction segfaults #3731
Comments
From john.haltiwanger@gmail.comI encountered a consistent segfault while working out a trivial proxy How this might be condensed further is beyond me at the moment. After Weirdly enough, if I remove $!string, it also stops segfaulting -- even This class is modeled off of what I saw in the proxy-related spec tests. ## codeword.p6 class Codeword { submethod BUILD { method codeword returns Str is rw { my $code = Codeword.new; ## perl6-debug-m output: + proxy-test.p6 (23 - 25) + proxy-test.p6 (15 - 22) + proxy-test.p6 (16 - 20) ~/.rakudobrew/bin/perl6-debug-m: line 2: 14368 Segmentation fault: 11 |
From @ronaldxsWhen I run this example now (Windows and Linux) I get: P6opaque: no such attribute '$!encoded-string' on type Codeword in a Proxy when trying to get a value instead of a segfault. If I tweak the code as below to use subs instead of methods for the Proxy hooks it runs fine. The P6opaque error seems reminiscent of a recent IRC conversation: https://irclog.perlgeek.de/perl6/2018-03-03#i_15879434 . Between the IRC conversation and making it work by switching to subs I suspect it might be OK to merge this ticket with RT 126198 . ## codeword.p6 class Codeword { submethod BUILD { method codeword returns Str is rw { my $code = Codeword.new;
|
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#124057 (status was 'open')
Searchable as RT124057$
The text was updated successfully, but these errors were encountered: