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

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

Thread Next
Father Chrysostomos via RT
August 21, 2016 21:55
[perl #129036] Assertion Failure: S_parse_ident (toke.c:8926)
Message ID:
On Sun Aug 21 14:06:06 2016, 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

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