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

op.c:9874: OP *Perl_ck_rvconst(OP *): Assertion `((gv)->sv_flags & 0x00000800)' failed #15667

Closed
p5pRT opened this issue Oct 16, 2016 · 6 comments

Comments

@p5pRT
Copy link

p5pRT commented Oct 16, 2016

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

Searchable as RT129898$

@p5pRT
Copy link
Author

p5pRT commented Oct 16, 2016

From @geeknik

Triggered with Perl v5.25.6 (v5.25.5-106-g877b982).

od -tx1 test185
0000000 40 30 3d 73 70 6c 69 74 28 30 2c 3c 3c 29 3b 65
0000020 76 61 6c 24 27 2e 70 6f 70 28 40 30 29 2e 27 3d
0000040 27 2e 30 77 68 69 6c 65 40 30 0a 3a 3a 30 25 3a
0000060 3a 0a
0000062

./perl test185

Use of bare << to mean <<"" is deprecated at test185 line 1.
perl​: op.c​:9874​: OP *Perl_ck_rvconst(OP *)​: Assertion `((gv)->sv_flags &
0x00000800)' failed.
Aborted

@p5pRT
Copy link
Author

p5pRT commented Oct 16, 2016

From @geeknik

test185.gz

@p5pRT
Copy link
Author

p5pRT commented Nov 11, 2016

From @hvds

This can be reduced to​:

% ./miniperl -we 'BEGIN { delete $​::{"main​::"} } :​: = 0'
miniperl​: op.c​:9873​: Perl_ck_rvconst​: Assertion `((gv)->sv_flags & 0x00000800)' failed.
Aborted (core dumped)
%

I'm not sure exactly what '​:: = 0' means (filehandle assignment?); sticking a star in there gives a slightly different assert​:

% ./miniperl -we 'BEGIN { delete $​::{"main​::"} } *​:: = 0'
miniperl​: op.c​:9872​: Perl_ck_rvconst​: Assertion `iscv' failed.
Aborted (core dumped)
%

I'm not sure this is more than "doctor, my foot hurts when I shoot like this".

Hugo

@p5pRT
Copy link
Author

p5pRT commented Nov 11, 2016

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

@p5pRT
Copy link
Author

p5pRT commented Mar 27, 2017

From @iabyn

On Fri, Nov 11, 2016 at 04​:39​:09AM -0800, Hugo van der Sanden via RT wrote​:

This can be reduced to​:

% ./miniperl -we 'BEGIN { delete $​::{"main​::"} } :​: = 0'
miniperl​: op.c​:9873​: Perl_ck_rvconst​: Assertion `((gv)->sv_flags & 0x00000800)' failed.
Aborted (core dumped)
%

I'm not sure exactly what '​:: = 0' means (filehandle assignment?);

It's just a bareword string; equivalent to "​::" = 0;

sticking a star in there gives a slightly different assert​:

% ./miniperl -we 'BEGIN { delete $​::{"main​::"} } *​:: = 0'
miniperl​: op.c​:9872​: Perl_ck_rvconst​: Assertion `iscv' failed.
Aborted (core dumped)
%

I'm not sure this is more than "doctor, my foot hurts when I shoot like this".

A bisect shows them both fixed by the following, which sounds
plausible. So I'll close the ticket.

commit 120921a
Author​: Zefram <zefram@​fysh.org>
Date​: Sun Jan 22 07​:26​:34 2017 +0000

  fix special-case recreation of *​::
 
  If *​:: is called for then as a special case it is looked up as
  $​::{"main​::"}. If $​::{"main​::"} has been deleted, then that hash entry
  is recreated. But formerly it was only recreated as an undef scalar,
  which broke things relying on glob lookup returning a glob. Now in
  that special case the recreated hash entry is initialised as a glob,
  and populated with the customary recursive reference to the main stash.
  Fixes [perl #129869].

--
You never really learn to swear until you learn to drive.

@p5pRT p5pRT closed this as completed Mar 27, 2017
@p5pRT
Copy link
Author

p5pRT commented Mar 27, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant