From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.bugs Subject: bug#39610: R6RS `flush-output-port` not playing along with `transcoded-port` Date: Sat, 15 Feb 2020 01:08:42 +0100 Message-ID: <87d0agu2yd.fsf@londo.h.r0tty.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="7824"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) To: 39610@debbugs.gnu.org Cancel-Lock: sha1:BFWW/XSRbSSGg7g4+WylGpBUvJY= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sat Feb 15 01:35:11 2020 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j2lQN-0001xo-96 for guile-bugs@m.gmane-mx.org; Sat, 15 Feb 2020 01:35:11 +0100 Original-Received: from localhost ([::1]:47024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2lQM-0000tD-7m for guile-bugs@m.gmane-mx.org; Fri, 14 Feb 2020 19:35:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55525) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2lQF-0000qF-3Z for bug-guile@gnu.org; Fri, 14 Feb 2020 19:35:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2lQE-00025W-7q for bug-guile@gnu.org; Fri, 14 Feb 2020 19:35:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57155) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2lQE-00025G-5J for bug-guile@gnu.org; Fri, 14 Feb 2020 19:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j2lQE-0005HT-1i for bug-guile@gnu.org; Fri, 14 Feb 2020 19:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Rottmann Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 15 Feb 2020 00:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39610 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158172685920235 (code B ref -1); Sat, 15 Feb 2020 00:35:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Feb 2020 00:34:19 +0000 Original-Received: from localhost ([127.0.0.1]:34893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2lPX-0005GI-85 for submit@debbugs.gnu.org; Fri, 14 Feb 2020 19:34:19 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:46429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2l6w-0004np-FG for submit@debbugs.gnu.org; Fri, 14 Feb 2020 19:15:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53861) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2l6v-0003u3-FK for bug-guile@gnu.org; Fri, 14 Feb 2020 19:15:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2l6u-000809-I8 for bug-guile@gnu.org; Fri, 14 Feb 2020 19:15:05 -0500 Original-Received: from ciao.gmane.io ([159.69.161.202]:46382) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j2l6u-0007ub-Bp for bug-guile@gnu.org; Fri, 14 Feb 2020 19:15:04 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1j2l6s-000DO1-Bg for bug-guile@gnu.org; Sat, 15 Feb 2020 01:15:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Mailman-Approved-At: Fri, 14 Feb 2020 19:34:18 -0500 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9576 Archived-At: Hi fellow Schemers! I was gently nudged on IRC into having a look into my Scheme code, after many years of abandon, and found that `dorodango` (a reasonably large body of R6RS code) hangs with Guile 2.2 and 3.0, while it worked on 2.0 (IIRC). I isolated the cause; the following snippet hangs on Guile 2.2 and 3.0, while it worked as expected on 2.0: ;; ------------------ (import (rnrs)) (let* ((p (pipe)) (in (car p)) (out (transcoded-port (cdr p) (make-transcoder (utf-8-codec))))) (put-datum out "foo") (flush-output-port out) (display "Should have written to pipe by now, attempting reading a byte\n") (display "Got") (display (get-u8 in)) (newline)) ;; ------------------- It seems the underlying port is no longer flushed to the OS, so the `get-u8` now hangs waiting for input, starting with Guile 2.2. Regards, Rotty