From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Abrahams Newsgroups: gmane.emacs.bugs Subject: bug#3071: 23.0.92; accept-process-output broken on MacOS Date: Tue, 21 Apr 2009 08:52:04 -0400 Message-ID: Reply-To: David Abrahams , 3071@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1240325124 10236 80.91.229.12 (21 Apr 2009 14:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Apr 2009 14:45:24 +0000 (UTC) Cc: John Wiegley , tramp-devel@mail.freesoftware.fsf.org, michael.albinus@gmx.de To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 21 16:46:41 2009 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 1LwHEx-00077y-6e for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Apr 2009 16:46:27 +0200 Original-Received: from localhost ([127.0.0.1]:55694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwHDY-0005Jv-4K for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Apr 2009 10:45:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwHCe-00058F-JZ for bug-gnu-emacs@gnu.org; Tue, 21 Apr 2009 10:44:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwHCY-00054S-RP for bug-gnu-emacs@gnu.org; Tue, 21 Apr 2009 10:44:02 -0400 Original-Received: from [199.232.76.173] (port=37706 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwHCX-00054J-G2 for bug-gnu-emacs@gnu.org; Tue, 21 Apr 2009 10:43:58 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44119) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LwHCW-0004e9-HN for bug-gnu-emacs@gnu.org; Tue, 21 Apr 2009 10:43:57 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3LEhqY6029489; Tue, 21 Apr 2009 07:43:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3LEP7Au024228; Tue, 21 Apr 2009 07:25:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: David Abrahams Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 21 Apr 2009 14:25:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3071 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124032359622518 (code B ref -1); Tue, 21 Apr 2009 14:25:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 21 Apr 2009 14:19:56 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3LEJqrt022510 for ; Tue, 21 Apr 2009 07:19:54 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:54080 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LwGpE-0005q0-9a for emacs-pretest-bug@gnu.org; Tue, 21 Apr 2009 10:19:52 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LwGpA-0007ED-R1 for emacs-pretest-bug@gnu.org; Tue, 21 Apr 2009 10:19:51 -0400 Original-Received: from smtp02.lnh.mail.rcn.net ([207.172.157.102]:21619) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LwFSK-00055D-4I for emacs-pretest-bug@gnu.org; Tue, 21 Apr 2009 08:52:08 -0400 Original-Received: from mr02.lnh.mail.rcn.net ([207.172.157.22]) by smtp02.lnh.mail.rcn.net with ESMTP; 21 Apr 2009 08:52:07 -0400 Original-Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr02.lnh.mail.rcn.net (MOS 3.10.4-GA) with ESMTP id PTC75992; Tue, 21 Apr 2009 08:52:05 -0400 (EDT) Original-Received: from 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com (HELO zreba.local) ([207.172.223.249]) by smtp01.lnh.mail.rcn.net with ESMTP; 21 Apr 2009 08:52:05 -0400 Original-Received: by zreba.local (Postfix, from userid 501) id 988C440DBAD; Tue, 21 Apr 2009 08:52:04 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (darwin) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 21 Apr 2009 10:44:02 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:27380 Archived-At: --=-=-= Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Opening remote files/directories via TRAMP is wicked slow on MacOS; the same operation on a linux emacs running on the same hardware is practically instantaneous. Turns out that applying the enclosed patch makes the symptom go away. I'm not an expert on emacs process handling, but that tells me emacs probably isn't detecting output from the process until the timeout (usually 1 second for TRAMP) is reached. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=tramp.el.patch cvs diff: warning: failed to open /Users/dave/.cvspass for reading: No such file or directory Index: tramp.el =================================================================== RCS file: /sources/tramp/tramp/lisp/tramp.el,v retrieving revision 2.686 diff -d -u -r2.686 tramp.el --- tramp.el 12 Apr 2009 19:21:03 -0000 2.686 +++ tramp.el 21 Apr 2009 04:45:54 -0000 @@ -5864,7 +5864,7 @@ ;; 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))) + (accept-process-output proc .01))) (tramp-message proc 10 "\n%s" (buffer-string)))) (defun tramp-check-for-regexp (proc regexp) --=-=-= If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /Applications/Emacs.app/Contents/Resources/etc/DEBUG for instructions. In GNU Emacs 23.0.92.1 (i386-apple-darwin9.6.2, NS apple-appkit-949.43) of 2009-04-19 on zreba.local Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns' '--with-jpeg' '--with-tiff' '--with-gif'' 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: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: C/l Minor modes in effect: shell-dirtrack-mode: t show-paren-mode: t server-mode: t global-auto-revert-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-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 abbrev-mode: t Recent input: C-n C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-b C-( C-p C-p C-p C-p C-n C-n C-n C-p C-p C-p C-p C-x C-b C-x C-b M-x M-p Recent messages: Tramp: Waiting 60s for local shell to come up... Tramp: Sending command `ssh hydra.local -q -e none && exit || exit' Tramp: Waiting for prompts from remote shell Tramp: Found remote shell prompt on `hydra.local' [3 times] Quit [2 times] Mark saved where search started Quit Mark saved where search started [4 times] Quit Mark saved where search started [2 times] -- Dave Abrahams BoostPro Computing http://www.boostpro.com --=-=-=--