Skip Menu |
Report information
Id: 130545
Status: resolved
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: brian.carpenter [at] gmail.com
Cc:
AdminCc:

Operating System: (no value)
PatchStatus: (no value)
Severity: low
Type: unknown
Perl Version: (no value)
Fixed In: (no value)



Subject: utf8.c:1418: UV Perl_utf8n_to_uvchr_error(const U8 *, STRLEN, STRLEN *, const U32, U32 *): Assertion `0' failed
From: "Brian 'geeknik' Carpenter" <brian.carpenter [...] gmail.com>
Date: Thu, 12 Jan 2017 00:13:34 -0600
To: perlbug [...] perl.org
Download (untitled) / with headers
text/plain 566b
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

Download test008.gz
application/x-gzip 111b

Message body not shown because it is not plain text.

Date: Fri, 27 Jan 2017 05:39:43 +0000
From: Zefram <zefram [...] fysh.org>
Subject: Re: [perl #130545] utf8.c:1418: UV Perl_utf8n_to_uvchr_error(const U8 *, STRLEN, STRLEN *, const U32, U32 *): Assertion `0' failed
To: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 214b
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
To: perl5-porters [...] perl.org
From: Zefram <zefram [...] fysh.org>
Subject: Re: [perl #130545] utf8.c:1418: UV Perl_utf8n_to_uvchr_error(const U8 *, STRLEN, STRLEN *, const U32, U32 *): Assertion `0' failed
Date: Fri, 27 Jan 2017 05:55:20 +0000
Fixed by aee9b917f80b04bd283350cd91f52f2e928c71e9. -zefram
Date: Fri, 27 Jan 2017 12:27:22 -0700
To: Zefram <zefram [...] fysh.org>, perl5-porters [...] perl.org
From: Karl Williamson <public [...] khwilliamson.com>
Subject: Re: [perl #130545] utf8.c:1418: UV Perl_utf8n_to_uvchr_error(const U8 *, STRLEN, STRLEN *, const U32, U32 *): Assertion `0' failed
Download (untitled) / with headers
text/plain 294b
On 01/26/2017 10:55 PM, Zefram wrote: Show quoted text
> Fixed by aee9b917f80b04bd283350cd91f52f2e928c71e9. > > -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?
Date: Fri, 27 Jan 2017 21:52:03 +0000
To: perl5-porters [...] perl.org
From: Zefram <zefram [...] fysh.org>
Subject: Re: [perl #130545] utf8.c:1418: UV Perl_utf8n_to_uvchr_error(const U8 *, STRLEN, STRLEN *, const U32, U32 *): Assertion `0' failed
Download (untitled) / with headers
text/plain 272b
Karl Williamson wrote: Show quoted text
>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
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 109b
Thanks for finding and reporting this. Fixed by aee9b917f80b04bd283350cd91f52f2e928c71e9 -- 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