develooper Front page | perl.perl5.porters | Postings from August 2016

[perl #129036] Assertion Failure: S_parse_ident (toke.c:8926)

Thread Next
From:
Father Chrysostomos via RT
Date:
August 21, 2016 21:55
Subject:
[perl #129036] Assertion Failure: S_parse_ident (toke.c:8926)
Message ID:
rt-4.0.24-12965-1471816545-384.129036-15-0@perl.org
On Sun Aug 21 14:06:06 2016, brian.carpenter@gmail.com wrote:
> 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


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=129036

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About