The s390 hardware can't support an exact si_addr, and the current kernels don't handle text addresses correctly at all. Until that improves, skip the test on s390.
* tests/pc.c (main): Return 77 on s390 systems. --- tests/pc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/pc.c b/tests/pc.c index a450c0d..4f12701 100644 --- a/tests/pc.c +++ b/tests/pc.c @@ -12,6 +12,14 @@ int main(void) { const unsigned long pagesize = sysconf(_SC_PAGESIZE); +#ifdef __s390__ + /* + * The si_addr field is unreliable: + * https://marc.info/?l=linux-s390&m=142515870124248&w=2 + */ + return 77; +#endif + /* write instruction pointer length to the log */ if (write(-1, NULL, 2 * sizeof(void *)) >= 0) return 77; -- 2.3.1 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel