Your message dated Mon, 25 Mar 2019 20:44:42 +0000
with message-id <e1h8wsy-000elx...@fasolo.debian.org>
and subject line Bug#925360: fixed in pcre2 10.32-5
has caused the Debian Bug report #925360,
regarding pcre2: Uses SSE2 unconditionally on i386
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 ow...@bugs.debian.org
immediately.)


-- 
925360: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925360
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: pcre2
Source-Version: 10.32-4
Severity: serious
Tags: upstream patch

Hi!

I just upgraded a server of mine to Debian buster, and roundcube's
postinst started to crash with "Illegal instruction" messages from a
php process, due to usage of a SSE2 instruction (PSLLDQ). This
instruction is not required by our ISA baseline, and SSE2 is not
present on many i386 based CPUs, such as AMD Semprons for example.

Tracking this down was a bit of a pain, as the offending instructions
were JITed at run-time, so there were no symbols associated, or
indication from where this was coming from. Checking php source
themselves revelead at least what seemed like some unconditional usage
of AVX, SSE2, SSS3 and SSE4.x instructions, and I've got a patch for
that, but this didn't fix the problem. Because php links against the
system pcre2 instead of using its internal embedded copy. :)

So attached is the matching patch for pcre2, that does fix this issue
for me.

Thanks,
Guillem
diff -u pcre2-10.32/debian/changelog pcre2-10.32/debian/changelog
--- pcre2-10.32/debian/changelog
+++ pcre2-10.32/debian/changelog
@@ -1,3 +1,12 @@
+pcre2 (10.32-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Do not unconditionally use SSE2 instructions on i386, as some processors
+    that conform to the architecture ISA baseline, do not support that
+    instruction set.
+
+ -- Guillem Jover <guil...@debian.org>  Sat, 23 Mar 2019 19:24:32 +0100
+
 pcre2 (10.32-4) unstable; urgency=medium
 
   * Take patch from Jeremy Bicha to build with
only in patch2:
unchanged:
--- pcre2-10.32.orig/src/pcre2_jit_compile.c
+++ pcre2-10.32/src/pcre2_jit_compile.c
@@ -5120,8 +5120,9 @@
   }
 
 #if (defined SLJIT_CONFIG_X86 && SLJIT_CONFIG_X86) && !(defined SUPPORT_VALGRIND) && !(defined _WIN64)
-if (check_fast_forward_char_pair_sse2(common, chars, max))
-  return TRUE;
+if (sljit_has_cpu_feature(SLJIT_HAS_SSE2))
+  if (check_fast_forward_char_pair_sse2(common, chars, max))
+    return TRUE;
 #endif
 
 in_range = FALSE;

--- End Message ---
--- Begin Message ---
Source: pcre2
Source-Version: 10.32-5

