From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 11 20:05:01 2014 Received: (at submit) by debbugs.gnu.org; 12 Dec 2014 01:05:01 +0000 Received: from localhost ([127.0.0.1]:43356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XzEfE-0004Lq-Jq for submit@debbugs.gnu.org; Thu, 11 Dec 2014 20:05:01 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60944) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XzEfC-0004Lc-4g for submit@debbugs.gnu.org; Thu, 11 Dec 2014 20:04:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzEf5-00030i-JZ for submit@debbugs.gnu.org; Thu, 11 Dec 2014 20:04:52 -0500 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, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzEf5-000301-GC for submit@debbugs.gnu.org; Thu, 11 Dec 2014 20:04:51 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzEf4-0007Mz-C9 for bug-guile@gnu.org; Thu, 11 Dec 2014 20:04:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzEf3-0002zR-6G for bug-guile@gnu.org; Thu, 11 Dec 2014 20:04:50 -0500 Received: from mail-ie0-x232.google.com ([2607:f8b0:4001:c03::232]:38046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzEf2-0002yw-Tn for bug-guile@gnu.org; Thu, 11 Dec 2014 20:04:49 -0500 Received: by mail-ie0-f178.google.com with SMTP id tp5so5873945ieb.23 for ; Thu, 11 Dec 2014 17:04:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:from:date:message-id:subject:to:content-type; bh=G5lp8KhehS6QB1rylUEK0gt24XfaBkfQJuv738tBVm4=; b=Uowp20+gIcWEdcZlst2o9+OVGttKaMQcGFQ5ww+ee/3VL/6o+4k2Ao2OPBfUO0CNi0 9eKFjqaoVfl1ZCYP2QvXAtXwlnln9oBPT0DsREQ2B/95trMEWEOkW2wgKqESzLG5rq+q 991hmysjgqzluqf2aAZe8kjmUgl4kvYBt7txx16CZylKWG6H8hvlNtcKZq2KmYrdBK+u VYlFtT4T3wsOQtYn66HWtGdg7UJsV3/yTv5Wn4UZrqgQg9Hlgu4oSq4SpwmIt8o2LgV0 818CA3aBPHT7w3Vkhhf5DFz+lEgsCQC8H/oPoGvMpmuPAzRfuEmGz/jxODUJ/8FHwL72 KwOw== X-Received: by 10.43.119.131 with SMTP id fu3mr14148816icc.56.1418346288101; Thu, 11 Dec 2014 17:04:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.135.10 with HTTP; Thu, 11 Dec 2014 17:04:27 -0800 (PST) From: Linas Vepstas Date: Thu, 11 Dec 2014 19:04:27 -0600 Message-ID: Subject: (spawn-server (make-tcp-server-socket doesn't work in current git To: bug-guile@gnu.org Content-Type: multipart/alternative; boundary=bcaec517c9d8abbcfd0509fa7a04 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 Reply-To: linasvepstas@gmail.com 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 (----) --bcaec517c9d8abbcfd0509fa7a04 Content-Type: text/plain; charset=UTF-8 After pulling from git, I have observed that the tcp scoket server no longer works. The below used to work fine: $ guile scheme@(guile-user)> (use-modules (system repl server)) scheme@(guile-user)> (use-modules (system repl common)) scheme@(guile-user)> (spawn-server (make-tcp-server-socket #:port 1661)) $1 = # scheme@(guile-user)> then in another terminal: $ telnet localhost 1661 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GNU Guile 2.1.0.155-3f826 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)> (+ 2 2) While compiling expression: ERROR: In procedure string->utf8: Wrong type argument in position 1 (expecting string): socket but comma commands work fine: scheme@(guile-user)> ,h Help Commands [abbrev]: ,help [all | GROUP | [-c] COMMAND] etc. scheme@(guile-user)> ,q Connection closed by foreign host. The above appears to be correct usage, per http://www.gnu.org/software/guile/docs/master/guile.html/REPL-Servers.html -- I don't see any obvious way of slotting a socket-to-string-to-utf8 conversion in there ... -- Linas --bcaec517c9d8abbcfd0509fa7a04 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
After pulling from git, I ha= ve observed that the tcp scoket server
no longer works.=C2=A0 The below= used to work fine:

$ guile
scheme@(guile-user)> (use-mo= dules (system repl server))
scheme@(guile-user)> (use-modules (system= repl common))
scheme@(guile-user)> (spawn-server (make-tcp-server-so= cket=C2=A0 #:port 1661))
$1 =3D #<thread 140551788197632 (1e8c800)>= ;
scheme@(guile-user)>


then in another terminal:
$ telnet localhost 1661
Trying 127.0.0.1...
Connected to local= host.
Escape character is '^]'.
GNU Guile 2.1.0.155-3f826
= Copyright (C) 1995-2014 Free Software Foundation, Inc.

Guile comes w= ith 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 he= lp.
scheme@(guile-user)> (+ 2 2)
While compiling expression:
ER= ROR: In procedure string->utf8: Wrong type argument in position 1 (expec= ting string): socket

but comma commands work fine:
scheme@(guile-= user)> ,h
Help Commands [abbrev]:

=C2=A0,help [all | GROUP | [= -c] COMMAND]
etc.
scheme@(guile-user)> ,q
Connection clos= ed by foreign host.

The above appears to be correct usage, per= http://www.gnu.org/software/guile/docs/master/guile.html/REPL-= Servers.html=C2=A0 -- I don't see any obvious way of slotting a soc= ket-to-string-to-utf8 conversion in there ...

-- Linas

--bcaec517c9d8abbcfd0509fa7a04-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 14 10:36:44 2014 Received: (at 19354-done) by debbugs.gnu.org; 14 Dec 2014 15:36:44 +0000 Received: from localhost ([127.0.0.1]:46199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0BDw-00030i-3W for submit@debbugs.gnu.org; Sun, 14 Dec 2014 10:36:44 -0500 Received: from world.peace.net ([50.252.239.5]:46867 ident=hope2) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0BDt-00030Z-6b for 19354-done@debbugs.gnu.org; Sun, 14 Dec 2014 10:36:41 -0500 Received: from c-76-118-178-32.hsd1.ma.comcast.net ([76.118.178.32] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Y0BDm-0003bf-4v; Sun, 14 Dec 2014 10:36:34 -0500 From: Mark H Weaver To: Linas Vepstas Subject: Re: bug#19354: (spawn-server (make-tcp-server-socket doesn't work in current git References: Date: Sun, 14 Dec 2014 10:34:45 -0500 In-Reply-To: (Linas Vepstas's message of "Thu, 11 Dec 2014 19:04:27 -0600") Message-ID: <874msy5joq.fsf@yeeloong.lan> 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.0 (/) X-Debbugs-Envelope-To: 19354-done Cc: 19354-done@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 (/) Linas Vepstas writes: > scheme@(guile-user)> (spawn-server (make-tcp-server-socket #:port > 1661)) > $1 = # > scheme@(guile-user)> > > then in another terminal: > $ telnet localhost 1661 [...] > scheme@(guile-user)> (+ 2 2) > While compiling expression: > ERROR: In procedure string->utf8: Wrong type argument in position 1 > (expecting string): socket The problem here is that (port-filename ) returns the symbol 'socket', whereas our assembler assumed that any non-#f filename stored in the source properties was a string. Fixed in 015c3c08af2064145d423cef0d94f04069c3e87e. Thanks! Mark From unknown Sun Jun 22 11:48:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 12 Jan 2015 12: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