X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 21 Sep 2009 10:48:27 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [1.7] gvim "Cannot fork" error
Message-ID: <20090921144827.GA15626@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <h8cl9e$pd1$1@ger.gmane.org>  <a9a39a210909120714n126aed2dpb7beead460a870b0@mail.gmail.com>  <20090921022457.GA32232@ednor.casa.cgf.cx>  <4AB73096.9030407@users.sourceforge.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4AB73096.9030407@users.sourceforge.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 Mon, Sep 21, 2009 at 02:51:50AM -0500, Yaakov (Cygwin/X) wrote:
>On 20/09/2009 21:24, Christopher Faylor wrote:
>>This should be fixed in the next Cygwin snapshot and, subsequently, in
>>the next release.
>>
>>If you could test this and confirm that the snapshot fixes the problem
>>I'll roll a new release.  It turns out to be a pretty serious bug.
>
>For me this fixes the problems reported here and those we discussed
>earlier but were unable to resolve.  I agree on the seriousness of
>this, but what exactly helped you nail it down?

gdb said that the failure was coming from libxcb-1.dll so I rebuilt
libxcb-1.dll with debugging information and with a version of
libcygwin.a containing debugging symbols.  Then I could see that it was
dying in cygwin in a place that has seem a fair amount of churn
recently.  I could see that it had nothing to do with libxcb-1.dll.

The fix for the problem wasn't immediately obvious and it is very hacky.
I hope it can be removed in a couple of years when everything that was
built using a buggy version of libcygwin.a is gone.  The problem came
from one of the X libraries that, if it had been relinked recently,
would not have manifested a problem.  I'm embarrassed to admit that I
didn't record which library had the problem, though.  Tracking it down
in gdb proved to be sort of time-consuming and now the window with the
information is gone.

I can say that any DLL built with cygwin-1.7.0-51 - cygwin-1.7.0-56
is probably suspect.  That's 2009-07-13 - 2009-08-13 .

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

