From: Bruno Haible Date: Sun, 25 Jun 2023 15:58:57 +0000 (+0200) Subject: doc: Mention glibc initstate, initstate_r bug. X-Git-Tag: v1.0~1187 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ea3dd857725e176232ae61a1ad7aff498c2939ce;p=gnulib.git doc: Mention glibc initstate, initstate_r bug. * doc/posix-functions/initstate.texi: Mention glibc bug. * doc/glibc-functions/initstate_r.texi: Likewise. * tests/test-random_r.c: Add a comment. --- diff --git a/ChangeLog b/ChangeLog index ff3d6e76a4..b02d18f3d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023-06-25 Bruno Haible + + doc: Mention glibc initstate, initstate_r bug. + * doc/posix-functions/initstate.texi: Mention glibc bug. + * doc/glibc-functions/initstate_r.texi: Likewise. + * tests/test-random_r.c: Add a comment. + 2023-06-25 Bruno Haible doc: Update doc regarding 'setstate'. diff --git a/doc/glibc-functions/initstate_r.texi b/doc/glibc-functions/initstate_r.texi index b2bcc18cf8..9c1ea829db 100644 --- a/doc/glibc-functions/initstate_r.texi +++ b/doc/glibc-functions/initstate_r.texi @@ -32,6 +32,10 @@ AIX 7.1. Portability problems not fixed by Gnulib: @itemize @item +This function crashes if the state buffer is unaligned on on some platforms: +@c https://sourceware.org/bugzilla/show_bug.cgi?id=30584 +glibc 2.36/sparc. +@item This function has a slightly different (but compatible) declaration on some platforms: Haiku 2017. diff --git a/doc/posix-functions/initstate.texi b/doc/posix-functions/initstate.texi index 2f7a83ca95..a1de753e1f 100644 --- a/doc/posix-functions/initstate.texi +++ b/doc/posix-functions/initstate.texi @@ -19,6 +19,10 @@ Cygwin 1.5.25. Portability problems not fixed by Gnulib: @itemize @item +This function crashes if the state buffer is unaligned on on some platforms: +@c https://sourceware.org/bugzilla/show_bug.cgi?id=30584 +glibc 2.36/sparc. +@item The first parameter is @code{unsigned long} instead of @code{unsigned int} on some platforms: MidnightBSD 2.0. diff --git a/tests/test-random_r.c b/tests/test-random_r.c index dffa709f5e..0dacd360ae 100644 --- a/tests/test-random_r.c +++ b/tests/test-random_r.c @@ -29,6 +29,9 @@ SIGNATURE_CHECK (random_r, int, (struct random_data *, int32_t *)); #include "macros.h" +/* Note: This test crashes on glibc/SPARC systems. + Reported at . */ + static int test_failed (int alignment) {