From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.devel Subject: Re: Bug in Guile's Posix Networking Date: Tue, 08 Feb 2011 00:49:41 +0100 Message-ID: <877hdb76cq.fsf@vir.lan> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297122612 28480 80.91.229.12 (7 Feb 2011 23:50:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Feb 2011 23:50:12 +0000 (UTC) Cc: guile-devel@gnu.org To: Noah Lavine Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Feb 08 00:50:08 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PmaqO-0000qc-8m for guile-devel@m.gmane.org; Tue, 08 Feb 2011 00:50:08 +0100 Original-Received: from localhost ([127.0.0.1]:49838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmaqN-000091-HN for guile-devel@m.gmane.org; Mon, 07 Feb 2011 18:50:07 -0500 Original-Received: from [140.186.70.92] (port=46773 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pmaq6-00006J-33 for guile-devel@gnu.org; Mon, 07 Feb 2011 18:49:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pmaq4-000891-PG for guile-devel@gnu.org; Mon, 07 Feb 2011 18:49:49 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:52999) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Pmaq4-00088o-Hq for guile-devel@gnu.org; Mon, 07 Feb 2011 18:49:48 -0500 Original-Received: (qmail invoked by alias); 07 Feb 2011 23:49:46 -0000 Original-Received: from 83-215-154-5.hage.dyn.salzburg-online.at (EHLO nathot.lan) [83.215.154.5] by mail.gmx.net (mp064) with SMTP; 08 Feb 2011 00:49:46 +0100 X-Authenticated: #3102804 X-Provags-ID: V01U2FsdGVkX19joCF/QVtjcKWoBK+OTMPOBIy6LxNpPX9WQridCO NKozIcr+hYglms Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by nathot.lan (Postfix) with ESMTP id EBBB33A68F; Tue, 8 Feb 2011 00:49:45 +0100 (CET) Original-Received: from nathot.lan ([127.0.0.1]) by localhost (nathot.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IKy2mJIVg9jl; Tue, 8 Feb 2011 00:49:42 +0100 (CET) Original-Received: from vir (vir.lan [192.168.3.10]) by nathot.lan (Postfix) with ESMTP id 327ED3A672; Tue, 8 Feb 2011 00:49:42 +0100 (CET) Original-Received: by vir (Postfix, from userid 1000) id DAB2ABDC94; Tue, 8 Feb 2011 00:49:41 +0100 (CET) In-Reply-To: (Noah Lavine's message of "Mon, 7 Feb 2011 01:28:07 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11542 Archived-At: Noah Lavine writes: > Hello all, > > I think there's a bug in Guile's Posix networking capabilities. I > first noticed it a few days ago when I couldn't get the example web > server to work on my system (Mac OS X 10.6). I was getting an error > from the bind command saying "can't assign requested address". I > assumed it was a system configuration problem until I discovered that > an equivalent Python program could bind a socket without trouble. > > The full story is at > http://serverfault.com/questions/231941/why-cant-i-bind-to-127-0-0-1-on-mac-os-x > (I know the Python program listed is not quite identical to the Scheme > one, but I tried it with an actually identical Scheme program and > still got the same error.) Interestingly enough, I was able to bind a > socket in Guile if I specified INADDR_ANY as its address instead of > 127.0.0.1. > > I hope to work on this soon, but I thought I'd ask on this list if > anyone has an idea what might be causing this. > It would be interesting to see the output of a strace-like tool on both the working Python program and the equivalent failing Guile program. Apparently (according to the Interwebs), on OS X this tool is called "dtruss". Regards, Rotty -- Andreas Rottmann --