]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make memcheck/tests/linux/sigqueue usable with musl
authorAleksandar Rikalo <aleksandar.rikalo@rt-rk.com>
Thu, 23 Apr 2020 16:31:50 +0000 (16:31 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Thu, 23 Apr 2020 16:31:50 +0000 (16:31 +0000)
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.

NEWS
memcheck/tests/linux/sigqueue.c

diff --git a/NEWS b/NEWS
index 4011e60c109dc49d645c18646f34712d20d7fc3f..27e79f6f5d928e88ab925f4c98d1926f55e372c7 100644 (file)
--- 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
index d18bd728839a656ca9e691e784a797391b349ee2..4b6fb0fd85f2ac5a808284beb61bc81dce48815f 100644 (file)
@@ -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;