From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs,gmane.lisp.scheme.geiser Subject: bug#33403: [Geiser-users] Data length limit in Guile/Geiser/Scheme evaluation Date: Fri, 16 Nov 2018 01:49:39 -0500 Message-ID: <87d0r5349t.fsf@netris.org> References: <87sh021kw2.fsf@ossau.homelinux.net> <878t1ugyf9.fsf@nicolasgoaziou.fr> <87h8gi1g5g.fsf@ossau.homelinux.net> <871s7mz357.fsf@imladris> <87bm6q1c33.fsf@ossau.homelinux.net> <87o9aq55tl.fsf@ossau.homelinux.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542350945 5414 195.159.176.226 (16 Nov 2018 06:49:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2018 06:49:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: geiser-users@nongnu.org, 33403@debbugs.gnu.org To: Neil Jerram Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Nov 16 07:49:01 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNXw4-0001G5-J5 for guile-bugs@m.gmane.org; Fri, 16 Nov 2018 07:49:00 +0100 Original-Received: from localhost ([::1]:42400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNXyA-0004yW-Vg for guile-bugs@m.gmane.org; Fri, 16 Nov 2018 01:51:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNXy6-0004yR-I7 for bug-guile@gnu.org; Fri, 16 Nov 2018 01:51:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNXy2-0004tr-Gu for bug-guile@gnu.org; Fri, 16 Nov 2018 01:51:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gNXy2-0004tn-EG for bug-guile@gnu.org; Fri, 16 Nov 2018 01:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gNXy2-0003HG-BH for bug-guile@gnu.org; Fri, 16 Nov 2018 01:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 16 Nov 2018 06:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33403 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 33403-submit@debbugs.gnu.org id=B33403.154235103012552 (code B ref 33403); Fri, 16 Nov 2018 06:51:02 +0000 Original-Received: (at 33403) by debbugs.gnu.org; 16 Nov 2018 06:50:30 +0000 Original-Received: from localhost ([127.0.0.1]:54658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNXxV-0003GO-Nk for submit@debbugs.gnu.org; Fri, 16 Nov 2018 01:50:29 -0500 Original-Received: from world.peace.net ([64.112.178.59]:59984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNXxT-0003GA-J9 for 33403@debbugs.gnu.org; Fri, 16 Nov 2018 01:50:28 -0500 Original-Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gNXxN-0002vC-D8; Fri, 16 Nov 2018 01:50:21 -0500 In-Reply-To: <87o9aq55tl.fsf@ossau.homelinux.net> (Neil Jerram's message of "Thu, 15 Nov 2018 22:33:42 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.lisp.guile.bugs:9269 gmane.lisp.scheme.geiser:643 Archived-At: Hi Neil, Neil Jerram writes: > Hi, this is a report for Guile 2.2: > > neil@henry:~$ guile --version > guile (GNU Guile) 2.2.3 > Packaged by Debian (2.2.3-deb+1-3ubuntu0.1) > > I'm seeing something that looks like a line or sexp length limit when > reading from a terminal. Sample inputs are in the attached file. > > > > If I run guile in a terminal (GNOME Terminal 3.28.2), select the first > block from the file, and use my middle mouse button to paste it into the > guile prompt, I get the expected answer: > > $4 = 139 > scheme@(guile-user)> > > If I do the same with the second block, I get no response, and it > appears that Guile has hung in some way. I have to type C-c to get a > new prompt: > > ^C^CWhile reading expression: > User interrupt > scheme@(guile-user)> > > The max line length for the first block is 4087. For the second it's > 4113. Could there be a 4K buffer or limit involved somewhere? Indeed, I can reproduce the same issue when pasting into an Emacs shell buffer. I've verified that Guile only receives the first 4095 bytes of the first line. The following characters from the end of the first line are lost: A AAAA" "Aub"))))) So the second and third lines of the input become part of the string literal whose closing quote was lost, and Guile's reader continues to wait for a closing quote. If, after pasting this, you type another close quote, 5 close parens, and then repaste the last two lines, it will print the garbled input and return to a prompt. Anyway, to make a long story short, after some debugging, I found that precisely the same truncation of the first line happens when using 'cat' from GNU coreutils. Simply type 'cat' and paste the same text, and you'll see that in the output, only the first 4095 bytes of the first line were retained. So, I'm not sure where the problem is, but it's not a problem in Guile. Regards, Mark