From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#8265: 24.0.50; windows emacs hanging calling svn Date: Thu, 17 Mar 2011 02:34:27 -0400 Message-ID: References: <83lj0epvll.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1300343833 30858 80.91.229.12 (17 Mar 2011 06:37:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Mar 2011 06:37:13 +0000 (UTC) Cc: 8265@debbugs.gnu.org To: sds@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 17 07:37:09 2011 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.69) (envelope-from ) id 1Q06pY-0006qS-HD for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Mar 2011 07:37:08 +0100 Original-Received: from localhost ([127.0.0.1]:51394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q06pY-0003Du-3Q for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Mar 2011 02:37:08 -0400 Original-Received: from [140.186.70.92] (port=36372 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q06pR-0003Do-OR for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2011 02:37:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q06pQ-0004Kf-Iv for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2011 02:37:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q06pQ-0004KW-DX for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2011 02:37:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q06nW-0007TG-Ft; Thu, 17 Mar 2011 02:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Mar 2011 06:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8265 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8265-submit@debbugs.gnu.org id=B8265.130034367728689 (code B ref 8265); Thu, 17 Mar 2011 06:35:02 +0000 Original-Received: (at 8265) by debbugs.gnu.org; 17 Mar 2011 06:34:37 +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 1Q06n6-0007Sf-Og for submit@debbugs.gnu.org; Thu, 17 Mar 2011 02:34:37 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q06n4-0007ST-QQ for 8265@debbugs.gnu.org; Thu, 17 Mar 2011 02:34:35 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Q06mx-0004J1-5C; Thu, 17 Mar 2011 02:34:28 -0400 In-reply-to: (message from Sam Steingold on Wed, 16 Mar 2011 19:00:53 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 17 Mar 2011 02:35:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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:45090 Archived-At: > From: Sam Steingold > Cc: 8265@debbugs.gnu.org > Mail-Copies-To: never > Reply-To: sds@gnu.org > Date: Wed, 16 Mar 2011 19:00:53 -0400 (Aren't Mail-Copies-To and Reply-To above in contradiction?) > > * Eli Zaretskii [2011-03-17 00:08:06 +0200]: > > > >> Debugger entered--Lisp error: (error "Running svn status -v foo.cpp...FAILED (status 1)") > > > > I don't use svn; what kind of text is that command supposed to output? > > E.g., what does it show if you run it from the command prompt under > > the same conditions? > > for a modified file: > -------------------------- > M 11693 11346 sds foo/bar/baz.h > -------------------------- > for an unmodified file: > -------------------------- > 11693 9843 sds foo/bar/baz.h > -------------------------- If it's a single line, it could be that Emacs doesn't see it due to the fact that (I think) Windows pipes are buffered. Or maybe it's a decoding issue. Can you trace through vc-do-command and see if Emacs is invoking svn asynchronously or synchronously, and perhaps also where it hangs? > > Also, can you run this under Cygwin's strace and show the system call > > where it (whatever "it" means) hangs? > > when I try to attach strace or gdb to the svn process, they hang too. That's not what I had in mind. I would create an svn shell script, with the following contents: #!/bin/sh strace -o svn.trace /cygdrive/path/to/svn/svn.exe $* then make it appear in PATH before svn.exe, and then repeat whatever you do in Emacs that hangs. Hopefully, svn.trace will then show in which syscall svn hangs, if it does. the above is 100% untested, and also I have no idea about your setup wrt shell and Cygwin, so you will probably need to tailor it. But I hope you get the idea. > please let me know if I could do anything else, but I would appreciate > _detailed_ instructions on any operation with visual studio. Sorry, I don't use VS except occasionally, and only if I absolutely have to. I hope the above script will resolve the problem nicely.