Your message dated Sat, 15 Jul 2017 22:17:19 +0000 with message-id <[email protected]> and subject line Bug#864782: fixed in perl 5.24.1-3+deb9u1 has caused the Debian Bug report #864782, regarding perl: Regexp matching crashes claiming string is malformed Utf8, despite it is valid. to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 864782: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864782 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: perl Version: 5.24.1-3 Severity: normal Tags: upstream Dear Maintainer, In some cases, some valid utf-8 chinese (or japanese Kanji) chars in a perl string makes perl die on "Malformed UTF-8" while matching a regexp. Here is the smallest programm (all in ascii, for safety) creating the problem. #!/usr/bin/perl use strict; use warnings; my $text = "[quant,_1,\x{55b6}\x{696d}\x{65e5},\x{55b6}\x{696d}\x{65e5}]\x{6bce}"; eval {$text =~ s{((?<!~)(?:~~)*)\[([A-Za-z#*]\w*)(?:,([^\]]+))?\]}{"$1%$2($3)"}eg; }; if ( $@ ) { die "Failed $@"; } else { print "Works, for now\n"; } The very same text, on the very same regexp, did not create problems on the previous (5.20.*, 5.22.*) versions of perl. We use that text, and that regexp, in production environment, using Debian stable, and everything is running fine. Beware : it *often* crashes. Not always. When you add entropy, you can get down to a crash out of two run of the program (use-ing some more stuff, printing, etc). This precise test script seems to crash everytime I use it on my developpement environment. Regards, Benjamin. -- System Information: Debian Release: 9.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.12-1-amd64 (SMP w/3 CPU cores) Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15), LANGUAGE=en_US.ISO-8859-15 (charmap=ISO-8859-15) Shell: /bin/sh linked to /bin/bash Init: systemd (via /run/systemd/system) Versions of packages perl depends on: ii dpkg 1.18.24 ii libperl5.24 5.24.1-3 ii perl-base 5.24.1-3 ii perl-modules-5.24 5.24.1-3 Versions of packages perl recommends: ii netbase 5.4 ii rename 0.20-4 Versions of packages perl suggests: ii libterm-readline-gnu-perl 1.35-1 ii libterm-readline-perl-perl 1.0303-1 ii make 4.1-9.1 ii perl-doc 5.24.1-3 -- no debconf information
--- End Message ---
--- Begin Message ---Source: perl Source-Version: 5.24.1-3+deb9u1 We believe that the bug you reported is fixed in the latest version of perl, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Dominic Hargreaves <[email protected]> (supplier of updated perl package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Tue, 11 Jul 2017 16:27:24 +0100 Source: perl Binary: perl-base perl-doc perl-debug libperl5.24 libperl-dev perl-modules-5.24 perl Architecture: source Version: 5.24.1-3+deb9u1 Distribution: stretch Urgency: medium Maintainer: Niko Tyni <[email protected]> Changed-By: Dominic Hargreaves <[email protected]> Description: libperl-dev - Perl library: development files libperl5.24 - shared Perl library perl - Larry Wall's Practical Extraction and Report Language perl-base - minimal Perl system perl-debug - debug-enabled Perl interpreter perl-doc - Perl documentation perl-modules-5.24 - Core Perl modules Closes: 855532 864544 864782 867170 Changes: perl (5.24.1-3+deb9u1) stretch; urgency=medium . * Backport various Getopt-Long fixes from upstream 2.49..2.51. (Closes: #855532, #864544) * Backport upstream patch fixing regexp "Malformed UTF-8 character" crashes. (Closes: #864782) * Apply upstream base.pm no-dot-in-inc fix (from 5.24.2-RC1) (Closes: #867170) Checksums-Sha1: 0dda727b1c495363e9c2d3164ec84e0430ff9950 2393 perl_5.24.1-3+deb9u1.dsc de4ca93fdd35829feb235ced0d9541fae4b32bf2 172800 perl_5.24.1-3+deb9u1.debian.tar.xz 322aa9b8f0265bd4a2663752d868ae67094b7804 4975 perl_5.24.1-3+deb9u1_source.buildinfo Checksums-Sha256: 543956cb46686a577b7e6a6f3db713b4acb98e254d1f66a159757b7f2bf8ba68 2393 perl_5.24.1-3+deb9u1.dsc 928dc211d523b1e058cd2389873f564355c3b9df1ef7efc70f55dff106e5efea 172800 perl_5.24.1-3+deb9u1.debian.tar.xz a5e0e8abdbdbe424cdb95048fd80ee19563f46463087559a6b8989183e0abe1e 4975 perl_5.24.1-3+deb9u1_source.buildinfo Files: 36f9f3fe665078155fdf09bfbdcbc3b5 2393 perl standard perl_5.24.1-3+deb9u1.dsc efde87ddfd18f440008906c1bd1fdab3 172800 perl standard perl_5.24.1-3+deb9u1.debian.tar.xz 707e2e1f3f24681cba9165f55fd961c5 4975 perl standard perl_5.24.1-3+deb9u1_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJBBAEBCAArFiEEy0llJ/kAnyscGnbawAV+cU1pT7IFAllk9ckNHGRvbUBlYXJ0 aC5saQAKCRDABX5xTWlPshNoD/444u/9a9y34TgoT7am62N012Zbt3NuvU8EMXap KlnafIy2pWKkr9aLcGQVO0KQhnLp9lsHFV7+Op197iQ5wLF0Hw2ugx+fmhep+VN5 ZzsOjLe36PkC0K1+iAAPCsqU2dGzSRvD8z40H5Pq/uAqh/e7tcB2jtxvi4w1I4VQ kDXe6T20iUeqVJ/BS6xtGz/mKXNoPcYVjjzSUKeowTQWm9ztxNj8V/R8nbX7P0kB IeD/wA942TOh4Wxk6n26oiBHP5UtADKXJ1uonZp7wGCRYbmYYkhq235Sv1TC9TBx UTQ1RX3WJOlOKz6kXB+U+8AJq8tvkcHY4XxkxifjWxr0Z5uQpcJ6B3L8pqZ3i1MV 8lg9dmqAD0r3fBBwqQK0gCWohk7qrLct1jAcuNFyeluy8SCFW7JbA+iTWk9I+0Nq oQwklTHgCJ9I9PFxYcwOoqGEbrGntEzek9cDJsCDITPm0mufGWZAv5361gxB88wT GuCObYFJgLA1SnIr+yWg/W6YoYshf7DtXpv55Yq2gUB5CqYeMdNACj+7HOUtAUJV PcV3Lhdbt3utLGlkwqZhxOWr9LMNmtYjqz9vXOo2dZwreA5Ak9QAay8Rs93ShGms 8450bpQLDSSTB1RDWQzN3cbhep3hlg9uIYG2sQJH4GW1CjOhH3n/D2daY4PlMIbQ YHAaaw== =7D44 -----END PGP SIGNATURE-----
--- End Message ---

