From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1163 Path: news.gmane.org!not-for-mail From: Bruno Haible Newsgroups: gmane.linux.lib.musl.general,gmane.comp.lib.gnulib.bugs Subject: Re: musl bugs found through gnulib Date: Mon, 18 Jun 2012 00:49:44 +0200 Message-ID: <12545931.v3ALTEUUx8@linuix> References: <20120609230541.47eac2de@newbook> <4FD55156.7050302@cs.ucla.edu> <20120611182202.1ee4d019@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: dough.gmane.org 1339973293 13863 80.91.229.3 (17 Jun 2012 22:48:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2012 22:48:13 +0000 (UTC) Cc: Isaac Dunham , Paul Eggert , Reuben Thomas Bcc: bruno@haible.de To: bug-gnulib@gnu.org, musl@lists.openwall.com Original-X-From: musl-return-1164-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jun 18 00:48:12 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1SgOGP-0003PX-LD for gllmg-musl@plane.gmane.org; Mon, 18 Jun 2012 00:48:09 +0200 Original-Received: (qmail 10180 invoked by uid 550); 17 Jun 2012 22:48:09 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 10172 invoked from network); 17 Jun 2012 22:48:09 -0000 X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDNRbvY44zMkpA== X-RZG-CLASS-ID: mo00 User-Agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; ) In-Reply-To: <20120611182202.1ee4d019@newbook> Xref: news.gmane.org gmane.linux.lib.musl.general:1163 gmane.comp.lib.gnulib.bugs:30986 Archived-At: [CCing the musl list] Isaac Dunham wrote in : > musl is designed for standards conformance, There is a recipe, in , that explains how to use gnulib to check a libc against bugs. 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 Replacement of duplocale, because of checking whether duplocale(LC_GLOBAL_LOCALE) works... no Replacement of fdopen, because of checking whether fdopen sets errno... no Replacement of futimens, because of checking whether futimens works... no Replacement of getcwd, because of checking whether getcwd handles long file names properly... no, but it is partly working checking whether getcwd aborts when 4k < cwd_length < 16k... no Replacement of getopt, because of checking whether getopt is POSIX compatible... no Replacement of glob, because of checking for GNU glob interface version 1... no (not sure this is a bug or just an incompatibility compared to glibc) Replacement of iconv and iconv_open, because of checking whether iconv supports conversion between UTF-8 and UTF-{16,32}{BE,LE}... no Replacement of mktime, because of checking for working mktime... no Replacement of perror, because of checking whether perror matches strerror... no Replacement of popen, because of checking whether popen works with closed stdin... no Replacement of regex, because of checking for working re_compile_pattern... no Replacement of strtod, because of checking whether strtod obeys C99... no For each of the replacements, first look at the test program's results (in config.log), then look at the test program's source code (in m4/*.m4). Furthermore we have test failures: test-duplocale.c:70: assertion failed FAIL: test-duplocale test-fcntl.c:382: assertion failed FAIL: test-fcntl test-fdatasync.c:50: assertion failed FAIL: test-fdatasync test-fma2.h:116: assertion failed FAIL: test-fma2 test-fsync.c:50: assertion failed FAIL: test-fsync test-fwrite.c:53: assertion failed FAIL: test-fwrite test-getlogin_r.c:88: assertion failed FAIL: test-getlogin_r test-grantpt.c:34: assertion failed FAIL: test-grantpt test-localeconv.c:41: assertion failed FAIL: test-localeconv Segmentation fault FAIL: test-localename test-ptsname_r.c:118: assertion failed FAIL: test-ptsname_r test-strerror_r.c:118: assertion failed FAIL: test-strerror_r test-wcwidth.c:71: assertion failed FAIL: test-wcwidth When I compile all of gnulib, I also get a compilation error (may be a musl or a gnulib problem, haven't investigated): fsusage.c: In function 'get_fs_usage': fsusage.c:222:17: error: storage size of 'fsd' isn't known fsusage.c:224:3: warning: implicit declaration of function 'statfs' [-Wimplicit-function-declaration] fsusage.c:222:17: warning: unused variable 'fsd' [-Wunused-variable] make[4]: *** [fsusage.o] Error 1 Bruno