Comment 3 for bug 1267062

Revision history for this message
Andy Whitcroft (apw) wrote : Re: sigaltstack system call unable to send proper return code (error12)

Ok I have tried this out on postal02, configured LTP as below:

    ./configure --build powerpc64le-linux-gnu --target powerpc64le-linux-gnu

The test fails as indicated. I have fiddled with the parameters and using 2048-1 as the limit triggers the test correctly, though MINSIGSTKSZ is 4096. The limit seems to correspond to the limit as expressed by the kernel:

    arch/powerpc/include/uapi/asm/signal.h:#define MINSIGSTKSZ 2048

This accounts for the test failure. It is arguable that the MINSIGSTKSZ should match the kernel limit exactly but as the limit is greater than the kernel limit it is equally arguable it is valid minimum.

That said the eglibc is offering this constant:

    +/* Minimum stack size for a signal handler. */
    +#define MINSIGSTKSZ 4096

This is part of the ppc64el delta for this package.