[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#904056: glibc: FTBFS on hppa - nptl/tst-execstack fails



Source: glibc
Version: 2.27-5
Severity: normal
Tags: patch

Dear Maintainer,

As on mips, hppa still requires an executable stack for syscall restarts
and signal returns.  This is BZ #23174.

2.27-5 fails to build because of the following problem:

+---------------------------------------------------------------------+
|     Encountered regressions that don't match expected failures.     |
+---------------------------------------------------------------------+
FAIL: nptl/tst-execstack
make: *** [debian/rules.d/build.mk:115: /<<PKGBUILDDIR>>/stamp-dir/check_libc] Error 1

Full log is here:
https://buildd.debian.org/status/fetch.php?pkg=glibc&arch=hppa&ver=2.27-5&stamp=1531930990&raw=0

The attached fix is installed on glibc trunk.

Regards,
Dave Anglin

-- System Information:
Debian Release: buster/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 4.14.56+ (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
2018-06-10  John David Anglin  <danglin@gcc.gnu.org>

	[BZ #23174]
	* sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.

diff --git a/sysdeps/unix/sysv/linux/hppa/Makefile b/sysdeps/unix/sysv/linux/hppa/Makefile
index 68569013fb..e1637f54f5 100644
--- a/sysdeps/unix/sysv/linux/hppa/Makefile
+++ b/sysdeps/unix/sysv/linux/hppa/Makefile
@@ -2,3 +2,10 @@
 ifeq ($(subdir),stdlib)
 gen-as-const-headers += ucontext_i.sym
 endif
+
+# Supporting non-executable stacks on HPPA requires changes to both
+# the Linux kernel and glibc. The kernel currently needs an executable
+# stack for syscall restarts and signal returns.
+ifeq ($(subdir),elf)
+test-xfail-check-execstack = yes
+endif

Reply to: