Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion Failure: S_parse_ident (toke.c:8926) #15541

Closed
p5pRT opened this issue Aug 21, 2016 · 8 comments
Closed

Assertion Failure: S_parse_ident (toke.c:8926) #15541

p5pRT opened this issue Aug 21, 2016 · 8 comments

Comments

@p5pRT
Copy link

p5pRT commented Aug 21, 2016

Migrated from rt.perl.org#129036 (status was 'resolved')

Searchable as RT129036$

@p5pRT
Copy link
Author

p5pRT commented Aug 21, 2016

From @geeknik

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

@p5pRT
Copy link
Author

p5pRT commented Aug 21, 2016

From @geeknik

test26

@p5pRT
Copy link
Author

p5pRT commented Aug 21, 2016

From @cpansprout

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

@p5pRT
Copy link
Author

p5pRT commented Aug 21, 2016

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Jan 30, 2017

From @khwilliamson

Thanks for the report

This has been fixed in blead; I believe by 6cdc5cd. Test added by 00c7fba
--
Karl Williamson

@p5pRT
Copy link
Author

p5pRT commented Jan 30, 2017

@khwilliamson - Status changed from 'open' to 'pending release'

@p5pRT
Copy link
Author

p5pRT commented May 30, 2017

From @khwilliamson

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.

@p5pRT p5pRT closed this as completed May 30, 2017
@p5pRT
Copy link
Author

p5pRT commented May 30, 2017

@khwilliamson - Status changed from 'pending release' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant