18 Jun 2012 02:05
Re: [musl] Re: musl bugs found through gnulib
<idunham <at> lavabit.com>
2012-06-18 00:05:23 GMT
2012-06-18 00:05:23 GMT
> [CCing the musl list] > Isaac Dunham wrote in > <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00101.html>: >> musl is designed for standards conformance, > > There is a recipe, in <http://sourceware.org/glibc/wiki/Testing/Gnulib>, > that explains how to use gnulib to check a libc against bugs. Be warned: a bad test can cause failures as well. It's been one of the musl developers' complaints about gnulib that the tests are buggy and frequently check for glibc behavior instead of standard behavior. > When I apply this to musl-0.9.1, I get this list of problems: > > Replacements of *printf, because of > checking whether printf supports infinite 'long double' arguments... no > checking whether printf supports the 'ls' directive... no > checking whether printf survives out-of-memory conditions... no At least one of these (infinite long double, IIRC) is invalid or a test for a GNU-ism. This was previously discussed on the musl ML. OOM behavior is undefined AFAICT (feel free to point out a standard), and the scenario is a lot less likely with musl than glibc for several reasons. > Replacement of duplocale, because of > checking whether duplocale(LC_GLOBAL_LOCALE) works... no Need to check this one > Replacement of fdopen, because of > checking whether fdopen sets errno... no I presume this is nonconformance to POSIX ("otherwise, a null pointer shall be returned and errno set...")?(Continue reading)
RSS Feed