This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.7.7: sh.exe sometimes hangs with 100% cpu usage
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 4 Nov 2010 15:43:15 -0400
- Subject: Re: 1.7.7: sh.exe sometimes hangs with 100% cpu usage
- References: <1906373454.1857461288894772454.JavaMail.root@spooler8-g27.priv.proxad.net> <48848513.1857571288894785382.JavaMail.root@spooler8-g27.priv.proxad.net>
- Reply-to: cygwin at cygwin dot com
On Thu, Nov 04, 2010 at 07:19:45PM +0100, hules@free.fr wrote:
>Some more info about that infinite loop in cygwin1.dll .
>
>This is indeed inside the cygheap_fixup_in_child function of cygwin1.dll .
>
>Inside this function, there is a loop that is:
>
>for (_cmalloc_entry *rvc = cygheap->chain; rvc; rvc = rvc->prev) {
> ...
>}
>
>In the case of my sh.exe process , this loop never ends because it is stuck with an "rvc" pointer that is such that "rvc->prev == rvc"
>
>I'm not sure what to look at, is there a chance that this is an "easy" bug to fix ?
Not unless you can provide a reproducible test case. If this is memory
corruption that's rarely an easy bug to track down.
It isn't clear why you can't use gdb to debug this, btw.
cgf
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple