X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 13 Sep 2010 15:23:19 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Cygwin instabilities Message-ID: <20100913192318.GB26408@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4C8E3A4B DOT 8030909 AT cygwin DOT com> <20100913173648 DOT 15137e2d0sfh16o0 AT webmail DOT df DOT eu> <20100913163523 DOT GA25859 AT ednor DOT casa DOT cgf DOT cx> <4C8E7CD2 DOT 6020006 AT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C8E7CD2.6020006@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Mon, Sep 13, 2010 at 08:34:42PM +0100, Dave Korn wrote: >On 13/09/2010 17:35, Christopher Faylor wrote: > >> You seem to be approaching this problem as if people will say "Ah! >> Stability issues! Right. Well, ok, here's what you need to know." >> >> If we knew of stability issues they would be fixed. > > Well, I know of one, but haven't had time to fix it yet, so I keep this hack >in my local builds. Can't run "make check -jN" without it, but even then it >sometimes locks up. > > The problem I've run into is that on a heavily loaded system, a pinfo struct >can get truncated into a redirector in between the time a syscall checks the >process_state (using ISSTATE or NOTSTATE) and the time it subsequently >attempts to access a pinfo member which it hoped to guard by that check. > > I have a bad feeling that the only way to totally resolve this is going to >be adding lots of locking or mutexing around pinfo calls, which is almost >bound to have performance implications :-( You've included a patch here but, FYI, I have no idea why. 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