From: Aleksandar Rikalo Date: Thu, 23 Apr 2020 16:31:50 +0000 (+0000) Subject: Make memcheck/tests/linux/sigqueue usable with musl X-Git-Tag: VALGRIND_3_16_0~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b07722631ff47670fa193198f5f56a1b7582673b;p=thirdparty%2Fvalgrind.git Make memcheck/tests/linux/sigqueue usable with musl Remove offsetof(siginfo_t, _sifields) from the test. "_sifields" is not a mandatory field of struct siginfo_t so it should not be used in regular user program. This patch resolves KDE #417266. --- diff --git a/NEWS b/NEWS index 4011e60c10..27e79f6f5d 100644 --- a/NEWS +++ b/NEWS @@ -124,6 +124,7 @@ where XXXXXX is the bug number as listed below. 416753 new 32bit time syscalls for 2038+ 417187 [MIPS] Conditional branch problem since 'grail' changes 417238 Test memcheck/tests/vbit-test fails on mips64 BE +417266 Make memcheck/tests/linux/sigqueue usable with musl 417281 s390x: /bin/true segfaults with "grail" enabled 417427 commit to fix vki_siginfo_t definition created numerous regression errors on ppc64 diff --git a/memcheck/tests/linux/sigqueue.c b/memcheck/tests/linux/sigqueue.c index d18bd72883..4b6fb0fd85 100644 --- a/memcheck/tests/linux/sigqueue.c +++ b/memcheck/tests/linux/sigqueue.c @@ -21,8 +21,6 @@ int main(int argc, char **argv) offsetof(siginfo_t, si_errno)); fprintf(stdout, "offsetof(siginfo_t, si_code) = %zd\n", offsetof(siginfo_t, si_code)); - fprintf(stdout, "offsetof(siginfo_t, _sifields) = %zd\n", - offsetof(siginfo_t, _sifields)); } si = calloc(1, sz); si->si_signo = SIGWINCH;