Package: src:pcre3
Version: 2:8.39-5
Severity: grave

Dear Maintainer,

the system-wide pcre3 library stack frame size detection is broken as described 
in
https://bugs.exim.org/show_bug.cgi?id=2173

and that breaks at least ppc64el and s390x build causing segfaults in the test 
suite (+ autopkgtest).

The patch from Sergei @ MariaDB is quite simple at it should pose no risk 
applying it:

diff --git a/pcre/pcre_exec.c b/pcre/pcre_exec.c
--- a/pcre/pcre_exec.c
+++ b/pcre/pcre_exec.c
@@ -509,6 +509,12 @@
                  (e.g. stopped by repeated call or recursion limit)
 */
 
+#ifdef __GNUC__
+static int
+match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
+  PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,
+  unsigned int rdepth) __attribute__((noinline,noclone));
+#endif
 static int
 match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
 PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,

Please apply the patch in the next maintenance window for PCRE3,
including stable and possibly oldstable as this causes segfaults (at
least) in src:mariadb-10.1 on affected platforms (and both ppc64el and
s390x are our release architectures).

Cheers,
Ondrej

-- System Information:
Debian Release: 9.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to