From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taylanbayirli@gmail.com (Taylan Ulrich =?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#18914: 2.0.11 REPL server listens on 127.0.0.1 but not "localhost" Date: Sun, 02 Nov 2014 14:23:41 +0100 Message-ID: <878ujtbusi.fsf@taylan.uni.cx> References: <20141101205635.UI3ZE.44485.root@cdptpa-web20> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414934663 29581 80.91.229.3 (2 Nov 2014 13:24:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Nov 2014 13:24:23 +0000 (UTC) Cc: 18914@debbugs.gnu.org To: Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Nov 02 14:24:15 2014 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 1Xkv8g-0006rs-F7 for guile-bugs@m.gmane.org; Sun, 02 Nov 2014 14:24:14 +0100 Original-Received: from localhost ([::1]:57306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkv8f-0007VM-Vp for guile-bugs@m.gmane.org; Sun, 02 Nov 2014 08:24:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkv8Z-0007VH-Bg for bug-guile@gnu.org; Sun, 02 Nov 2014 08:24:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xkv8U-0001gf-Ki for bug-guile@gnu.org; Sun, 02 Nov 2014 08:24:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkv8U-0001gb-HS for bug-guile@gnu.org; Sun, 02 Nov 2014 08:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xkv8U-0002to-3L for bug-guile@gnu.org; Sun, 02 Nov 2014 08:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: taylanbayirli@gmail.com (Taylan Ulrich =?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 02 Nov 2014 13:24:02 +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.141493463311127 (code B ref 18914); Sun, 02 Nov 2014 13:24:02 +0000 Original-Received: (at 18914) by debbugs.gnu.org; 2 Nov 2014 13:23:53 +0000 Original-Received: from localhost ([127.0.0.1]:45056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xkv8K-0002tO-Im for submit@debbugs.gnu.org; Sun, 02 Nov 2014 08:23:52 -0500 Original-Received: from mail-la0-f49.google.com ([209.85.215.49]:47045) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xkv8H-0002tA-Re for 18914@debbugs.gnu.org; Sun, 02 Nov 2014 08:23:51 -0500 Original-Received: by mail-la0-f49.google.com with SMTP id ge10so8014475lab.8 for <18914@debbugs.gnu.org>; Sun, 02 Nov 2014 05:23:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=k5YU0GK2J5DmVXlOtPj6c6Gp842okOlU4jys5PrkPK4=; b=C23Wzn8enHFnvKYRhw2uFhouUJzZVvm8bJonCKTeCR/P2ergE4UIpYLwyizUuLgDxr b+7B3ygIpwDg2cWTD8F1FT5AXem5y4cJdJjgJCcMuICjZffQ8JCanDWrgAaqppw97aS/ IK3e84v6xhDDAwoy8K8rQWrORmLOv1EL9nDKZzgrxJhq/lUCTatqP+siXl1kUUUfbfuz HJy/NzFcpyWzLr+eGYRSInQl6uHWZIVsz7oW+k2egbn6vmhv+XsCu0llOFgHEYzCT9+p TjX7y7Pujrnd1r/wjotXbIenvxcNslgEf0taCszdBoONeeWMLy4CWgKnZ8j9/Acqje2p HaOA== X-Received: by 10.153.7.170 with SMTP id dd10mr42856368lad.45.1414934623521; Sun, 02 Nov 2014 05:23:43 -0800 (PST) Original-Received: from taylan.uni.cx (p200300514A13A28C0213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:51:4a13:a28c:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id dw2sm6717233lbc.38.2014.11.02.05.23.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 02 Nov 2014 05:23:42 -0800 (PST) In-Reply-To: <20141101205635.UI3ZE.44485.root@cdptpa-web20> (dsmich@roadrunner.com's message of "Sat, 1 Nov 2014 16:56:35 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:7627 Archived-At: 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) = 8 fcntl(8, F_GETFL) = 0x2 (flags O_RDWR) lseek(8, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) setsockopt(8, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 bind(8, {sa_family=AF_INET, sin_port=htons(37146), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 mmap(NULL, 8720384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f35aaf81000 mprotect(0x7f35aaf81000, 4096, PROT_NONE) = 0 clone(child_stack=0x7f35ab7d0ff0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f35ab7d19d0, tls=0x7f35ab7d1700, child_tidptr=0x7f35ab7d19d0) = 2099 futex(0x7fffd27a33fc, FUTEX_WAIT_PRIVATE, 1, NULL) = 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