1.7.7: sh.exe sometimes hangs with 100% cpu usage

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Thu Nov 4 19:43:00 GMT 2010

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.


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

More information about the Cygwin mailing list