From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#13958: Failing net-db.test on armv5tel glibc 2.17 Date: Fri, 15 Mar 2013 12:14:21 +0100 Message-ID: <87ppz0ykxe.fsf@gnu.org> References: <20130310225811.GO14560@vicerveza.homeunix.net> <87txoert3q.fsf@gnu.org> <20130314140337.GE14560@vicerveza.homeunix.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363346097 13306 80.91.229.3 (15 Mar 2013 11:14:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Mar 2013 11:14:57 +0000 (UTC) Cc: 13958@debbugs.gnu.org To: =?UTF-8?Q?Llu=C3=ADs?= Batlle i Rossell Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Mar 15 12:15:22 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UGSba-00030E-AC for guile-bugs@m.gmane.org; Fri, 15 Mar 2013 12:15:22 +0100 Original-Received: from localhost ([::1]:40630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGSbD-00076B-Kr for guile-bugs@m.gmane.org; Fri, 15 Mar 2013 07:14:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGSb4-000762-I9 for bug-guile@gnu.org; Fri, 15 Mar 2013 07:14:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGSaz-00080b-N5 for bug-guile@gnu.org; Fri, 15 Mar 2013 07:14:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGSaz-00080X-JZ for bug-guile@gnu.org; Fri, 15 Mar 2013 07:14:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UGScD-0000qN-Hg for bug-guile@gnu.org; Fri, 15 Mar 2013 07:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 15 Mar 2013 11:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13958 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 13958-submit@debbugs.gnu.org id=B13958.13633461423217 (code B ref 13958); Fri, 15 Mar 2013 11:16:01 +0000 Original-Received: (at 13958) by debbugs.gnu.org; 15 Mar 2013 11:15:42 +0000 Original-Received: from localhost ([127.0.0.1]:55531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGSbu-0000pp-B3 for submit@debbugs.gnu.org; Fri, 15 Mar 2013 07:15:42 -0400 Original-Received: from xanadu.aquilenet.fr ([88.191.123.111]:48728) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGSbr-0000ph-Qy for 13958@debbugs.gnu.org; Fri, 15 Mar 2013 07:15:40 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 0DE442BBA; Fri, 15 Mar 2013 12:14:22 +0100 (CET) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k8qk0AOgY-hV; Fri, 15 Mar 2013 12:14:21 +0100 (CET) Original-Received: from pluto (unknown [193.50.110.213]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id C0875117D; Fri, 15 Mar 2013 12:14:21 +0100 (CET) In-Reply-To: <20130314140337.GE14560@vicerveza.homeunix.net> ("=?UTF-8?Q?Llu=C3=ADs?= Batlle i Rossell"'s message of "Thu, 14 Mar 2013 15:03:37 +0100") User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6967 Archived-At: Hi Llu=C3=ADs! Llu=C3=ADs Batlle i Rossell skribis: > running the test below, I see on glibc-2.17 armv5tel-linux: > ---- > Running net-db.test > > ;;; (err -11) > unexpected error code: -11 "System error" > FAIL: net-db.test: getaddrinfo: no name > ---- Does it happen in a chroot without /etc/resolv.conf & co.? Is it a dynamically-linked binary? Could you run =E2=80=9Cstrace -o log -f ./check-guile net-db.test=E2=80=9D = and post the log? (Note that I build it with Guix on x86_64-linux-gnu without any problems; glibc 2.17 as well, and in a chroot.) Now, we have a problem with the =E2=80=98getaddrinfo-error=E2=80=99 API: EA= I_SYSTEM means =E2=80=9Ccheck what errno says=E2=80=9D, and we don=E2=80=99t provide= the errno value. This could be fixed by passing the errno as an additional parameter to =E2=80=98throw=E2=80=99. However, that would lead to wrong-num-args for ex= isting handlers upon EAI_SYSTEM, and would essentially force programmers to use =E2=80=98case-lambda=E2=80=99 for their handlers. OTOH, there are only two occurrences of EAI_SYSTEM in inet/getaddrinfo.c in glibc: one is for NETDB_INTERNAL, and the other is for IDNA_DLOPEN_ERROR. When that happens, the extra bit of information provided by errno is probably not very helpful. Thoughts? Ludo=E2=80=99.