From unknown Thu Jun 19 14:00:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18914 <18914@debbugs.gnu.org> To: bug#18914 <18914@debbugs.gnu.org> Subject: Status: 2.0.11 REPL server listens on 127.0.0.1 but not "localhost" Reply-To: bug#18914 <18914@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:00:12 +0000 retitle 18914 2.0.11 REPL server listens on 127.0.0.1 but not "localhost" reassign 18914 guile submitter 18914 taylanbayirli@gmail.com ("Taylan Ulrich Bay=C4=B1rl=C4=B1/K= ammer") severity 18914 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 31 11:52:50 2014 Received: (at submit) by debbugs.gnu.org; 31 Oct 2014 15:52:50 +0000 Received: from localhost ([127.0.0.1]:41412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkEVN-0004D7-L6 for submit@debbugs.gnu.org; Fri, 31 Oct 2014 11:52:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37460) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkEVK-0004Cj-T9 for submit@debbugs.gnu.org; Fri, 31 Oct 2014 11:52:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkEQQ-0007Vf-3t for submit@debbugs.gnu.org; Fri, 31 Oct 2014 11:52:41 -0400 Received: from lists.gnu.org ([2001:4830:134:3::11]:41950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkEQQ-0007Va-1f for submit@debbugs.gnu.org; Fri, 31 Oct 2014 11:47:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkEPL-0006td-UN for bug-guile@gnu.org; Fri, 31 Oct 2014 11:47:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xjq9Z-0004D8-UV for bug-guile@gnu.org; Thu, 30 Oct 2014 09:52:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]:35899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xjq9Z-0004Cp-JR for bug-guile@gnu.org; Thu, 30 Oct 2014 09:52:41 -0400 Received: by mail-lb0-f170.google.com with SMTP id 10so4382126lbg.15 for ; Thu, 30 Oct 2014 06:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:to:subject:mime-version:content-type :content-transfer-encoding; bh=0JzTetDbJnT2dL5lha+WasvSGcJyblKt6NZIX42OH3E=; b=JxNRYqSyXLpMZvqFv4aGEZvPviUlwX9TyZNwaQBldu8d13S6Esc67KCFOrer+1tlwg 17Z6VhSEdsJGUuoWhgOiC4AIpHW611wz8eoMtexymJj5iwiThJFQskHYZ1vmDBlBXY8g Ak4e8V/SDiHWtRIVr/RClmz1Kqu8P/EebzoMf+NvtmeRMz0pqs+tVq9580PzJPjJwTMs 0D3f0d1pthhiKNnGuMmyA/Oi8vGfvtRWXNdEf2cmM9bwsBtUeKUjnRxZVg3/Dvlqdt7I kt5HKM4Ggwpi1A+5gwwuQihAYL82IIVjbvz+lT0sanuS5w07nGUtg83wl2A0eEgPg34b IbMQ== X-Received: by 10.152.42.172 with SMTP id p12mr19145091lal.11.1414677158903; Thu, 30 Oct 2014 06:52:38 -0700 (PDT) Received: from taylan.uni.cx (p200300514A13A2110213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:51:4a13:a211:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id e3sm3237440lae.5.2014.10.30.06.52.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 30 Oct 2014 06:52:38 -0700 (PDT) Date: Thu, 30 Oct 2014 14:52:36 +0100 Message-Id: <87k33hbr6j.fsf@taylan.uni.cx> From: taylanbayirli@gmail.com ("Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer=22?=) To: bug-guile@gnu.org Subject: 2.0.11 REPL server listens on 127.0.0.1 but not "localhost" MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) After starting 'guile --listen', I can connect to it via 127.0.0.1 but not "localhost": "Ncat: Connection refused." I don't know if listening on "localhost" by default has any security implications? Shell 1: tub@taylan:~$ guile --listen GNU Guile 2.0.11 Copyright (C) 1995-2014 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> Shell 2: tub@taylan:~$ ncat localhost 37146 Ncat: Connection refused. tub@taylan:~$ ncat 127.0.0.1 37146 GNU Guile 2.0.11 Copyright (C) 1995-2014 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> Taylan From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 31 18:34:01 2014 Received: (at 18914) by debbugs.gnu.org; 31 Oct 2014 22:34:01 +0000 Received: from localhost ([127.0.0.1]:44187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkKld-0001xf-9m for submit@debbugs.gnu.org; Fri, 31 Oct 2014 18:34:01 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.225]:38321 helo=cdptpa-oedge-vip.email.rr.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkKlb-0001xS-Cm for 18914@debbugs.gnu.org; Fri, 31 Oct 2014 18:34:00 -0400 Authentication-Results: cdptpa-oedge02 smtp.user=dsmich@roadrunner.com; auth=pass (LOGIN) Received: from [107.14.174.248] ([107.14.174.248:41851] helo=cdptpa-web17) by cdptpa-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTPA id DC/A6-09569-15E04545; Fri, 31 Oct 2014 22:33:53 +0000 Message-ID: <20141031223353.QITFY.33555.root@cdptpa-web17> Date: Fri, 31 Oct 2014 18:33:53 -0400 From: To: 18914@debbugs.gnu.org, =?utf-8?Q?Taylan_Ulrich=09Bay=C4=B1rl=C4=B1/Kammer?= Subject: Re: bug#18914: 2.0.11 REPL server listens on 127.0.0.1 but not "localhost" In-Reply-To: <87k33hbr6j.fsf@taylan.uni.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) Sensitivity: Normal X-Originating-IP: from 66.178.229.165 by webmail.roadrunner.com; Fri, 31 Oct 2014 22:33:53 +0000 X-RR-Connecting-IP: 107.14.168.130:2525 X-Cloudmark-Score: 0 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18914 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) ---- "Taylan Ulrich =09Bay=C4=B1rl=C4=B1/Kammer" wrote:=20 > After starting 'guile --listen', I can connect to it via 127.0.0.1 but > not "localhost": "Ncat: Connection refused." I don't know if > listening on "localhost" by default has any security implications? I wonder, could localhost be resolving to your ethernet IP address? Or may= be resolving to an IPv6 address? What does /etc/hosts say? -Dale From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 31 18:49:29 2014 Received: (at 18914) by debbugs.gnu.org; 31 Oct 2014 22:49:29 +0000 Received: from localhost ([127.0.0.1]:44191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkL0a-0002Nl-Pu for submit@debbugs.gnu.org; Fri, 31 Oct 2014 18:49:29 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:42417) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkL0W-0002NV-NM for 18914@debbugs.gnu.org; Fri, 31 Oct 2014 18:49:26 -0400 Received: by mail-la0-f45.google.com with SMTP id pn19so1605859lab.4 for <18914@debbugs.gnu.org>; Fri, 31 Oct 2014 15:49:18 -0700 (PDT) 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=zAMSZu5dSlOW3+h7usiq0/smyTWd1xIJI7Th42N4JyA=; b=uKBh8RwJVePP5/QjQ96IOrr9mPZ6aTUqP2YsmT+kDGKnzzibsoWLh07PVGtqjVK83K 4TZOEkgDH9tWnZZ1IeoemJeI7MeT/W8uUzbcXQRR3x3XC1YZoatfuuYLE9U5R27ydvug 53uQhveFw34bbPJ2zZNczolVxe5Afc9I48pPSXUmfIiIwJmvK0xspSXv11wp16v0uH3D sP2Jx/OMzso+X9ipSj/QYKBvkgaL7puJNpC4nfDJmDvTJLSe9dTdtpgJiNVH3NGlnGKh l0+0Q3hEfL7TmB/YGl6Kf2DYFH7sVmTBqGhQExbB4hn/3T5G95krPp/EDVOkgF22W1ap ipGA== X-Received: by 10.152.30.33 with SMTP id p1mr29243806lah.78.1414795758323; Fri, 31 Oct 2014 15:49:18 -0700 (PDT) Received: from taylan.uni.cx (p200300514A13A26E0213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:51:4a13:a26e:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id kg9sm4922920lbc.45.2014.10.31.15.49.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 31 Oct 2014 15:49:17 -0700 (PDT) From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) To: Subject: Re: bug#18914: 2.0.11 REPL server listens on 127.0.0.1 but not "localhost" References: <20141031223353.QITFY.33555.root@cdptpa-web17> Date: Fri, 31 Oct 2014 23:49:16 +0100 In-Reply-To: <20141031223353.QITFY.33555.root@cdptpa-web17> (dsmich@roadrunner.com's message of "Fri, 31 Oct 2014 18:33:53 -0400") Message-ID: <87d297c0sz.fsf@taylan.uni.cx> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18914 Cc: 18914@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) writes: > I wonder, could localhost be resolving to your ethernet IP address? > Or maybe resolving to an IPv6 address? tub@taylan:~$ nslookup localhost Server: 127.0.0.1 Address: 127.0.0.1#53 Name: localhost Address: 127.0.0.1 tub@taylan:~$ The local DNS server is dnsmasq. > What does /etc/hosts say? tub@taylan:~$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 taylan.uni.cx taylan # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters tub@taylan:~$ This is on Debian and I don't remember manually mucking with the file. Were you not able to reproduce the bug? Taylan From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 01 16:56:45 2014 Received: (at 18914) by debbugs.gnu.org; 1 Nov 2014 20:56:45 +0000 Received: from localhost ([127.0.0.1]:44855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xkfj3-0006jB-0j for submit@debbugs.gnu.org; Sat, 01 Nov 2014 16:56:45 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.228]:64807 helo=cdptpa-oedge-vip.email.rr.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xkfiz-0006ix-9A for 18914@debbugs.gnu.org; Sat, 01 Nov 2014 16:56:42 -0400 Authentication-Results: cdptpa-oedge01 smtp.user=dsmich@roadrunner.com; auth=pass (LOGIN) Received: from [107.14.174.248] ([107.14.174.248:28947] helo=cdptpa-web20) by cdptpa-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTPA id FE/80-07476-30945545; Sat, 01 Nov 2014 20:56:35 +0000 Message-ID: <20141101205635.UI3ZE.44485.root@cdptpa-web20> Date: Sat, 1 Nov 2014 16:56:35 -0400 From: To: =?utf-8?Q?Taylan_Ulrich_Bay=C4=B1rl=C4=B1/Kammer?= Subject: Re: bug#18914: 2.0.11 REPL server listens on 127.0.0.1 but not "localhost" In-Reply-To: <87d297c0sz.fsf@taylan.uni.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) Sensitivity: Normal X-Originating-IP: from 104.139.20.85 by webmail.roadrunner.com; Sat, 1 Nov 2014 20:56:35 +0000 X-RR-Connecting-IP: 107.14.168.118:2525 X-Cloudmark-Score: 0 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18914 Cc: 18914@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) ---- "Taylan Ulrich Bay=C4=B1rl=C4=B1/Kammer" wro= te:=20 > writes: > > What does /etc/hosts say? >=20 > tub@taylan:~$ cat /etc/hosts > 127.0.0.1=09localhost > 127.0.1.1=09taylan.uni.cx taylan >=20 > # The following lines are desirable for IPv6 capable hosts > ::1 localhost ip6-localhost ip6-loopback > ff02::1 ip6-allnodes > ff02::2 ip6-allrouters > tub@taylan:~$ >=20 > This is on Debian and I don't remember manually mucking with the file. >=20 > Were you not able to reproduce the bug? Seems to work fine on master dsmith@stumpy:~$ ncat localhost 37146 GNU Guile 2.1.0.1583-7dba1 Copyright (C) 1995-2014 Free Software Foundation, Inc. ... Maybe try strace, possibly limiting it with -e connect, to reveal what it's= actually doing. -Dale From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 02 08:23:53 2014 Received: (at 18914) by debbugs.gnu.org; 2 Nov 2014 13:23:53 +0000 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 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 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) 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) From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) To: Subject: Re: bug#18914: 2.0.11 REPL server listens on 127.0.0.1 but not "localhost" References: <20141101205635.UI3ZE.44485.root@cdptpa-web20> Date: Sun, 02 Nov 2014 14:23:41 +0100 In-Reply-To: <20141101205635.UI3ZE.44485.root@cdptpa-web20> (dsmich@roadrunner.com's message of "Sat, 1 Nov 2014 16:56:35 -0400") Message-ID: <878ujtbusi.fsf@taylan.uni.cx> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18914 Cc: 18914@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 22 04:32:18 2016 Received: (at 18914) by debbugs.gnu.org; 22 Jun 2016 08:32:19 +0000 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 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 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= 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) 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) From: Andy Wingo To: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?=22Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer=22?=) Subject: Re: bug#18914: 2.0.11 REPL server listens on 127.0.0.1 but not "localhost" References: <20141101205635.UI3ZE.44485.root@cdptpa-web20> <878ujtbusi.fsf@taylan.uni.cx> Date: Wed, 22 Jun 2016 10:32:06 +0200 In-Reply-To: <878ujtbusi.fsf@taylan.uni.cx> ("Taylan Ulrich =?utf-8?Q?=5C=22Bay=C4=B1rl=C4=B1=2FKammer=5C=22=22's?= message of "Sun, 02 Nov 2014 14:23:41 +0100") Message-ID: <87por9tyih.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pobox-Relay-ID: D23F7A00-3853-11E6-A139-C1836462E9F6-02397024!pb-sasl1.pobox.com X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 18914 Cc: 18914@debbugs.gnu.org, dsmich@roadrunner.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 12 03:17:56 2016 Received: (at 18914) by debbugs.gnu.org; 12 Jul 2016 07:17:56 +0000 Received: from localhost ([127.0.0.1]:47528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMrx6-0007gE-8R for submit@debbugs.gnu.org; Tue, 12 Jul 2016 03:17:56 -0400 Received: from pb-sasl2.pobox.com ([64.147.108.67]:53019 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMrx4-0007g6-2G for 18914@debbugs.gnu.org; Tue, 12 Jul 2016 03:17:54 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id DEC4F23E2A; Tue, 12 Jul 2016 03:17:52 -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; s=sasl; bh=MRcMeL/MjV4qMbpmssNxnAyENuM=; b=O6yi9i +RImvvSLQmH6vMkVUOQIXFb4Jw87m7XVoEEZR05QbIRwu3oDCvlDDDwK2wfrj2v/ Z5JTdEWKjFJ1iKg2uIjuUB6u7Gd9OB8bGJ3a58SqOVrepBnxYaqghnn0DGKMx6ms uqzbInrhnv184CjpoPtaxdyk5jC+Se9k8gWKY= 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; q=dns; s=sasl; b=QDFhnK31TzhCrDIUq0KX7Ve7kis5t/hm 5TDrXTrg7oFnsVORIz+UMqgLzcsAHJfYOJ5ci1Lu/r5jDvv9Tz2liVo314mBnRKM hTwv8AjOYc54To0600GfhrjExJQwIUYuIrePRoCm2Pcpbgzc04IJej/GvXQYV74I QJ6Rd8TlF2s= Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id C664523E29; Tue, 12 Jul 2016 03:17:52 -0400 (EDT) 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-sasl2.pobox.com (Postfix) with ESMTPSA id DEB8623E28; Tue, 12 Jul 2016 03:17:51 -0400 (EDT) From: Andy Wingo To: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?=22Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer=22?=) Subject: Re: bug#18914: 2.0.11 REPL server listens on 127.0.0.1 but not "localhost" References: <20141101205635.UI3ZE.44485.root@cdptpa-web20> <878ujtbusi.fsf@taylan.uni.cx> <87por9tyih.fsf@pobox.com> Date: Tue, 12 Jul 2016 09:17:44 +0200 In-Reply-To: <87por9tyih.fsf@pobox.com> (Andy Wingo's message of "Wed, 22 Jun 2016 10:32:06 +0200") Message-ID: <87eg6z2ulj.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: BEEB799C-4800-11E6-BA9F-28A6F1301B6D-02397024!pb-sasl2.pobox.com X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 18914 Cc: 18914@debbugs.gnu.org, dsmich@roadrunner.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) On Wed 22 Jun 2016 10:32, Andy Wingo writes: > Works for me, with Guile 2.0.11 also. Could it be that "nc" is trying > to connect to an IPv6 address? Pretty sure that's what's going on here. When Guile makes server sockets, it assumes it should listen on a single family/address/port triple. Specifically for INADDR_LOOPBACK that's going to be IPv4 127.0.0.1 and not IPv6 at all. Probably we should use getaddrinfo if the user supplies a "host", and use that to plumb through a list of addresses on which to bind (and/or connect). Andy From debbugs-submit-bounces@debbugs.gnu.org Mon May 17 16:43:50 2021 Received: (at 18914-done) by debbugs.gnu.org; 17 May 2021 20:43:50 +0000 Received: from localhost ([127.0.0.1]:53906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lik5e-00053N-9K for submit@debbugs.gnu.org; Mon, 17 May 2021 16:43:50 -0400 Received: from mail-ed1-f48.google.com ([209.85.208.48]:43858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lik5c-000539-Bc for 18914-done@debbugs.gnu.org; Mon, 17 May 2021 16:43:48 -0400 Received: by mail-ed1-f48.google.com with SMTP id s6so8443163edu.10 for <18914-done@debbugs.gnu.org>; Mon, 17 May 2021 13:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=3pl3/umqwppeydKkPvt3V3d47O9fLFORLE1m5+Sj0Ys=; b=pGtr9wd7yhXJLMmYslTTCpF0eg7KNd16BnoI+UBv8FWSRSD4K2PaFtrcWUrspPsJtb R9+E/Hf1eirtujJ65wInnK+MpDbccii0ZKK9qv9PaMkjhhQuYJ4830xZxz7oV6ERltJv 9JonXTIuHQCVkZMZDrwTj2+Z5jf+1n9hVTkhr9hL+8Kuf+gdWeNquHHMjhUHNeujrSUo LqTo1A4nf0ZS7A0TbNBtQ29yqhRIGy8tSrHfYE+4VCHqVfDZp6+MkrsjyL/JLwnyDqFB w91BQsJhqPljYQgQsetTWElwvZfJSR+jnjEPvjwz2/Zi4iQGi0Dwx6ZJP6eUrq/w0kDA 4N0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=3pl3/umqwppeydKkPvt3V3d47O9fLFORLE1m5+Sj0Ys=; b=WaVrXwKwrM26MaWohdvarcriYoAu4DBxZ/a0dDxouWzGXx5kXfMVi4AiIs2nu4NGbx 8tTTcytC9MIqJLgFM9KfClLg/HCI6bINjfWBaMf6xvHCwqt9or5bu7o7nkOzIYL8UZZ6 OKX6WNRIOgfFSmFPQRq4SI31LAgEYvO6aUThLVL1GaFc/7cFIsc4trQ+IobZjntFBJ+I WQ1zy/qvm4YK//TkTSoSeVnQdAhoYz6qPPotxB1srPbPMX1ei1sCZVPD6nT2PKVU/4II EHq/KHRCnHrzvcve1q6ao3v9+96BQsV7vEdO/529K8gKkerl5514Sdd+cK/VWpU+BYqs srdw== X-Gm-Message-State: AOAM533XiekyBNXNhr1dc/ob2cWDpezKAC7Z6nCUZmpbFj9tL56dcDeP AJVLCQsM05PBkke9QQOJF/+SsIOeRvSLIQ== X-Google-Smtp-Source: ABdhPJzUKfCkIOopb8xdAnPbDXUfdvlivGn5ktFBe1Aesc0DKvsagykgeLpBJVaNZzRnpseM6dE0VQ== X-Received: by 2002:a50:ff15:: with SMTP id a21mr2278692edu.103.1621284222450; Mon, 17 May 2021 13:43:42 -0700 (PDT) Received: from [192.168.178.20] (b2b-109-90-125-150.unitymedia.biz. [109.90.125.150]) by smtp.gmail.com with ESMTPSA id g24sm11798522eds.41.2021.05.17.13.43.42 for <18914-done@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 13:43:42 -0700 (PDT) To: 18914-done@debbugs.gnu.org From: Taylan Kammer Subject: 2.0.11 REPL server listens on 127.0.0.1 but not "localhost" Message-ID: <0917fc9d-2687-dd2d-6264-0cf8d999a4a2@gmail.com> Date: Mon, 17 May 2021 22:43:41 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18914-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I don't have access to the exact system anymore since it's been more than 6 years, but on a Debian with the exact same /etc/hosts I can't reproduce the issue anymore. Since I was apparently the only one who could repro it in the first place, I'm closing it now. :-) Andy wrote: > Could it be that "nc" is trying to connect to an IPv6 address? Maybe that was the case on that system for some reason, despite the IPv4 address being on top in /etc/hosts and nslookup giving 127.0.0.1. Maybe it was even a bug with the ncat I had installed, who knows. -- Taylan From unknown Thu Jun 19 14:00:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Jun 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator