From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ritchie Newsgroups: gmane.emacs.help Subject: Re: Tramp error in emacs 23 Date: Fri, 28 Aug 2009 05:11:53 -0700 (PDT) Organization: http://groups.google.com Message-ID: <130776ae-282b-46e2-a0d9-c1db057e02d4@u20g2000prg.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1251464918 25350 80.91.229.12 (28 Aug 2009 13:08:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2009 13:08:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 28 15:08:31 2009 Return-path: Envelope-to: geh-help-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 1Mh1Bt-0006rx-MK for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2009 15:08:30 +0200 Original-Received: from localhost ([127.0.0.1]:48418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mh1Bs-0005Ss-R1 for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2009 09:08:28 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!u20g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 231 Original-NNTP-Posting-Host: 68.190.245.183 Original-X-Trace: posting.google.com 1251461514 5985 127.0.0.1 (28 Aug 2009 12:11:54 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 28 Aug 2009 12:11:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u20g2000prg.googlegroups.com; posting-host=68.190.245.183; posting-account=CuLrKQoAAACxi2VsGphG0_-Zo9Puh4B0 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:172470 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67614 Archived-At: > This looks like the wrong order of the stat information, and the shell > prompt. Could you, please, set tramp-verbose to 10, and rerun your test > (in a new session, preferred if you start "emacs -Q")? Then show the > resulting *debug tramp/...* buffer. here is the *Messages* buffer : ---------------------------------------------------------------------------------------------------------------------------------------------- Loading tramp...done Tramp: Opening connection for zcai@172.16.94.130 using ssh... Tramp: Waiting 60s for local shell to come up... Tramp: Sending command `ssh 172.16.94.130 -l zcai -q -e none && exit || exit' Tramp: Waiting for prompts from remote shell Tramp: Sending password Tramp: Found remote shell prompt on `172.16.94.130' Wrote /var/folders/WC/WC6D0XcHGkGKQu4JkwOX-k+++TI/-Tmp-/tramp. 5630014f.py Loading /Users/zcai/.emacs.d/my-python.el (source)... Pymacs loading ropemacs...done Loading /Users/zcai/.emacs.d/py-mode-ext.el (source)...done Loading /Users/zcai/.emacs.d/pyp.el (source)...done Pymacs loading pycomplete...done Loading /Users/zcai/.emacs.d/my-python.el (source)...done Using the CPython shell Loading vc-hg...done pabbrev scavenging... File error: `\stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i. 0 -1)' /home/zcai/bisquik-stable/TG/bisquik/QS/qs_service.py' does not return a valid Lisp expression: `tramp_exit_status 0 ///25d74bf62e0017975810a0a35b0367fc (("`/home/zcai/bisquik-stable/TG/bisquik/QS/qs_service.py'") 1 501 1000 1251460512.0 1251459265.0 1251459265.0 13206.0 "-rw-r--r--" t 3646.0 -1) ' File error: `\stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i. 0 -1)' /home/zcai/bisquik-stable/TG/bisquik/QS/qs_service.py' does not return a valid Lisp expression: `' pabbrev scavenging... File error: `\stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i. 0 -1)' /home/zcai/bisquik-stable/TG/bisquik/QS/qs_service.py' does not return a valid Lisp expression: `' pabbrev scavenging... pabbrev scavenging (118 words qs_service.py buffer)... pabbrev scavenging (168 words qs_service.py buffer)... pabbrev scavenging (216 words qs_service.py buffer)... pabbrev scavenging (237 words qs_service.py buffer)... pabbrev scavenging (257 words qs_service.py buffer)... pabbrev scavenging (276 words qs_service.py buffer)... pabbrev scavenging (286 words qs_service.py buffer)... pabbrev scavenging (298 words qs_service.py buffer)... pabbrev scavenging (304 words qs_service.py buffer)... pabbrev scavenging (316 words qs_service.py buffer)... pabbrev scavenging (320 words qs_service.py buffer)... pabbrev scavenging (332 words qs_service.py buffer)... pabbrev scavenging (336 words qs_service.py buffer)... pabbrev scavenging (343 words qs_service.py buffer)... pabbrev scavenging (350 words qs_service.py buffer)... pabbrev scavenging (363 words qs_service.py buffer)... pabbrev scavenging (369 words qs_service.py buffer)... pabbrev scavenging (377 words qs_service.py buffer)... pabbrev scavenging (387 words qs_service.py buffer)... pabbrev scavenging (390 words qs_service.py buffer)... [2 times] pabbrev scavenging...done Quit pabbrev scavenging... pabbrev scavenging (390 words qs_service.py buffer)... [28 times] pabbrev scavenging (392 words qs_service.py buffer)... pabbrev scavenging (397 words qs_service.py buffer)... pabbrev scavenging...done call-interactively: Beginning of buffer pabbrev scavenging... pabbrev scavenging (397 words qs_service.py buffer)... [23 times] pabbrev scavenging...done pabbrev scavenging... pabbrev scavenging (397 words qs_service.py buffer)... [23 times] pabbrev scavenging...done ====================================================================================== here is the last part of *debug tramp/ssh ...* buffer : ---------------------------------------------------------------------------------------------------------------------------------------------- ///2619be965b1edc1845eb1f51f45ced3d 04:19:08 tramp-get-connection-property (7) # process-buffer nil 04:19:08 tramp-set-file-property (8) # /home/zcai/bisquik-stable/TG/ bisquik/QS/qs_service.py file-exists-p t 04:19:08 tramp-get-connection-property (7) # stat \stat 04:19:08 tramp-handle-file-attributes-with-stat (5) # file attributes with stat: /home/zcai/bisquik-stable/TG/bisquik/QS/qs_service.py 04:19:08 tramp-get-connection-property (7) # stat \stat 04:19:08 tramp-get-connection-property (7) # process-name nil 04:19:08 tramp-get-connection-property (7) # last-cmd-time (19095 48428 431384) 04:19:08 tramp-get-connection-property (7) # process-name nil 04:19:08 tramp-get-connection-property (7) # remote-echo nil 04:19:08 tramp-send-command (6) # \stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i.0 -1)' /home/zcai/bisquik-stable/TG/bisquik/QS/ qs_service.py 2>/dev/null; echo tramp_exit_status $? 04:19:08 tramp-get-connection-property (7) # process-name nil 04:19:08 tramp-get-connection-property (7) # chunksize 0 04:19:08 tramp-set-connection-property (7) # last-cmd-time (19095 48428 535474) 04:19:08 tramp-send-string (10) # \stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i.0 -1)' /home/zcai/bisquik-stable/TG/bisquik/QS/ qs_service.py 2>/dev/null; echo tramp_exit_status $? 04:19:08 tramp-get-connection-property (7) # process-buffer nil 04:19:08 tramp-get-connection-property (7) # check-remote-echo nil 04:19:08 tramp-get-connection-property (7) # check-remote-echo nil 04:19:08 tramp-accept-process-output (10) # *tramp/ssh zcai@lenny* run 04:19:08 tramp-accept-process-output (10) # (("`/home/zcai/bisquik-stable/TG/bisquik/QS/qs_service.py'") 1 501 1000 1251458333.0 1251458332.0 1251458332.0 13206.0 "-rw-r--r--" t 3646.0 -1) tramp_exit_status 0 ///2619be965b1edc1845eb1f51f45ced3d 04:19:08 tramp-get-connection-property (7) # check-remote-echo nil 04:19:08 tramp-get-connection-property (7) # check-remote-echo nil 04:19:08 tramp-wait-for-regexp (6) # (("`/home/zcai/bisquik-stable/TG/bisquik/QS/qs_service.py'") 1 501 1000 1251458333.0 1251458332.0 1251458332.0 13206.0 "-rw-r--r--" t 3646.0 -1) tramp_exit_status 0 ///2619be965b1edc1845eb1f51f45ced3d 04:19:08 tramp-get-connection-property (7) # process-buffer nil 04:19:08 tramp-get-connection-property (7) # process-buffer nil 04:19:08 tramp-get-connection-property (7) # gid-integer 1000 04:19:08 tramp-set-file-property (8) # /home/zcai/bisquik-stable/TG/ bisquik/QS/qs_service.py file-attributes-integer (nil 1 501 1000 (19095 48413) (19095 48412) (19095 48412) 13206 -rw-r--r-- nil (0 . 3646) (-1 . 0)) 04:19:08 tramp-flush-file-property (8) # /home/zcai/bisquik-stable/TG/ bisquik/QS/qs_service.py 04:19:08 tramp-get-file-property (8) # /home/zcai/bisquik-stable/TG/ bisquik/QS/qs_service.py file-attributes-integer undef 04:19:08 tramp-get-file-property (8) # /home/zcai/bisquik-stable/TG/ bisquik/QS/qs_service.py file-exists-p undef 04:19:08 tramp-get-connection-property (7) # file-exists test -e 04:19:08 tramp-get-connection-property (7) # process-name nil 04:19:08 tramp-get-connection-property (7) # last-cmd-time (19095 48428 535474) 04:19:08 tramp-get-connection-property (7) # process-name nil 04:19:08 tramp-get-connection-property (7) # remote-echo nil 04:19:08 tramp-send-command (6) # test -e /home/zcai/bisquik-stable/TG/ bisquik/QS/qs_service.py 2>/dev/null; echo tramp_exit_status $? 04:19:08 tramp-get-connection-property (7) # process-name nil 04:19:08 tramp-get-connection-property (7) # chunksize 0 04:19:08 tramp-set-connection-property (7) # last-cmd-time (19095 48428 644650) 04:19:08 tramp-send-string (10) # test -e /home/zcai/bisquik-stable/TG/ bisquik/QS/qs_service.py 2>/dev/null; echo tramp_exit_status $? 04:19:08 tramp-get-connection-property (7) # process-buffer nil 04:19:08 tramp-get-connection-property (7) # check-remote-echo nil 04:19:08 tramp-get-connection-property (7) # check-remote-echo nil 04:19:08 tramp-accept-process-output (10) # *tramp/ssh zcai@lenny* run 04:19:08 tramp-accept-process-output (10) # tramp_exit_status 0 ///2619be965b1edc1845eb1f51f45ced3d 04:19:08 tramp-get-connection-property (7) # check-remote-echo nil 04:19:08 tramp-get-connection-property (7) # check-remote-echo nil 04:19:08 tramp-wait-for-regexp (6) # tramp_exit_status 0 ///2619be965b1edc1845eb1f51f45ced3d 04:19:08 tramp-get-connection-property (7) # process-buffer nil 04:19:08 tramp-set-file-property (8) # /home/zcai/bisquik-stable/TG/ bisquik/QS/qs_service.py file-exists-p t 04:19:08 tramp-get-connection-property (7) # stat \stat 04:19:08 tramp-handle-file-attributes-with-stat (5) # file attributes with stat: /home/zcai/bisquik-stable/TG/bisquik/QS/qs_service.py 04:19:08 tramp-get-connection-property (7) # stat \stat 04:19:08 tramp-get-connection-property (7) # process-name nil 04:19:08 tramp-get-connection-property (7) # last-cmd-time (19095 48428 644650) 04:19:08 tramp-get-connection-property (7) # process-name nil 04:19:08 tramp-get-connection-property (7) # remote-echo nil 04:19:08 tramp-send-command (6) # \stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i.0 -1)' /home/zcai/bisquik-stable/TG/bisquik/QS/ qs_service.py 2>/dev/null; echo tramp_exit_status $? 04:19:08 tramp-get-connection-property (7) # process-name nil 04:19:08 tramp-get-connection-property (7) # chunksize 0 04:19:08 tramp-set-connection-property (7) # last-cmd-time (19095 48428 751679) 04:19:08 tramp-send-string (10) # \stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i.0 -1)' /home/zcai/bisquik-stable/TG/bisquik/QS/ qs_service.py 2>/dev/null; echo tramp_exit_status $? 04:19:08 tramp-get-connection-property (7) # process-buffer nil 04:19:08 tramp-get-connection-property (7) # check-remote-echo nil 04:19:08 tramp-get-connection-property (7) # check-remote-echo nil 04:19:08 tramp-accept-process-output (10) # *tramp/ssh zcai@lenny* run 04:19:08 tramp-accept-process-output (10) # (("`/home/zcai/bisquik-stable/TG/bisquik/QS/qs_service.py'") 1 501 1000 1251458333.0 1251458332.0 1251458332.0 13206.0 "-rw-r--r--" t 3646.0 -1) tramp_exit_status 0 ///2619be965b1edc1845eb1f51f45ced3d 04:19:08 tramp-get-connection-property (7) # check-remote-echo nil 04:19:08 tramp-get-connection-property (7) # check-remote-echo nil 04:19:08 tramp-wait-for-regexp (6) # (("`/home/zcai/bisquik-stable/TG/bisquik/QS/qs_service.py'") 1 501 1000 1251458333.0 1251458332.0 1251458332.0 13206.0 "-rw-r--r--" t 3646.0 -1) tramp_exit_status 0 ///2619be965b1edc1845eb1f51f45ced3d 04:19:08 tramp-get-connection-property (7) # process-buffer nil 04:19:08 tramp-get-connection-property (7) # process-buffer nil 04:19:08 tramp-get-connection-property (7) # gid-integer 1000 04:19:08 tramp-set-file-property (8) # /home/zcai/bisquik-stable/TG/ bisquik/QS/qs_service.py file-attributes-integer (nil 1 501 1000 (19095 48413) (19095 48412) (19095 48412) 13206 -rw-r--r-- nil (0 . 3646) (-1 . 0)) ====================================================================================== It seems like it has something to do with the pabbrev-mode (2.0) i'm using. The error happens when the pabbrev-mode tries to scavenge words in the file. Sometimes the error keeps coming, but in sometimes it fixes itself. If you look at the *Messages* buffer, it fails at first few tries, then everything was OK. It could also go the other way around, Ok at first, then error. What cause the error? I have no clue yet. regards Ritchie