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

utf8.c:1418: UV Perl_utf8n_to_uvchr_error(const U8 *, STRLEN, STRLEN *, const U32, U32 *): Assertion `0' failed #15803

Closed
p5pRT opened this issue Jan 12, 2017 · 11 comments

Comments

@p5pRT
Copy link

p5pRT commented Jan 12, 2017

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

Searchable as RT130545$

@p5pRT
Copy link
Author

p5pRT commented Jan 12, 2017

From @geeknik

Triggered with Perl v5.25.8-191-ga4ea138.

od -tx1 test008
0000000 24 68 30 30 6c 3d 24 5f 20 77 68 69 6c 65 3c 44
0000020 41 54 41 3e 3b 24 68 30 30 6c 3d 7e 73 2f 5b 30
0000040 5d 28 5b 30 5d 29 2f 30 30 2e 63 68 72 28 6f 72
0000060 64 28 29 2d 32 29 2f 65 3d 7e 30 3b 24 68 30 30
0000100 6c 3d 7e 73 2f 28 29 2f 28 6f 72 64 28 24 31 29
0000120 29 2f 65 3b 28 30 2c 28 29 29 5f 5f 45 4e 44 5f
0000140 5f 0a 30 30
0000144

./perl test008
perl​: utf8.c​:1418​: UV Perl_utf8n_to_uvchr_error(const U8 *, STRLEN, STRLEN
*, const U32, U32 *)​: Assertion `0' failed.
Aborted

@p5pRT
Copy link
Author

p5pRT commented Jan 12, 2017

From @geeknik

test008.gz

@p5pRT
Copy link
Author

p5pRT commented Jan 27, 2017

From zefram@fysh.org

Reduces to​:

$ perl -e '$a = ""; utf8​::upgrade($a); ord($a)'
perl​: utf8.c​:1418​: Perl_utf8n_to_uvchr_error​: Assertion `0' failed.
zsh​: abort LD_LIBRARY_PATH=$PWD LD_PRELOAD=$PWD/libperl.so ./perl -e

-zefram

@p5pRT
Copy link
Author

p5pRT commented Jan 27, 2017

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

@p5pRT
Copy link
Author

p5pRT commented Jan 27, 2017

From zefram@fysh.org

Fixed by aee9b91.

-zefram

@p5pRT
Copy link
Author

p5pRT commented Jan 27, 2017

From @khwilliamson

On 01/26/2017 10​:55 PM, Zefram wrote​:

Fixed by aee9b91.

-zefram

Thanks for finding this.

It occurs to me that taking the ord of an empty string should return
undef, as there are no code points in it at all. Should I open a ticket
to this effect?

@p5pRT
Copy link
Author

p5pRT commented Jan 27, 2017

From zefram@fysh.org

Karl Williamson wrote​:

It occurs to me that taking the ord of an empty string should return undef,

The time to do that would be in perl-1.0, when ord appeared with its
present behaviour, or at least some time prior to 5.14, when this
behaviour was documented.

-zefram

@p5pRT
Copy link
Author

p5pRT commented Feb 7, 2017

From @khwilliamson

Thanks for finding and reporting this. Fixed by aee9b91
--
Karl Williamson

@p5pRT
Copy link
Author

p5pRT commented Feb 7, 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