From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Unreliability in process output Date: Tue, 07 Jun 2005 08:25:02 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1118147225 29454 80.91.229.2 (7 Jun 2005 12:27:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2005 12:27:05 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 07 14:27:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DfdA7-0004wW-0q for ged-emacs-devel@m.gmane.org; Tue, 07 Jun 2005 14:26:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfdGc-0006Ex-AE for ged-emacs-devel@m.gmane.org; Tue, 07 Jun 2005 08:33:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DfdEB-0005CC-4V for emacs-devel@gnu.org; Tue, 07 Jun 2005 08:30:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DfdE1-00055B-K9 for emacs-devel@gnu.org; Tue, 07 Jun 2005 08:30:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfdE0-00053V-PT for emacs-devel@gnu.org; Tue, 07 Jun 2005 08:30:32 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DfdDZ-0006j6-O1 for emacs-devel@gnu.org; Tue, 07 Jun 2005 08:30:05 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Dfd8g-0006k3-Bl; Tue, 07 Jun 2005 08:25:02 -0400 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38243 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38243 After emacs -Q, visiting src/window.c and then doing C-x v l gives unreliable results. Large chunks of the buffer are missing. Which parts are missing varies each time, but the first missing chunk seems to start on a 4096-character boundary. The problem still happens if process-adaptive-read-buffering is nil and coding-system-for-read is no-conversion. I've determined that the variable carryover in read_process_output is always zero in that mode. When I tried this with a breakpoint at read_process_output, and paused for some time in that breakpoint, the text obtained consisted of the first chunk plus a little more; nearly all was lost. Stepping through read_process_output showed that the only calls to emacs_read were from read_process_output, and that the text they read was the text that appeared in the buffer. Somehow the rest of the text is disappearing. Similar problems happen with an executable I compiled almost 3 years ago. It is not a newly introduced problem. Can anyone else observe this problem? Can anyone make more headway debugging this?