Bug#924517: perl: POSIX::mblen() broken

Niko Tyni ntyni at debian.org
Wed Mar 13 20:49:25 GMT 2019


Package: perl
Version: 5.28.1-4
Tags: upstream patch

As reported in https://bugs.launchpad.net/bugs/1818953 POSIX::mblen()
is broken on threaded perls with glibc.

  % perl -MPOSIX=mblen -e 'mblen("a", 1)'
  perl: mbrtowc.c:105: __mbrtowc: Assertion `__mbsinit (data.__statep)' failed.
  zsh: abort (core dumped)  perl -MPOSIX=mblen -e 'mblen("a", 1)'

This is a 5.28 regression. I've reported it upstream with the attached
proposed patch, which should be trivial to backport to 5.28.

Will update this bug with the upstream ticket number once I get one.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-POSIX-mblen-mbstate_t-initialization-on-threaded.patch
Type: text/x-diff
Size: 4756 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/perl-maintainers/attachments/20190313/35efb06d/attachment.patch>


More information about the Perl-maintainers mailing list