From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Llu=C3=ADs?= Batlle i Rossell Newsgroups: gmane.lisp.guile.bugs Subject: bug#13958: Failing net-db.test on armv5tel glibc 2.17 Date: Fri, 15 Mar 2013 12:34:08 +0100 Message-ID: <20130315113408.GI14560@vicerveza.homeunix.net> References: <20130310225811.GO14560@vicerveza.homeunix.net> <87txoert3q.fsf@gnu.org> <20130314140337.GE14560@vicerveza.homeunix.net> <87ppz0ykxe.fsf@gnu.org> 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 1363347312 25073 80.91.229.3 (15 Mar 2013 11:35:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Mar 2013 11:35:12 +0000 (UTC) Cc: 13958@debbugs.gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Mar 15 12:35:37 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 1UGSvA-0007Ti-15 for guile-bugs@m.gmane.org; Fri, 15 Mar 2013 12:35:36 +0100 Original-Received: from localhost ([::1]:47414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGSun-00045i-Ee for guile-bugs@m.gmane.org; Fri, 15 Mar 2013 07:35:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGSuN-0003Xn-TX for bug-guile@gnu.org; Fri, 15 Mar 2013 07:34:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGSuM-0005ke-HI for bug-guile@gnu.org; Fri, 15 Mar 2013 07:34:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGSuM-0005ka-Db for bug-guile@gnu.org; Fri, 15 Mar 2013 07:34:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UGSva-0002Dd-GC for bug-guile@gnu.org; Fri, 15 Mar 2013 07:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Llu=C3=ADs?= Batlle i Rossell Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 15 Mar 2013 11:36:02 +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.13633473408498 (code B ref 13958); Fri, 15 Mar 2013 11:36:02 +0000 Original-Received: (at 13958) by debbugs.gnu.org; 15 Mar 2013 11:35:40 +0000 Original-Received: from localhost ([127.0.0.1]:55548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGSvD-0002D0-6j for submit@debbugs.gnu.org; Fri, 15 Mar 2013 07:35:40 -0400 Original-Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:31326 helo=mho-01-ewr.mailhop.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGSvA-0002Cn-FO for 13958@debbugs.gnu.org; Fri, 15 Mar 2013 07:35:37 -0400 Original-Received: from 182.34.21.95.dynamic.jazztel.es ([95.21.34.182] helo=mail.viric.name) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1UGStq-000JDy-Cf; Fri, 15 Mar 2013 11:34:14 +0000 Original-Received: by mail.viric.name (Postfix, from userid 1000) id 0E41743FE5C3; Fri, 15 Mar 2013 12:34:08 +0100 (CET) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 95.21.34.182 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+Nl9Dq033sUgyGznxq/RCq Content-Disposition: inline In-Reply-To: <87ppz0ykxe.fsf@gnu.org> X-Accept-Language: ca, es, eo, ru, en, jbo, tokipona User-Agent: Mutt/1.5.21 (2010-09-15) 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:6968 Archived-At: On Fri, Mar 15, 2013 at 12:14:21PM +0100, Ludovic Court=C3=A8s wrote: > Hi Llu=C3=ADs! >=20 > Llu=C3=ADs Batlle i Rossell skribis: >=20 > > 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 > > ---- >=20 > Does it happen in a chroot without /etc/resolv.conf & co.? >=20 > Is it a dynamically-linked binary? >=20 > Could you run =E2=80=9Cstrace -o log -f ./check-guile net-db.test=E2=80= =9D and post > the log? >=20 > (Note that I build it with Guix on x86_64-linux-gnu without any > problems; glibc 2.17 as well, and in a chroot.) >=20 >=20 > Now, we have a problem with the =E2=80=98getaddrinfo-error=E2=80=99 API= : EAI_SYSTEM > means =E2=80=9Ccheck what errno says=E2=80=9D, and we don=E2=80=99t pro= vide the errno value. >=20 > 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 fo= r existing > handlers upon EAI_SYSTEM, and would essentially force programmers to us= e > =E2=80=98case-lambda=E2=80=99 for their handlers. >=20 > 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. I think this log should be enough. I have a dns server at 127.0.0.1, and I have in nix.conf: build-use-chroot =3D false Excerpt of the strace log: 16993 connect(7, {sa_family=3DAF_INET, sin_port=3Dhtons(53), sin_addr=3Di= net_addr("127.0.0.1")}, 16) =3D 0 16993 gettimeofday({1363270208, 638948}, NULL) =3D 0 16993 poll([{fd=3D7, events=3DPOLLOUT}], 1, 0) =3D 1 ([{fd=3D7, revents=3D= POLLOUT}]) 16993 sendmmsg(7, {{{msg_name(0)=3DNULL, msg_iov(1)=3D[{"\25>\1\0\0\1\0\0= \0\0\0\0\16does-not-exist\10ho me"..., 45}], msg_controllen=3D0, msg_flags=3DMSG_WAITALL|MSG_TRUNC|MSG_D= ONTWAIT|MSG_RST|MSG_NOSIGNAL|M SG_MORE|0xbed40000}, 45}, {{msg_name(0)=3DNULL, msg_iov(1)=3D[{"\303:\1\0= \0\1\0\0\0\0\0\0\16does-not-ex ist\10home"..., 45}], msg_controllen=3D0, msg_flags=3D0}, 45}}, 2, MSG_NO= SIGNAL) =3D 2 16993 poll([{fd=3D7, events=3DPOLLIN}], 1, 5000) =3D 1 ([{fd=3D7, revents= =3DPOLLIN}]) 16993 ioctl(7, FIONREAD, [106]) =3D 0 16993 recvfrom(7, "\25>\201\203\0\1\0\0\0\1\0\0\16does-not-exist\10home".= .., 2048, 0, {sa_family=3DAF _INET, sin_port=3Dhtons(53), sin_addr=3Dinet_addr("127.0.0.1")}, [16]) =3D= 106 16993 gettimeofday({1363270208, 645244}, NULL) =3D 0 16993 poll([{fd=3D7, events=3DPOLLIN}], 1, 4993) =3D 1 ([{fd=3D7, revents= =3DPOLLIN}]) 16993 ioctl(7, FIONREAD, [106]) =3D 0 16993 recvfrom(7, "\303:\201\203\0\1\0\0\0\1\0\0\16does-not-exist\10home"= ..., 1940, 0, {sa_family=3DA F_INET, sin_port=3Dhtons(53), sin_addr=3Dinet_addr("127.0.0.1")}, [16]) =3D= 106 16993 close(7) =3D 0 16993 gettimeofday({1363270208, 646679}, NULL) =3D 0 16993 gettimeofday({1363270208, 646897}, NULL) =3D 0 16993 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) =3D 7 16993 connect(7, {sa_family=3DAF_INET, sin_port=3Dhtons(53), sin_addr=3Di= net_addr("127.0.0.1")}, 16) =3D 0 16993 gettimeofday({1363270208, 647559}, NULL) =3D 0 16993 poll([{fd=3D7, events=3DPOLLOUT}], 1, 0) =3D 1 ([{fd=3D7, revents=3D= POLLOUT}]) 16993 sendmmsg(7, {{{msg_name(0)=3DNULL, msg_iov(1)=3D[{"\332\330\1\0\0\1= \0\0\0\0\0\0\16does-not-exist\ 0\0\1\0\1", 32}], msg_controllen=3D0, msg_flags=3DMSG_WAITALL|MSG_TRUNC|M= SG_DONTWAIT|MSG_RST|MSG_NOSIGN AL|MSG_MORE|0xbed40000}, 32}, {{msg_name(0)=3DNULL, msg_iov(1)=3D[{"\313w= \1\0\0\1\0\0\0\0\0\0\16does-no t-exist\0\0\34\0\1", 32}], msg_controllen=3D0, msg_flags=3D0}, 32}}, 2, M= SG_NOSIGNAL) =3D 2 16993 poll([{fd=3D7, events=3DPOLLIN}], 1, 5000) =3D 1 ([{fd=3D7, revents= =3DPOLLIN}]) 16993 ioctl(7, FIONREAD, [107]) =3D 0 16993 recvfrom(7, "\332\330\201\203\0\1\0\0\0\1\0\0\16does-not-exist\0\0\= 1\0\1"..., 2048, 0, {sa_fa mily=3DAF_INET, sin_port=3Dhtons(53), sin_addr=3Dinet_addr("127.0.0.1")},= [16]) =3D 107 16993 gettimeofday({1363270208, 651397}, NULL) =3D 0 16993 poll([{fd=3D7, events=3DPOLLIN}], 1, 4996) =3D 1 ([{fd=3D7, revents= =3DPOLLIN}]) 16993 ioctl(7, FIONREAD, [107]) =3D 0 16993 recvfrom(7, "\313w\201\203\0\1\0\0\0\1\0\0\16does-not-exist\0\0\34\= 0\1"..., 1940, 0, {sa_fami ly=3DAF_INET, sin_port=3Dhtons(53), sin_addr=3Dinet_addr("127.0.0.1")}, [= 16]) =3D 107 16993 close(7) =3D 0 16993 open("/nix/store/83fff5psdwad2vcy44lv5gwyzfmj4433-glibc-2.17/lib/li= bnss_myhostname.so.2", O_R DONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) 16993 write(1, "\n", 1) =3D 1 16993 write(1, ";;; ", 4) =3D 4 16993 write(1, "(", 1) =3D 1 16993 write(1, "err", 3) =3D 3 16993 write(1, " ", 1) =3D 1 16993 write(1, "-11", 3) =3D 3 16993 write(1, ")", 1) =3D 1 16993 write(1, "\n", 1) =3D 1 16993 write(1, "unexpected error code: ", 23) =3D 23 Regards, Llu=C3=ADs.