[perl #132126] [SEGV] When raking through Int guts

2017-09-19 Thread Zoffix Znet via RT
On Tue, 19 Sep 2017 08:15:15 -0700, c...@zoffix.com wrote:
> m: use nqp; class Foo is Int { method new ($v) {
> nqp::p6bindattrinvres(self.bless, Int, q|$!value|,
> nqp::getattr(nqp::decont($v), Int, q|$!value|)) } };  my Foo $x .=
> new: 42; say $x; say $x.WHAT;
> rakudo-moar bb4579: OUTPUT: «(signal SEGV)»

timotimo++ fixed this.

Rakudo fix: https://github.com/rakudo/rakudo/commit/dff7d9b28a
NQPfix: https://github.com/perl6/nqp/commit/4bc6050d6e
MoarVM fix: https://github.com/MoarVM/MoarVM/commit/3b4b032984
Tests:  https://github.com/rakudo/rakudo/commit/0d2ca0d7e1


[perl #132126] [SEGV] When raking through Int guts

2017-09-19 Thread Zoffix Znet via RT
On Tue, 19 Sep 2017 08:15:15 -0700, c...@zoffix.com wrote:
> m: use nqp; class Foo is Int { method new ($v) {
> nqp::p6bindattrinvres(self.bless, Int, q|$!value|,
> nqp::getattr(nqp::decont($v), Int, q|$!value|)) } };  my Foo $x .=
> new: 42; say $x; say $x.WHAT;
> rakudo-moar bb4579: OUTPUT: «(signal SEGV)»

timotimo++ fixed this.

Rakudo fix: https://github.com/rakudo/rakudo/commit/dff7d9b28a
NQPfix: https://github.com/perl6/nqp/commit/4bc6050d6e
MoarVM fix: https://github.com/MoarVM/MoarVM/commit/3b4b032984
Tests:  https://github.com/rakudo/rakudo/commit/0d2ca0d7e1


[perl #132126] [SEGV] When raking through Int guts

2017-09-19 Thread via RT
# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #132126]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=132126 >


m: use nqp; class Foo is Int { method new ($v) { 
nqp::p6bindattrinvres(self.bless, Int, q|$!value|, 
nqp::getattr(nqp::decont($v), Int, q|$!value|)) } };  my Foo $x .= new: 42; say 
$x; say $x.WHAT;
rakudo-moar bb4579: OUTPUT: «(signal SEGV)»