From: Tay Ray Chuan Date: Wed, 15 May 2013 06:19:15 GMT Subject: Re: Problems with Windows, Was: What's cooking in git.git (May 2013, #01; Fri, 3) Message-ID: In-Reply-To: <5192927E.3030203@web.de> On Wed, May 15, 2013 at 3:37 AM, Torsten Bögershausen wrote: > Second, > I was able to do some testing. > The hanging is not 100% reproducable, and I had one hanging in Git 1.8.1 > > Turning the screen saver off in Win XP helps that the machine reacts, > and using process explorer showed that the hanging is happening > in test cases doing "git fetch" (or git pull) from a local repository. > What I can see is one git-fetch.exe together with git-upload-pack.exe I also managed to run into the intermittent hanging of git-fetch when running t5510. What I do is keep running the test till it stalls: while [ $? -eq 0 ]; do date; ./t5510-fetch.sh -i -v; done Almost always the git-fetch output looks like this: remote: Counting objects: 7, done. remote: Compressing objects: 100% (5/5), done. remote: Total 6 (delta 1), reused 0 (delta 0) However my task manager indicates that git-upload-pack or whatever that runs on the remote side is absent, only git-fetch is waiting - 0 I/O, 0 cswitches, nilda. I tried getting a gdb backtrace but I get ??? nonsense, despite having compiled git with `-g -O0`. I also noticed there were a couple of threads. This is my gdb session: $ gdb --pid=7936 GNU gdb (GDB) 7.6.50.20130508-cvs (cygwin-special) ... Attaching to process 7936 [New Thread 7936.0x1c7c] [New Thread 7936.0x6b8] [New Thread 7936.0xd20] [New Thread 7936.0x1cf8] [New Thread 7936.0x1b24] Reading symbols from /cygdrive/f/files/coding/git/git.exe...done. (gdb) info thread Id Target Id Frame * 5 Thread 7936.0x1b24 0x77c5000d in ntdll!DbgBreakPoint () from /cygdrive/c/Windows/SysWOW64/ntdll.dll 4 Thread 7936.0x1cf8 0x77c5f8b1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll 3 Thread 7936.0xd20 0x77c5f91d in ntdll!ZwWriteFile () from /cygdrive/c/Windows/SysWOW64/ntdll.dll 2 Thread 7936.0x6b8 0x77c5f8b1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll 1 Thread 7936.0x1c7c 0x77c5f8b1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll (gdb) bt #0 0x77c5000d in ntdll!DbgBreakPoint () from /cygdrive/c/Windows/SysWOW64/ntdll.dll #1 0x77cdf896 in ntdll!DbgUiRemoteBreakin () from /cygdrive/c/Windows/SysWOW64/ntdll.dll #2 0x775c5cca in ?? () #3 0x00000000 in ?? () (gdb) thread 4 [Switching to thread 4 (Thread 7936.0x1cf8)] #0 0x77c5f8b1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll (gdb) bt #0 0x77c5f8b1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll #1 0x77c5f8b1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll #2 0x7573149d in WaitForSingleObjectEx () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll #3 0x00000148 in ?? () #4 0x00000000 in ?? () (gdb) thread 3 [Switching to thread 3 (Thread 7936.0xd20)] #0 0x77c5f91d in ntdll!ZwWriteFile () from /cygdrive/c/Windows/SysWOW64/ntdll.dll (gdb) bt #0 0x77c5f91d in ntdll!ZwWriteFile () from /cygdrive/c/Windows/SysWOW64/ntdll.dll #1 0x77c5f91d in ntdll!ZwWriteFile () from /cygdrive/c/Windows/SysWOW64/ntdll.dll #2 0x7572dec1 in WriteFile () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll #3 0x0000009c in ?? () #4 0x00000000 in ?? () (gdb) thread 2 [Switching to thread 2 (Thread 7936.0x6b8)] #0 0x77c5f8b1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll (gdb) bt #0 0x77c5f8b1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll #1 0x77c5f8b1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll #2 0x7573149d in WaitForSingleObjectEx () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll #3 0x0000001c in ?? () #4 0x00000000 in ?? () (gdb) thread 1 [Switching to thread 1 (Thread 7936.0x1c7c)] #0 0x77c5f8b1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll (gdb) bt #0 0x77c5f8b1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll #1 0x77c5f8b1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll #2 0x7573149d in WaitForSingleObjectEx () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll #3 0x00000034 in ?? () #4 0x00000000 in ?? () -- Cheers, Ray Chuan -- -- *** Please reply-to-all at all times *** *** (do not pretend to know who is subscribed and who is not) *** *** Please avoid top-posting. *** The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free. You received this message because you are subscribed to the Google Groups "msysGit" group. To post to this group, send email to msysgit@googlegroups.com To unsubscribe from this group, send email to msysgit+unsubscribe@googlegroups.com For more options, and view previous threads, visit this group at http://groups.google.com/group/msysgit?hl=en_US?hl=en --- You received this message because you are subscribed to the Google Groups "msysGit" group. To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.