From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#18914: 2.0.11 REPL server listens on 127.0.0.1 but not "localhost" Date: Wed, 22 Jun 2016 10:32:06 +0200 Message-ID: <87por9tyih.fsf@pobox.com> References: <20141101205635.UI3ZE.44485.root@cdptpa-web20> <878ujtbusi.fsf@taylan.uni.cx> 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 1466584432 19000 80.91.229.3 (22 Jun 2016 08:33:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2016 08:33:52 +0000 (UTC) Cc: 18914@debbugs.gnu.org To: taylanbayirli@gmail.com (Taylan Ulrich "=?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=") Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jun 22 10:33:36 2016 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 1bFdb4-0005JR-2f for guile-bugs@m.gmane.org; Wed, 22 Jun 2016 10:33:19 +0200 Original-Received: from localhost ([::1]:56528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFdb3-0007cb-9K for guile-bugs@m.gmane.org; Wed, 22 Jun 2016 04:33:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFdat-0007a5-0E for bug-guile@gnu.org; Wed, 22 Jun 2016 04:33:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFdan-0005bp-Vc for bug-guile@gnu.org; Wed, 22 Jun 2016 04:33:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFdan-0005bk-RY for bug-guile@gnu.org; Wed, 22 Jun 2016 04:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bFdan-0007gt-NB for bug-guile@gnu.org; Wed, 22 Jun 2016 04:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 22 Jun 2016 08:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18914 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 18914-submit@debbugs.gnu.org id=B18914.146658433929508 (code B ref 18914); Wed, 22 Jun 2016 08:33:01 +0000 Original-Received: (at 18914) by debbugs.gnu.org; 22 Jun 2016 08:32:19 +0000 Original-Received: from localhost ([127.0.0.1]:50328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFda6-0007fs-G2 for submit@debbugs.gnu.org; Wed, 22 Jun 2016 04:32:18 -0400 Original-Received: from pb-sasl1.pobox.com ([64.147.108.66]:55605 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFda4-0007fk-68 for 18914@debbugs.gnu.org; Wed, 22 Jun 2016 04:32:16 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id CECFF1966B; Wed, 22 Jun 2016 04:32:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=DKIsB9RyA2c9 wX2GiGhZupjBoqA=; b=I3UEwa62uDIPpT3XRLx0aphT6ltgYLhpGbyW1y5wiJIl Y1qLwH9t/6rmDeIZN7xV4peBM3pgQJLtL7f8tpzSATNAxI4zLUspY2irXulUe2CD CAnLuGrJ3FaOdc6AIO2tEH0qGINamjtdh2VL5af7vSBcUgAAsQg1ui/TTYUsCFY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=PwXbeQ 2/lUNCVEl6vwHACStfCoKfFKPk3itndgkTp3xyQ9d1NUOKjr2GOageBQLtEeQpx1 /+p+BFOZiVrcIXP+WiJhLcKkyUsIWfaMn5KkWcX1SBkkCel2L9V9xjSo13cPGgeg RoBDSKWN/ws2aULzMoYH+7M3wi6vYdvQIJ4zw= Original-Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id C7D9219669; Wed, 22 Jun 2016 04:32:14 -0400 (EDT) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id E375619668; Wed, 22 Jun 2016 04:32:13 -0400 (EDT) In-Reply-To: <878ujtbusi.fsf@taylan.uni.cx> ("Taylan Ulrich \"=?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer\?=""'s message of "Sun, 02 Nov 2014 14:23:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Pobox-Relay-ID: D23F7A00-3853-11E6-A139-C1836462E9F6-02397024!pb-sasl1.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.lisp.guile.bugs:8121 Archived-At: Hi, Works for me, with Guile 2.0.11 also. Could it be that "nc" is trying to connect to an IPv6 address? Andy On Sun 02 Nov 2014 14:23, taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1= rl=C4=B1/Kammer") writes: > writes: > >> Seems to work fine on master > > I just built from the master branch to be sure and can still reproduce. > >> Maybe try strace, possibly limiting it with -e connect, to reveal what >> it's actually doing. > > Not sure what I should be looking for, but there is no connect() call, > no occurrence of "localhost" in the whole output, but the following > snippet at some point: > > ... > socket(PF_INET, SOCK_STREAM, IPPROTO_IP) =3D 8 > fcntl(8, F_GETFL) =3D 0x2 (flags O_RDWR) > lseek(8, 0, SEEK_CUR) =3D -1 ESPIPE (Illegal seek) > setsockopt(8, SOL_SOCKET, SO_REUSEADDR, [1], 4) =3D 0 > bind(8, {sa_family=3DAF_INET, sin_port=3Dhtons(37146), sin_addr=3Dinet_ad= dr("127.0.0.1")}, 16) =3D 0 > mmap(NULL, 8720384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_S= TACK, -1, 0) =3D 0x7f35aaf81000 > mprotect(0x7f35aaf81000, 4096, PROT_NONE) =3D 0 > clone(child_stack=3D0x7f35ab7d0ff0, > flags=3DCLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SY= SVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, > parent_tidptr=3D0x7f35ab7d19d0, tls=3D0x7f35ab7d1700, > child_tidptr=3D0x7f35ab7d19d0) =3D 2099 > futex(0x7fffd27a33fc, FUTEX_WAIT_PRIVATE, 1, NULL) =3D 0 > ... > > which is also the sole occurrence of '127.0.0.1'. Seems to come from > `make-tcp-server-socket' in module/system/repl/server.scm where it > passes INADDR_LOOPBACK, an integer whose value is 127.0.0.1 as a uint32, > to bind(). I don't know at what point it's normally supposed to make > the association with "localhost". > > Any further help in how to debug this is appreciated. I have little > knowledge of the POSIX networking API. > > Taylan