zstd icon indicating copy to clipboard operation
zstd copied to clipboard

`test: check if binary has executable stack` fails on HPPA (arch always needs exec. stacks)

Open thesamesam opened this issue 1 year ago • 3 comments

Describe the bug

zstd's test suite fails on HPPA. Specifically, the test: check if binary has executable stack test fails because of an executable stack. On HPPA, this is actually expected, and the test should be skipped/XFAILed.

To Reproduce Steps to reproduce the behavior:

  1. Run zstd-1.5.5's test suite on HPPA.
  2. Observe failure:
$ make check
[...]
4+0 records in
4+0 records out
4 bytes copied, 0 s, Infinity B/s
tmp_corrupt.zst     : 65537 bytes
tmp_corrupt.zst     : 65537 bytes
tmp.zst             : 65537 bytes
test: check if binary has executable stack (#2963)
zstd binary has executable stack!
make[1]: *** [Makefile:343: test-zstd] Error 1
make[1]: Leaving directory '/tmp/zstd/tests'
make: *** [Makefile:91: shortest] Error 2

All other tests pass if I comment out this test.

Expected behavior

All tests to pass and for the execstack test to be skipped where it's not relevant.

Desktop (please complete the following information):

  • OS: Gentoo Linux
  • Version: 1.5.5, master
  • Compiler: gcc
  • Flags: O2
  • Other relevant hardware specs: HPPA/PARISC architecture
  • Build system: Makefile, meson

Additional context

HPPA requires executable stacks right now during normal operations, so generating an executable stack here is no cause for concern.

Originally reported downstream in Gentoo at https://bugs.gentoo.org/903923.

thesamesam avatar Apr 09 '23 04:04 thesamesam

Hi @thesamesam,

Thanks for reporting! I'm happy to add an exclusion for this platform if you tell me how to recognize it.

Is this specific to Gentoo, or would it be the case for Debian on PARISC as well?

felixhandte avatar Apr 10 '23 15:04 felixhandte