We believe that the bug you reported is fixed in the latest version of
pcre2, 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 925...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthew Vernon <matt...@debian.org> (supplier of updated pcre2 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 25 Mar 2019 19:56:19 +0000
Source: pcre2
Binary: libpcre2-8-0 libpcre2-8-0-udeb libpcre2-16-0 libpcre2-32-0 
libpcre2-posix0 libpcre2-dev libpcre2-dbg pcre2-utils
Architecture: i386 source
Version: 10.32-5
Distribution: unstable
Urgency: high
Maintainer: Matthew Vernon <matt...@debian.org>
Changed-By: Matthew Vernon <matt...@debian.org>
Closes: 925360
Description: 
 libpcre2-16-0 - New Perl Compatible Regular Expression Library - 16 bit 
runtime f
 libpcre2-32-0 - New Perl Compatible Regular Expression Library - 32 bit 
runtime f
 libpcre2-8-0 - New Perl Compatible Regular Expression Library- 8 bit runtime 
fil
 libpcre2-8-0-udeb - New Perl Compatible Regular Expression Library- 8 bit 
runtime fil (udeb)
 libpcre2-dbg - New Perl Compatible Regular Expression Library - debug symbols
 libpcre2-dev - New Perl Compatible Regular Expression Library - development 
file
 libpcre2-posix0 - New Perl Compatible Regular Expression Library - 
posix-compatible
 pcre2-utils - New Perl Compatible Regular Expression Library - utilities
Changes:
 pcre2 (10.32-5) unstable; urgency=high
 .
   * Patch from Guillem Jover <guil...@debian.org> to only use SSE2
     instructions on those i386 CPUs that support them (Closes: #925360)
Checksums-Sha1: 
 91521655279cb5890f81d3161cdf17d85b9d7410 2342 pcre2_10.32-5.dsc
 42481f63652a76b555b38f9f6f197503f98d12b3 5187 pcre2_10.32-5.diff.gz
 7a8dee665d2c4ea85bbe2d3d4adf5e7af749d46b 5911 pcre2_10.32-5_source.buildinfo
 6f5ba094cd63dac2d2f56be97fb37136debc57bd 202532 libpcre2-16-0_10.32-5_i386.deb
 0c1347635fbea9e6efa9b06485be878e58184a40 194496 libpcre2-32-0_10.32-5_i386.deb
 3c0c2d5a4ad70f70af31f8255bfe14bc58daa238 178864 
libpcre2-8-0-udeb_10.32-5_i386.udeb
 d737ed3dfcffb6cc4795479105f35f3e753a57ee 214308 libpcre2-8-0_10.32-5_i386.deb
 14e79009430d74b7c3e98a3384438b5e9b497463 1507452 libpcre2-dbg_10.32-5_i386.deb
 f83be2547bbf4399987d9c2368c59742b23ad49e 671988 libpcre2-dev_10.32-5_i386.deb
 ecfce1fcb51193ee9d43ee21ff56f04774050af8 38780 libpcre2-posix0_10.32-5_i386.deb
 9efd9e7953a3a2b2487d01fbc0102bee12e77996 143268 pcre2-utils_10.32-5_i386.deb
 781de73d327b71a1e0980b9c20a643737432e767 6131 pcre2_10.32-5_i386.buildinfo
Checksums-Sha256: 
 df327f59608e018603b138cf5a557fe5febfa5f24281152d68f3a52ba542d504 2342 
pcre2_10.32-5.dsc
 bfe23d2661bf5727a10a1c1e49660c35afc0a4ad1c151bdcefb7c5a52e71e685 5187 
pcre2_10.32-5.diff.gz
 f30a82986a71644062bfcbb44df8cac389b23e16f6d01c276b1d6e138e249d5b 5911 
pcre2_10.32-5_source.buildinfo
 4c12a4b51773dd2cb3c69b8e5631788702090658abacd3484106fdd3b5a4d480 202532 
libpcre2-16-0_10.32-5_i386.deb
 013526a2b99a4e238022623f7c2f1f0795f6203cd7c794eb17a64bd48c7d9cc4 194496 
libpcre2-32-0_10.32-5_i386.deb
 e66c061f3e3c64ba9527d72c709b212efa467aec95302bac70272a2b174a71cb 178864 
libpcre2-8-0-udeb_10.32-5_i386.udeb
 5cc4ef045d0749c757605a670407f0931ee67182cd19d55b268b8759efa2db59 214308 
libpcre2-8-0_10.32-5_i386.deb
 62c2a69bdae1c60a39d4b69ba1509b1f4f1cb412fee7d76acd16d41dffe18fa8 1507452 
libpcre2-dbg_10.32-5_i386.deb
 bf270370696383037b246e8247a4e31f39d6033d5b5eb802feb293f8b4caaebd 671988 
libpcre2-dev_10.32-5_i386.deb
 84c70da040755b7966ebf610c1b58cf2fd26cbdb668cc182562200784068fb3f 38780 
libpcre2-posix0_10.32-5_i386.deb
 fe929da01932fd87c7440b7b61bd657118ae97c310b89f20204230b0e5e38d6c 143268 
pcre2-utils_10.32-5_i386.deb
 dc3fd062ca9e6d5d577a952ccdba0521b4cb57e3c7ed958869e3e7048d531320 6131 
pcre2_10.32-5_i386.buildinfo
Files: 
 b846f2fb108bc3d6a08701fd48b587b9 2342 libs optional pcre2_10.32-5.dsc
 a85dab51afe9f3af83412f227f0d3cd1 5187 libs optional pcre2_10.32-5.diff.gz
 6b913ed5ef3cc8483ff10f24d4b6bab1 5911 libs optional 
pcre2_10.32-5_source.buildinfo
 7a3f657c136904b6941d0bcb9addbc14 202532 libs optional 
libpcre2-16-0_10.32-5_i386.deb
 22ea9f22bfc19ad4bad889101cddf3e2 194496 libs optional 
libpcre2-32-0_10.32-5_i386.deb
 76bf10afa1206119c3ea4c65c712b4c6 178864 debian-installer optional 
libpcre2-8-0-udeb_10.32-5_i386.udeb
 9a64f020656daedae731c57f98778356 214308 libs optional 
libpcre2-8-0_10.32-5_i386.deb
 59e835bfb350c21b1e562b98dbf0aecf 1507452 debug optional 
libpcre2-dbg_10.32-5_i386.deb
 cfe104a0f270f8f16112368b3d112e0e 671988 libdevel optional 
libpcre2-dev_10.32-5_i386.deb
 707a245adbdd286dc979d75c64eb13d1 38780 libs optional 
libpcre2-posix0_10.32-5_i386.deb
 74cdede818997f1b0a34f279e35a2550 143268 utils optional 
pcre2-utils_10.32-5_i386.deb
 3caf5e9fd09c5e306583184f709d8237 6131 libs optional 
pcre2_10.32-5_i386.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJHBAEBCgAxFiEEuk75yE35bTfYoeLUEvTSHI9qY8gFAlyZNO0THG1hdHRoZXdA
ZGViaWFuLm9yZwAKCRAS9NIcj2pjyLplEACVEMfDggF2hNXuOC021D1i0+KRZHQd
8CgCqqebVi58zgMNzANHwt27GHkFBMlQomEeBtb538QWYE2290jj64M7Amukli/0
T4+nyE2n10Uh+A9Zbt3D6nTOZgXxSveTUDGx16MmaxjvRLKnC9ZJ/vdlz11Adw+I
RZ8fDm8AnpxaP/Ueq4Uyso/QtQX+3xO0BPzzwgCKEIccUMK6XoZfjSX3+Xx1HTx8
24Tx9uDx7oFDdMZ2ej2CMHYQMGy66KTeXHPo4GidRGJsdBheAjNiy1na3a1c2GbT
A/vzn6yrPvP+ajfdyEcfKQXk2lEHuKMjOflUC68NtzqMUaCl/A4kT94SdcLNWVmh
kE5bSE+F0JTIhPPgjdSOivzZxJHDJgz23+tAYyXkeTXjuMmyb2MbYL+n/OFIlQn9
qIog2E1ZaASHd02TfQUxldr5JlA6giRuT/5iPrhEC64CB+CAUCaytMXOmfmrF45r
acCDt0YA5wvC46HQgJ4gvwkif2A9RbBWfJy7X4lxGINO17/lI+vdyYugS1/gYKbJ
D6BfmHDWpvSenVx+/6svtTwTQAdKndMdusYU5maQrfuVBa/rbUmDdDt91Yzsjw/+
oUdTHNEPfrowToRcKJTSAHh+4QdHNZvCDs0PdUVB8z57Sb7WTVlpQZmR8efiLcPZ
qjVM+3U/U1qQog==
=S5+M
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to