Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
s// on utf8 string occasionally crashes with "Malformed UTF-8 character" #16019
This is a bug report for perl from Niko Tyni <firstname.lastname@example.org>,
As reported by Benjamin Bayart in https://bugs.debian.org/864782 a
I was able to get it down to
which crashes for me on blead ~50% of the time with something like
Malformed UTF-8 character: \x91 (unexpected continuation byte 0x91, with no preceding start byte) in substitution (s///) at /home/ntyni/864782.pl line 3.
Running this with valgrind shows invalid reads, and bisecting
make /fixed-substr/ much faster.
Site configuration information for perl 5.27.1:
Configured by ntyni at Wed Jun 14 20:16:03 BST 2017.
Summary of my perl5 (revision 5 version 27 subversion 1) configuration:
@INC for perl 5.27.1:
Environment for perl 5.27.1:
On Wed, Jun 14, 2017 at 01:00:12PM -0700, Niko Tyni wrote:
Now fixed by v5.27.0-322-gbb152a4
Thank you for filing this report. You have helped make Perl better.
With the release yesterday of Perl 5.28.0, this and 185 other issues have been
Perl 5.28.0 may be downloaded via:
If you find that the problem persists, feel free to reopen this ticket.