From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jeffrey J. Kosowsky" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#5359: 23.1.91; CRITICAL BUG: process-send-region hangs ntEmacs if region >64K Date: Mon, 11 Jan 2010 15:16:02 -0500 Message-ID: <19275.34562.710340.610420@consult.pretender> Reply-To: "Jeffrey J. Kosowsky" , 5359@debbugs.gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1263259487 20701 80.91.229.12 (12 Jan 2010 01:24:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2010 01:24:47 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 12 02:24:40 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NUVUs-0003KZ-6s for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jan 2010 02:24:38 +0100 Original-Received: from localhost ([127.0.0.1]:40376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUVUs-0006JS-Il for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jan 2010 20:24:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NURCM-0004Hf-1i for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2010 15:49:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NURCG-0004Bd-8o for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2010 15:49:12 -0500 Original-Received: from [199.232.76.173] (port=33914 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NURCF-0004BR-P2 for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2010 15:49:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58425) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NURCF-00038c-9l for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2010 15:49:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NUQk7-0003tU-M6; Mon, 11 Jan 2010 15:20:03 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: "Jeffrey J. Kosowsky" , 5359@debbugs.gnu.org Resent-From: "Jeffrey J. Kosowsky" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2010 20:20:03 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5359 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.126324115614949 (code B ref -1); Mon, 11 Jan 2010 20:20:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jan 2010 20:19:16 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUQjM-0003t4-7k for submit@debbugs.gnu.org; Mon, 11 Jan 2010 15:19:16 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUQgo-0003qP-TX for submit@debbugs.gnu.org; Mon, 11 Jan 2010 15:16:39 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]:42314) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUQgk-00048X-MY for emacs-pretest-bug@gnu.org; Mon, 11 Jan 2010 15:16:34 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NUQgi-0002gS-0E for emacs-pretest-bug@gnu.org; Mon, 11 Jan 2010 15:16:34 -0500 Original-Received: from vms173003pub.verizon.net ([206.46.173.3]:56752) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUQgh-0002g6-It for emacs-pretest-bug@gnu.org; Mon, 11 Jan 2010 15:16:31 -0500 Original-Received: from consult.pretender ([unknown] [173.76.135.148]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0KW300FTDMYTJDG2@vms173003.mailsrvcs.net> for emacs-pretest-bug@gnu.org; Mon, 11 Jan 2010 14:16:18 -0600 (CST) Original-Received: from consult.pretender (localhost [127.0.0.1]) by consult.pretender (8.14.3/8.14.3) with ESMTP id o0BKG52j024554 for ; Mon, 11 Jan 2010 15:16:05 -0500 X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Mon, 11 Jan 2010 15:19:14 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -6.6 (------) Resent-Date: Mon, 11 Jan 2010 15:20:03 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 11 Jan 2010 20:24:34 -0500 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34213 gmane.emacs.pretest.bugs:25380 Archived-At: When using process-send-region-process to send a region more than about 64K in size to the command 'cat', emacs hangs forever and is *only* recoverable by going out of emacs to kill the 'cat' process. The following simple code snippet reproduces the problem where NNNN is bigger than about 64K. Just run it on a region containing sufficient text... (progn (setq process (start-process "test" "tempbuff" "cat")) (process-send-region process (point-min) NNNNN)) Note the problem *does* not occur with synchronous use of 'cat' via call-process-region nor does it occur if you 'cat' the region onto a file (e.g. using "> tempfile" as part of the &rest args). Also, this problem does not occur on Linux. The exact cutoff for when it fails is always within a few thousand bytes of 64K but varies by file (and may be related to things like encoding). The problem also occurs if NNNN is smaller than 64K but you send multiple separate regions of size >64K in rapid succession. This seems to be some type of buffering issue. Also, the bug is not *theoretical* in that it breaks functionality in the vm.el (viewmail) program. I am using: GNU Emacs 23.1.91.1 (i386-mingw-nt5.1.2600) But had the same bug on GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-09-23 on YAMALOK and also on ntEmacs 22. Again Linux works just fine. This bug may or may not be related to the following code snippet found in the standard tramp.el package: ;; Under Windows XP, accept-process-output doesn't return ;; sometimes. So we add an additional timeout. (with-timeout ((or timeout 1)) (accept-process-output proc timeout timeout-msecs))) ------------------------------------------------------------------------------- In GNU Emacs 23.1.91.1 (i386-mingw-nt5.1.2600) of 2010-01-02 on PRETEST Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Debugger Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f e m . y x g l o b a l - s e e v a l - e x p C-y C-a C-k C-y C-y 6 0 0 0 0 ) ) C-n C-n C-n C-n C-n C-n C-y C-a C-k C-y C-a C-k C-y C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-e C-b C-b 7 0 0 0 0 C-a C-k C-y x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. File emacs.exe is large (31MB), really open? (y or n) nil Entering debugger... Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr message smtpmail sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug help-mode easymenu view debug tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs)