This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]