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

non-first .subst call in the REPL segfaults on Moar in Rakudo #3375

Closed
p6rt opened this issue Apr 24, 2014 · 5 comments
Closed

non-first .subst call in the REPL segfaults on Moar in Rakudo #3375

p6rt opened this issue Apr 24, 2014 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 24, 2014

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

Searchable as RT121726$

@p6rt
Copy link
Author

p6rt commented Apr 24, 2014

From @masak

<JimmyZ> [root@​li618-176 ~]# perl6 -e 'say "abc".subst(/.+/, "a")'
<JimmyZ> a
<JimmyZ> [root@​li618-176 ~]# perl6
<JimmyZ> > my $s = 'abc';
<JimmyZ> abc
<JimmyZ> > $s.subst(/.+/, 'a')
<JimmyZ> Segmentation fault (core dumped)
<JimmyZ> A bug...
<masak> JimmyZ​: reproduced locally.
* masak submits rakudobug

$ perl6 --version
This is perl6 version 2014.04-5-g921615b built on MoarVM version 2014.04

The trigger seems to be *any* use of .subst after the first thing
evaluated on the REPL.

$ perl6

""

"".subst(/<?>/, "")
Segmentation fault

@p6rt
Copy link
Author

p6rt commented Jul 29, 2014

From @perlpilot

On Thu Apr 24 07​:58​:22 2014, masak wrote​:

<JimmyZ> [root@​li618-176 ~]# perl6 -e 'say "abc".subst(/.+/, "a")'
<JimmyZ> a
<JimmyZ> [root@​li618-176 ~]# perl6
<JimmyZ> > my $s = 'abc';
<JimmyZ> abc
<JimmyZ> > $s.subst(/.+/, 'a')
<JimmyZ> Segmentation fault (core dumped)
<JimmyZ> A bug...
<masak> JimmyZ​: reproduced locally.
* masak submits rakudobug

$ perl6 --version
This is perl6 version 2014.04-5-g921615b built on MoarVM version 2014.04

The trigger seems to be *any* use of .subst after the first thing
evaluated on the REPL.

$ perl6

""

"".subst(/<?>/, "")
Segmentation fault

Seems to be fixed ...
➤ perl6 --version
This is perl6 version 2014.07-62-gc00999a built on MoarVM version 2014.07-34-g0513b67
➤ perl6

my $s = 'abc';
abc
$s.subst(/.+/, 'a')
a

-Scott

@p6rt
Copy link
Author

p6rt commented Jul 29, 2014

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 2, 2014

From @jnthn

On Tue Jul 29 08​:44​:15 2014, duff wrote​:

On Thu Apr 24 07​:58​:22 2014, masak wrote​:

<JimmyZ> [root@​li618-176 ~]# perl6 -e 'say "abc".subst(/.+/, "a")'
<JimmyZ> a
<JimmyZ> [root@​li618-176 ~]# perl6
<JimmyZ> > my $s = 'abc';
<JimmyZ> abc
<JimmyZ> > $s.subst(/.+/, 'a')
<JimmyZ> Segmentation fault (core dumped)
<JimmyZ> A bug...
<masak> JimmyZ​: reproduced locally.
* masak submits rakudobug

$ perl6 --version
This is perl6 version 2014.04-5-g921615b built on MoarVM version
2014.04

The trigger seems to be *any* use of .subst after the first thing
evaluated on the REPL.

$ perl6

""

"".subst(/<?>/, "")
Segmentation fault

Seems to be fixed ...
➤ perl6 --version
This is perl6 version 2014.07-62-gc00999a built on MoarVM version
2014.07-34-g0513b67
➤ perl6

my $s = 'abc';
abc
$s.subst(/.+/, 'a')
a

Yup, also can't reproduce it​:

my $s = 'abc';
abc
$s.subst(/.+/, 'a')
a

So, resolving; can always re-open with more info if it turns out it is still crashy on some platform combination.

Thanks,

/jnthn

@p6rt
Copy link
Author

p6rt commented Oct 2, 2014

@jnthn - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Oct 2, 2014
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant