From unknown Sat Aug 16 19:15:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19354: (spawn-server (make-tcp-server-socket doesn't work in current git Resent-From: Linas Vepstas Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 12 Dec 2014 01:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19354 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 19354@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Reply-To: linasvepstas@gmail.com Received: via spool by submit@debbugs.gnu.org id=B.141834630116740 (code B ref -1); Fri, 12 Dec 2014 01:05:01 +0000 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: 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-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 (----) --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 unknown Sat Aug 16 19:15:41 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: linasvepstas@gmail.com Subject: bug#19354: closed (Re: bug#19354: (spawn-server (make-tcp-server-socket doesn't work in current git) Message-ID: References: <874msy5joq.fsf@yeeloong.lan> X-Gnu-PR-Message: they-closed 19354 X-Gnu-PR-Package: guile Reply-To: 19354@debbugs.gnu.org Date: Sun, 14 Dec 2014 15:37:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1418571422-11618-1" This is a multi-part message in MIME format... ------------=_1418571422-11618-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #19354: (spawn-server (make-tcp-server-socket doesn't work in current git which was filed against the guile package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 19354@debbugs.gnu.org. --=20 19354: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19354 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1418571422-11618-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1418571422-11618-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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-- ------------=_1418571422-11618-1--