* bug#8265: 24.0.50; windows emacs hanging calling svn
@ 2011-03-16 20:15 Sam Steingold
[not found] ` <handler.8265.B.13003065675707.ack@debbugs.gnu.org>
2011-03-16 22:08 ` bug#8265: 24.0.50; windows emacs hanging calling svn Eli Zaretskii
0 siblings, 2 replies; 14+ messages in thread
From: Sam Steingold @ 2011-03-16 20:15 UTC (permalink / raw
To: 8265
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.2.3790)
of 2011-03-16 on SDS
Windowing system distributor `Microsoft Corp.', version 5.2.3790
configured using `configure --with-gcc (3.4) --cflags -IC:/gnu/gnuwin32/include --ldflags -LC:/gnu/gnuwin32/lib'
When I modify a file which is under svn, emacs _often_ (but not always!)
hangs calling svn to update its vc status and hangs even though svn
seems to work just fine.
I either have to kill svn using the windows task manager (in which case
I get this error:
Debugger entered--Lisp error: (error "Running svn status -v foo.cpp...FAILED (status 1)")
signal(error ("Running svn status -v foo.cpp...FAILED (status 1)"))
error("Running %s...FAILED (%s)" "svn status -v foo.cpp" "status 1")
vc-do-command(t 0 "svn" "d:/dir/foo.cpp" "status" "-v")
apply(vc-do-command t 0 "svn" "d:/dir/foo.cpp" ("status" "-v"))
vc-svn-command(t 0 "d:/dir/foo.cpp" "status" "-v")
vc-svn-state("d:/dir/foo.cpp" local)
vc-svn-state-heuristic("d:/dir/foo.cpp")
apply(vc-svn-state-heuristic "d:/dir/foo.cpp")
vc-call-backend(SVN state-heuristic "d:/dir/foo.cpp")
vc-state-refresh("d:/dir/foo.cpp" SVN)
vc-after-save()
basic-save-buffer()
save-buffer(1)
call-interactively(save-buffer nil nil)
)
Or I have to hit C-g in which case I have to wait for a long time, and
then the mouse cursor jumps to a different emacs frame(!) and a message
appears "waiting for process to die...(type C-g again to kill it instantly)"
and then I hit C-g again (several times!) and wait some more and then
finally emacs starts responding and a windows "End Program" dialog box
appears asking me whether I indeed want to kill "svn.exe".
Then I need to do C-/ (undo) in the buffer into which Emacs moved my
cursor because a bunch of "g" characters were inserted there.
Basically, it is very frustrating: half my buffer saves are accompanies
by this game of killing svn.exe.
Note that this is native windows mingw emacs build + cygwin svn.exe.
I do have a native svn.exe which exhibits the exact same behavior, but,
additionally, cannot talk to cygwin ssh-agent so it requires me to enter
my password for every operation.
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X
http://mideasttruth.com http://memri.org http://pmw.org.il http://iris.org.il
http://dhimmi.com http://camera.org http://jihadwatch.org
Hard work has a future payoff. Laziness pays off NOW.
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: Acknowledgement (24.0.50; windows emacs hanging calling svn)
[not found] ` <handler.8265.B.13003065675707.ack@debbugs.gnu.org>
@ 2011-03-16 21:16 ` Sam Steingold
0 siblings, 0 replies; 14+ messages in thread
From: Sam Steingold @ 2011-03-16 21:16 UTC (permalink / raw
To: 8265
additionally:
if I start compilation before clicking "ok" in the "end program" window,
the compilation hangle; I have to kill it and start anew after clicking
"ok" to "end program".
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X
http://www.PetitionOnline.com/tap12009/ http://thereligionofpeace.com
http://ffii.org http://openvotingconsortium.org http://mideasttruth.com
Daddy, what does "format disk c: complete" mean?
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: 24.0.50; windows emacs hanging calling svn
2011-03-16 20:15 bug#8265: 24.0.50; windows emacs hanging calling svn Sam Steingold
[not found] ` <handler.8265.B.13003065675707.ack@debbugs.gnu.org>
@ 2011-03-16 22:08 ` Eli Zaretskii
2011-03-16 23:00 ` Sam Steingold
1 sibling, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2011-03-16 22:08 UTC (permalink / raw
To: sds; +Cc: 8265
> From: Sam Steingold <sds@gnu.org>
> Date: Wed, 16 Mar 2011 16:15:11 -0400
> Cc:
>
> When I modify a file which is under svn, emacs _often_ (but not always!)
> hangs calling svn to update its vc status and hangs even though svn
> seems to work just fine.
>
> I either have to kill svn using the windows task manager (in which case
> I get this error:
>
> 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?
Also, can you run this under Cygwin's strace and show the system call
where it (whatever "it" means) hangs?
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: 24.0.50; windows emacs hanging calling svn
2011-03-16 22:08 ` bug#8265: 24.0.50; windows emacs hanging calling svn Eli Zaretskii
@ 2011-03-16 23:00 ` Sam Steingold
2011-03-17 2:16 ` Stefan Monnier
2011-03-17 6:34 ` Eli Zaretskii
0 siblings, 2 replies; 14+ messages in thread
From: Sam Steingold @ 2011-03-16 23:00 UTC (permalink / raw
To: Eli Zaretskii; +Cc: 8265
> * Eli Zaretskii <ryvm@tah.bet> [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
--------------------------
> 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.
when I attach with visual studio, nothing happens (I don't know how to
get the information you require: stack is not displayed &c).
when I do "break all", I get a message "the process appears to be
deadlocked (or is not running any user-mode code). all threads have been
stopped".
the call stack then is:
> ntdll.dll!7d61c846()
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
ntdll.dll!7d628630()
ntdll.dll!7d62852e()
ntdll.dll!7d625142()
ntdll.dll!7d61f60d()
kernel32.dll!7d4dfb75()
AcLua.dll!715634e3()
AcLua.dll!7156356b()
AcLua.dll!71568720()
AcLua.dll!7156e8b1()
AcLua.dll!7156ee8d()
shimeng.dll!71af64d2()
shimeng.dll!71af6d49()
ntdll.dll!7d64a4ce()
psapi.dll!76b73695()
psapi.dll!76b73695()
cygwin1.dll!610adbe5()
kernel32.dll!7d503fe0()
kernel32.dll!7d503f9a()
cygwin1.dll!6109cea3()
cygwin1.dll!61005380()
cygwin1.dll!6100243f()
cygwin1.dll!610223e3()
cygwin1.dll!610e9b51()
cygwin1.dll!610e9b51()
cygwin1.dll!6111d0b2()
cygwin1.dll!6111e2dc()
cygwin1.dll!6111e360()
cygwin1.dll!6113f7e3()
cygwin1.dll!610054a6()
cygwin1.dll!6111c284()
cygwin1.dll!610050cb()
cygwin1.dll!61007050()
cygwin1.dll!610d0513()
cygwin1.dll!61004cb6()
cygwin1.dll!61004d5b()
ntdll.dll!7d6262a8()
ntdll.dll!7d62630d()
ntdll.dll!7d6264ef()
ntdll.dll!7d6264ff()
when I do "detach all", I get an error "cannot detach".
when I do "terminate all", emacs behaves as is svn terminated normally
and successfully.
please let me know if I could do anything else, but I would appreciate
_detailed_ instructions on any operation with visual studio.
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X
http://openvotingconsortium.org http://www.memritv.org http://dhimmi.com
http://pmw.org.il http://truepeace.org http://mideasttruth.com
If you want it done right, you have to do it yourself
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: 24.0.50; windows emacs hanging calling svn
2011-03-16 23:00 ` Sam Steingold
@ 2011-03-17 2:16 ` Stefan Monnier
2011-03-17 23:23 ` Christoph Scholtes
2011-03-17 6:34 ` Eli Zaretskii
1 sibling, 1 reply; 14+ messages in thread
From: Stefan Monnier @ 2011-03-17 2:16 UTC (permalink / raw
To: Eli Zaretskii; +Cc: 8265
> when I try to attach strace or gdb to the svn process, they hang too.
Sounds like the problem might on the svn executable side (maybe
triggered by the way Emacs runs it).
Stefan
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: 24.0.50; windows emacs hanging calling svn
2011-03-16 23:00 ` Sam Steingold
2011-03-17 2:16 ` Stefan Monnier
@ 2011-03-17 6:34 ` Eli Zaretskii
2011-03-17 17:57 ` Sam Steingold
1 sibling, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2011-03-17 6:34 UTC (permalink / raw
To: sds; +Cc: 8265
> From: Sam Steingold <sds@gnu.org>
> 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 <ryvm@tah.bet> [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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: 24.0.50; windows emacs hanging calling svn
2011-03-17 6:34 ` Eli Zaretskii
@ 2011-03-17 17:57 ` Sam Steingold
2011-03-17 19:27 ` Eli Zaretskii
0 siblings, 1 reply; 14+ messages in thread
From: Sam Steingold @ 2011-03-17 17:57 UTC (permalink / raw
To: Eli Zaretskii; +Cc: 8265
> * Eli Zaretskii <ryvm@tah.bet> [2011-03-17 02:34:27 -0400]:
>
>> Mail-Copies-To: never
>> Reply-To: sds@gnu.org
>
> (Aren't Mail-Copies-To and Reply-To above in contradiction?)
I want you to reply to myself.
However, if you choose to reply to a list, please do not CC me.
However Mail-Copies-To seems to be ignored, so, I guess, I will remove it.
>> > * Eli Zaretskii <ryvm@tah.bet> [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?
the message
Running svn status -v foo.cpp in foreground...
indicates synchronous execution.
it hangs in
(apply 'process-file command nil t nil squeezed)
and there in
(apply 'call-process)
>> > 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 $*
emacs on windows cannot run shell scripts.
however, I am now using a batch file for that.
alas(?), I do not observe the bug when svn.exe is running under strace.
I will keep trying ...
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X
http://truepeace.org http://pmw.org.il http://dhimmi.com
http://memri.org http://palestinefacts.org http://ffii.org http://camera.org
Time would have been the best Teacher, if it did not kill all its students.
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: 24.0.50; windows emacs hanging calling svn
2011-03-17 17:57 ` Sam Steingold
@ 2011-03-17 19:27 ` Eli Zaretskii
2011-03-17 20:46 ` Glenn Morris
0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2011-03-17 19:27 UTC (permalink / raw
To: 8265
> From: Sam Steingold <sds@gnu.org>
> Cc: 8265@debbugs.gnu.org
> Date: Thu, 17 Mar 2011 13:57:21 -0400
>
> it hangs in
> (apply 'process-file command nil t nil squeezed)
> and there in
> (apply 'call-process)
So svn does not exit, is that right? That's weird, no? One reason
not to exit would be that it asked a question, but does svn do that?
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: 24.0.50; windows emacs hanging calling svn
2011-03-17 19:27 ` Eli Zaretskii
@ 2011-03-17 20:46 ` Glenn Morris
0 siblings, 0 replies; 14+ messages in thread
From: Glenn Morris @ 2011-03-17 20:46 UTC (permalink / raw
To: Eli Zaretskii; +Cc: 8265
Eli Zaretskii wrote:
> So svn does not exit, is that right? That's weird, no? One reason
> not to exit would be that it asked a question, but does svn do that?
Some svn certainly do, in some cases. That's why --non-interactive was
added to vc-svn.el. Maybe it needs to be in more places.
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: 24.0.50; windows emacs hanging calling svn
2011-03-17 2:16 ` Stefan Monnier
@ 2011-03-17 23:23 ` Christoph Scholtes
2011-03-18 8:17 ` Eli Zaretskii
0 siblings, 1 reply; 14+ messages in thread
From: Christoph Scholtes @ 2011-03-17 23:23 UTC (permalink / raw
To: Stefan Monnier; +Cc: 8265
On 3/16/2011 8:16 PM, Stefan Monnier wrote:
>> when I try to attach strace or gdb to the svn process, they hang too.
>
> Sounds like the problem might on the svn executable side (maybe
> triggered by the way Emacs runs it).
FWIW, I see the same problem on Windows XP when using the cygwin SVN.
Using the native Windows SVN client from CollabNet everything works fine.
I tested with 23.2 and 24.0.50 (this weeks build) and they behave the
same, so it does not seem to be anything new.
Christoph
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: 24.0.50; windows emacs hanging calling svn
2011-03-17 23:23 ` Christoph Scholtes
@ 2011-03-18 8:17 ` Eli Zaretskii
2013-02-21 6:08 ` Glenn Morris
0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2011-03-18 8:17 UTC (permalink / raw
To: Christoph Scholtes; +Cc: 8265
> Date: Thu, 17 Mar 2011 17:23:17 -0600
> From: Christoph Scholtes <cschol2112@googlemail.com>
> CC: Eli Zaretskii <eliz@gnu.org>, 8265@debbugs.gnu.org
>
> On 3/16/2011 8:16 PM, Stefan Monnier wrote:
> >> when I try to attach strace or gdb to the svn process, they hang too.
> >
> > Sounds like the problem might on the svn executable side (maybe
> > triggered by the way Emacs runs it).
>
> FWIW, I see the same problem on Windows XP when using the cygwin SVN.
> Using the native Windows SVN client from CollabNet everything works fine.
>
> I tested with 23.2 and 24.0.50 (this weeks build) and they behave the
> same, so it does not seem to be anything new.
Sam clearly said that the native build of svn has the same problem.
If that's not true, then the problem could be some issue with Emacs
invoking Cygwin programs. Enclosing svn.exe in a batch file could
then be TRT to fix the problem.
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: 24.0.50; windows emacs hanging calling svn
2011-03-18 8:17 ` Eli Zaretskii
@ 2013-02-21 6:08 ` Glenn Morris
2013-02-21 18:43 ` Sam Steingold
0 siblings, 1 reply; 14+ messages in thread
From: Glenn Morris @ 2013-02-21 6:08 UTC (permalink / raw
To: Sam Steingold; +Cc: 8265
I wonder if this is fixed now, given that --non-interactive gets passed
to all svn commands. If not, it's probably something specific to MS
Windows.
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: 24.0.50; windows emacs hanging calling svn
2013-02-21 6:08 ` Glenn Morris
@ 2013-02-21 18:43 ` Sam Steingold
2013-02-21 19:04 ` Glenn Morris
0 siblings, 1 reply; 14+ messages in thread
From: Sam Steingold @ 2013-02-21 18:43 UTC (permalink / raw
To: Glenn Morris; +Cc: 8265
> * Glenn Morris <etz@tah.bet> [2013-02-21 01:08:27 -0500]:
>
> I wonder if this is fixed now, given that --non-interactive gets
> passed to all svn commands. If not, it's probably something specific
> to MS Windows.
I have no idea - I have not used Windows for 1.5 years.
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://mideasttruth.com http://jihadwatch.org
http://iris.org.il http://pmw.org.il http://camera.org
There are two ways to win an argument with a woman. Neither works.
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#8265: 24.0.50; windows emacs hanging calling svn
2013-02-21 18:43 ` Sam Steingold
@ 2013-02-21 19:04 ` Glenn Morris
0 siblings, 0 replies; 14+ messages in thread
From: Glenn Morris @ 2013-02-21 19:04 UTC (permalink / raw
To: 8265-done
Sam Steingold wrote:
>> * Glenn Morris <etz@tah.bet> [2013-02-21 01:08:27 -0500]:
>>
>> I wonder if this is fixed now, given that --non-interactive gets
>> passed to all svn commands. If not, it's probably something specific
>> to MS Windows.
>
> I have no idea - I have not used Windows for 1.5 years.
I'll assume it's fixed then. :)
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2013-02-21 19:04 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-16 20:15 bug#8265: 24.0.50; windows emacs hanging calling svn Sam Steingold
[not found] ` <handler.8265.B.13003065675707.ack@debbugs.gnu.org>
2011-03-16 21:16 ` bug#8265: Acknowledgement (24.0.50; windows emacs hanging calling svn) Sam Steingold
2011-03-16 22:08 ` bug#8265: 24.0.50; windows emacs hanging calling svn Eli Zaretskii
2011-03-16 23:00 ` Sam Steingold
2011-03-17 2:16 ` Stefan Monnier
2011-03-17 23:23 ` Christoph Scholtes
2011-03-18 8:17 ` Eli Zaretskii
2013-02-21 6:08 ` Glenn Morris
2013-02-21 18:43 ` Sam Steingold
2013-02-21 19:04 ` Glenn Morris
2011-03-17 6:34 ` Eli Zaretskii
2011-03-17 17:57 ` Sam Steingold
2011-03-17 19:27 ` Eli Zaretskii
2011-03-17 20:46 ` Glenn Morris
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.