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
$!attr.^compose causing segfault #5411
Comments
From @LLFournclass Foo { has $.a = Metamodel::ClassHOW.new_type(name => "Bar"); method Program received signal SIGSEGV, Segmentation fault. ======= Unhandled exception: Cannot assign to a readonly variable or a value |
From @nwc10On Fri, Jul 01, 2016 at 10:36:25PM -0700, Lloyd Fournier wrote:
When I run that, I get this: moar: src/gc/roots.c:245: MVM_gc_root_gen2_add: Assertion `!(c->flags & MVM_CF_FORWARDER_VALID)' failed. (I wasn't paying close attention, but I guess I built with full-on debugging I hope that makes it more obvious to someone how to fix this. Nicholas Clark |
The RT System itself - Status changed from 'new' to 'open' |
From @LLFournFurther information: if you put nqp::decont($!a).^compose it works. On Wed, Jul 6, 2016 at 4:26 AM Nicholas Clark <nick@ccl4.org> wrote:
|
From @jnthnOn Fri, 01 Jul 2016 22:36:25 -0700, lloyd.fourn@gmail.com wrote:
The SEGV was thanks to MoarVM accidentally allowing recomposition of a P6opaque; I added a check to forbid this and that had the code reliably failing instead of SEGVing. A second fix in the MOP code to always decontainerize the argument to the composetype op was the second part, and this code now works fine. Added a test in S12-meta/classhow.t. /jnthn |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#128516 (status was 'resolved')
Searchable as RT128516$
The text was updated successfully, but these errors were encountered: