develooper Front page | perl.perl5.porters | Postings from December 2017

[perl #132583] Assertion failure in perl_yylex (toke.c:6333)

Brian Carpenter
December 15, 2017 04:46
[perl #132583] Assertion failure in perl_yylex (toke.c:6333)
Message ID:
# New Ticket Created by  Brian Carpenter 
# Please include the string:  [perl #132583]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This assertion failure was triggered in Perl v5.27.6-156-g5d4548b73b,
compiled with Clang 6.0.0-trunk and -fsanitize=address.

./perl -e 'format=

perl: toke.c:6333: int Perl_yylex(void): Assertion
`((char*)PL_scopestack_name[PL_scopestack_ix-1] == (char*)"lex_format") ||
strEQ(PL_scopestack_name[PL_scopestack_ix-1], "lex_format")' failed.

#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58
#1  0x00007ffff6cc837a in __GI_abort () at abort.c:89
#2  0x00007ffff6cbeb47 in __assert_fail_base (fmt=<optimized out>,
assertion=assertion@entry=0xc555c0 <.str.182>
"((char*)PL_scopestack_name[PL_scopestack_ix-1] == (char*)\"lex_format\")
|| strEQ(PL_scopestack_name[PL_scopestack_ix-1], \"lex_format\")",
file=file@entry=0xc4b240 <.str.1> "toke.c",
    line=line@entry=6333, function=function@entry=0xc4d840
<__PRETTY_FUNCTION__.Perl_yylex> "int Perl_yylex(void)") at assert.c:92
#3  0x00007ffff6cbebf2 in __GI___assert_fail (assertion=0xc555c0 <.str.182>
"((char*)PL_scopestack_name[PL_scopestack_ix-1] == (char*)\"lex_format\")
|| strEQ(PL_scopestack_name[PL_scopestack_ix-1], \"lex_format\")",
file=0xc4b240 <.str.1> "toke.c", line=6333,
    function=0xc4d840 <__PRETTY_FUNCTION__.Perl_yylex> "int
Perl_yylex(void)") at assert.c:101
#4  0x000000000064d2ec in Perl_yylex () at toke.c:6333
#5  0x00000000006a67f4 in Perl_yyparse (gramtype=<optimized out>) at
#6  0x00000000005a3c22 in S_parse_body (env=<optimized out>,
xsinit=<optimized out>) at perl.c:2447
#7  0x000000000059ea24 in perl_parse (my_perl=<optimized out>,
xsinit=0x5036f0 <xs_init>, argc=2, argv=<optimized out>, env=0x0) at
#8  0x0000000000503486 in main (argc=0, argv=0x7ffff6cc677f
<__GI_raise+159>, env=0x7fffffffe380) at perlmain.c:121 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About