Skip Menu |

Subject: Assertion Failure: S_parse_ident (toke.c:8926)
The attached script triggers an assertion failure in Perl v5.25.4 (v5.25.3-305-g8c6b0c7). ./perl test26 : toke.c:8926: void S_parse_ident(char **, char **, char *const, int, _Bool, _Bool): Assertion `((((U8)((*(((U8*)t)+1 )) | 0)) & 0xC0) == 0x80)' failed. Aborted
Subject: test26
Download test26
application/octet-stream 37b

Message body not shown because it is not plain text.

RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 762b
On Sun Aug 21 14:06:06 2016, brian.carpenter@gmail.com wrote: Show quoted text
> The attached script triggers an assertion failure in Perl v5.25.4 > (v5.25.3-305-g8c6b0c7).
That $^H assignment turns on the utf8 pragma. So I can trigger it more clearly like this: $ perl -le 'print "use utf8;p\xc3"'|./miniperl -Ilib Assertion failed: (((((U8)((*(((U8*)t)+1 )) | 0)) & 0xC0) == 0x80)), function S_parse_ident, file toke.c, line 8926. Abort trap: 6 Taking away the p shows the cause: $ perl -le 'print "use utf8;\xc3"'|./miniperl -Ilib Malformed UTF-8 character (unexpected non-continuation byte 0x0a, immediately after start byte 0xc3) at - line 1. This is already a known problem. I suggested a solution to #126310 that would solve this as well. -- Father Chrysostomos
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 183b
Thanks for the report This has been fixed in blead; I believe by 6cdc5cd8f36f88172b0fcefdcadec75f5b6600b2. Test added by 00c7fba717c4212ca81ed1a46acf38ed3685c27c -- Karl Williamson
Download (untitled) / with headers
text/plain 313b
Thank you for filing this report. You have helped make Perl better. With the release today of Perl 5.26.0, this and 210 other issues have been resolved. Perl 5.26.0 may be downloaded via: https://metacpan.org/release/XSAWYERX/perl-5.26.0 If you find that the problem persists, feel free to reopen this ticket.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org