From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#9800: Incomplete truncated file buffers from the /proc filesystem Date: Mon, 07 Feb 2022 21:41:01 +0200 Organization: LINKOV.NET Message-ID: <86h79alb1u.fsf@mail.linkov.net> References: <877h40vb8h.fsf@mail.jurta.org> <87czjz35a9.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22778"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 9800@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 07 20:51:35 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nHA2x-0005n3-Cd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 20:51:35 +0100 Original-Received: from localhost ([::1]:40114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHA2w-0003qG-D0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 14:51:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHA2S-0003m0-EQ for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 14:51:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHA2Q-0005I7-W2 for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 14:51:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHA2Q-0007yk-VE for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 14:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Feb 2022 19:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9800 X-GNU-PR-Package: emacs Original-Received: via spool by 9800-submit@debbugs.gnu.org id=B9800.164426343630621 (code B ref 9800); Mon, 07 Feb 2022 19:51:02 +0000 Original-Received: (at 9800) by debbugs.gnu.org; 7 Feb 2022 19:50:36 +0000 Original-Received: from localhost ([127.0.0.1]:43847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHA1z-0007xk-Sr for submit@debbugs.gnu.org; Mon, 07 Feb 2022 14:50:36 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:54631) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHA1y-0007xO-KH for 9800@debbugs.gnu.org; Mon, 07 Feb 2022 14:50:34 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 608FA1C0004; Mon, 7 Feb 2022 19:50:28 +0000 (UTC) In-Reply-To: <87czjz35a9.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 07 Feb 2022 01:10:38 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226281 Archived-At: >> Large files from the /proc filesystem are visited incompletely, >> their file buffers are truncated at the position 65536. > > It seems like this issue has been exacerbated somewhat since this was > reported. > > (with-temp-buffer > (insert-file-contents "/proc/cpuinfo") > (buffer-size)) > => 16384 > > (with-temp-buffer > (call-process "cat" nil t nil "/proc/cpuinfo") > (buffer-size)) > => 24626 > > But perhaps it's dependent on the block size. (This is on > Debian/bookworm with Emacs 29.) I confirm that the block size now is decreased from 65536 to 16384, so more buffers are truncated.