X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Thu, 4 Nov 2010 15:43:15 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 1.7.7: sh.exe sometimes hangs with 100% cpu usage
Message-ID: <20101104194314.GA13448@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <1906373454.1857461288894772454.JavaMail.root@spooler8-g27.priv.proxad.net> <48848513.1857571288894785382.JavaMail.root@spooler8-g27.priv.proxad.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <48848513.1857571288894785382.JavaMail.root@spooler8-g27.priv.proxad.net>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

