From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: process output has become a bit random... Date: 01 Aug 2004 02:28:38 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <4108D78A.7090001@math.ku.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1091320146 17705 80.91.224.253 (1 Aug 2004 00:29:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Aug 2004 00:29:06 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 01 02:28:58 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Br4Di-0007Dy-00 for ; Sun, 01 Aug 2004 02:28:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Br4H1-0006dG-G8 for ged-emacs-devel@m.gmane.org; Sat, 31 Jul 2004 20:32:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Br4Gv-0006dB-8m for emacs-devel@gnu.org; Sat, 31 Jul 2004 20:32:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Br4Gu-0006cz-Om for emacs-devel@gnu.org; Sat, 31 Jul 2004 20:32:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Br4Gu-0006cw-MP for emacs-devel@gnu.org; Sat, 31 Jul 2004 20:32:16 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Br4DQ-0002X3-Ub for emacs-devel@gnu.org; Sat, 31 Jul 2004 20:28:41 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Br4DP-0000ca-UD; Sat, 31 Jul 2004 20:28:40 -0400 Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: Original-Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26129 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26129 --=-=-= David Kastrup writes: > storm@cua.dk (Kim F. Storm) writes: > > > storm@cua.dk (Kim F. Storm) writes: > > > > > Could you try to set readmax to 1024 ? > > > > > > That may break UDP packet receive, but it isn't relevant for this case. > > > > > > Could you also try the following patch (with readmax=4096). > > > > I don't expect it to make a lot of difference, but just to rule out > > the obvious... > > [...] > > Sorry for the delay, had to go climbing. The patch does not cure the > problem. The problem still occurs with comparable severity. However, the following patch cures everything then: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment --- coding.c 22 Jun 2004 11:22:11 +0200 1.305 +++ coding.c 01 Aug 2004 02:17:32 +0200 @@ -5330,7 +5330,7 @@ /* As shrinking conversion region requires some overhead, we don't try shrinking if the length of conversion region is less than this value. */ -static int shrink_conversion_region_threshhold = 1024; +static int shrink_conversion_region_threshhold = 4100; #define SHRINK_CONVERSION_REGION(beg, end, coding, str, encodep) \ do { \ --=-=-= This might explain why the changes in buffer size that I did previously triggered problems: that way the buffer could get larger than this threshold of 1024 bytes. It would appear that as soon as shrink_decoding_region is called via SHRINK_CONVERSION_REGION in decode-coding-string, things start going haywire. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--