From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: J Kalbhenn Newsgroups: gmane.lisp.guile.bugs Subject: bug#17466: unexpected bytevector contents with get-bytevector-n Date: Sun, 11 May 2014 13:00:23 +0200 Message-ID: <536F5847.6060004@posteo.eu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1399831330 24557 80.91.229.3 (11 May 2014 18:02:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 May 2014 18:02:10 +0000 (UTC) To: 17466@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun May 11 20:02:03 2014 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WjY4Z-0000Ks-0o for guile-bugs@m.gmane.org; Sun, 11 May 2014 20:02:03 +0200 Original-Received: from localhost ([::1]:33871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjY4Y-00085j-KF for guile-bugs@m.gmane.org; Sun, 11 May 2014 14:02:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjWxz-0002cq-BN for bug-guile@gnu.org; Sun, 11 May 2014 12:51:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjWxq-0007kl-8z for bug-guile@gnu.org; Sun, 11 May 2014 12:51:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjWxq-0007kd-62 for bug-guile@gnu.org; Sun, 11 May 2014 12:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WjWxp-0007iB-Qn for bug-guile@gnu.org; Sun, 11 May 2014 12:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: J Kalbhenn Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 11 May 2014 16:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17466 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139982702929584 (code B ref -1); Sun, 11 May 2014 16:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 May 2014 16:50:29 +0000 Original-Received: from localhost ([127.0.0.1]:59459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjWxG-0007h3-DV for submit@debbugs.gnu.org; Sun, 11 May 2014 12:50:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45901) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjRV5-00055r-EI for submit@debbugs.gnu.org; Sun, 11 May 2014 07:01:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjRUr-0007wo-2p for submit@debbugs.gnu.org; Sun, 11 May 2014 07:00:54 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjRUr-0007wk-0p for submit@debbugs.gnu.org; Sun, 11 May 2014 07:00:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjRUk-0007iz-MK for bug-guile@gnu.org; Sun, 11 May 2014 07:00:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjRUe-0007w1-Hj for bug-guile@gnu.org; Sun, 11 May 2014 07:00:38 -0400 Original-Received: from mx02.posteo.de ([89.146.194.165]:37734 helo=posteo.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjRUe-0007qq-7U for bug-guile@gnu.org; Sun, 11 May 2014 07:00:32 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.posteo.de (Postfix) with ESMTP id 2B12F25AF530 for ; Sun, 11 May 2014 13:00:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at posteo.de Original-Received: from posteo.de ([10.125.125.178]) by localhost (amavis1.posteo.de [10.125.125.165]) (amavisd-new, port 10026) with ESMTP id Q8f5xuU1MH_h for ; Sun, 11 May 2014 13:00:28 +0200 (CEST) Original-Received: from mail.posteo.de (localhost [127.0.0.1]) by mail.posteo.de (Postfix) with ESMTPSA id E40C12C00ED for ; Sun, 11 May 2014 13:00:27 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sun, 11 May 2014 12:50:22 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sun, 11 May 2014 14:01:59 -0400 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-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7450 Archived-At: concerning the following code example -- (import (rnrs io ports) (ice-9 pretty-print)) (define (problem-part port) (pretty-print (get-bytevector-n port 4096))) (let loop ((count 100)) (if (> count 0) (begin (call-with-input-string "22222222222222222222" problem-part) (loop (- count 1))))) __ when i run it i get output with portions like this -- #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) #vu8(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0) #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) #vu8(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0) #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) #vu8(50 50 50 50 50 50 50 50 16 224 240 0 0 0 0 0 50 50 50 50) #vu8(50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50) -- and i would expect the bytevector to always be the same. this first occurred to me in a more complicated scenario where: - the input port is a file-port - pretty-print was used at first and then display instead, but the problem persisted with a much lower frequency system info guile 2.0.11 linux 3.14.2-1-ARCH x86_64