develooper Front page | perl.perl5.porters | Postings from February 2015

[perl #123802] Segfault in Perl_yyparse with minimized test case from #123801

Thread Previous | Thread Next
Hugo van der Sanden via RT
February 24, 2015 19:58
[perl #123802] Segfault in Perl_yyparse with minimized test case from #123801
Message ID:
On Sun Feb 22 16:43:16 2015, sprout wrote:
> This assertion failure is fixed in f4460c6f7a, but I get another one
> now:
> $ echo -n '/$0{}/' | ./miniperl
> Assertion failed: (SvTYPE(sv) != (svtype)SVTYPEMASK), function
> Perl_sv_clear, file sv.c, line 6536.
> Abort trap: 6
> This seems to have to do with perly.c not reference-counting PL_compcv
> correctly.  But I could be wrong.

I think so, I'm seeing similar problems when there's a parse error in a double quoted string or glob:

% cat t1
% ./miniperl -c t1
Segmentation fault (core dumped)
% cat t2
% ./miniperl -c t2
Segmentation fault (core dumped)

The first fails during the SvREFCNT_dec here:
#7  0x00000000004b82a6 in Perl_yyparse (gramtype=258) at perly.c:423
.. and the second just after grabbing a compcv here:
#0  0x00000000004b8938 in Perl_yyparse (gramtype=258) at perly.c:528


via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About