X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=scv8DF80Vh2tgOEq8mTu8CM1AtYa/FEP9j5LNOR2OXISx6qvvbila
	8L76+8hbjGlZ9VSUnjBdKl3/pJS/S1eiwhrJnPWL2vBBh80aJgPjWHSJ01O1b11l
	F1LkUbM2cukmxxmQpAs5SdK91PqopQ6m64tNSQLTjPQBxWXLCVKb4E=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=N7jhOpzqunkyR1zR2wQ8k3vk2dw=; b=lxFr1B1YM8TDdzatui1cC7APUuJp
	+f2Pu+uiVYqsgPfM4KT4nUNkJ6kQiaE6y38pdS1iOrtUF9s0NbkoDADeEtndb/Q5
	WoeB+f8NafAvNi1Z3Wul1u1dn8GxqsZrD7oAmYvRn59ne1c0+DO5M+2d9GKphuWK
	bXhV+AUSjELI1+c=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1
Date: Fri, 28 Jun 2013 12:16:30 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Failure with fork()
Message-ID: <20130628101630.GS2378@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <alpine.DEB.2.02.1306272257220.27492@enira.zlyna.ubzr> <51CD4177.1040708@gmail.com> <20130628084157.GP2378@calimero.vinschen.de> <00c401ce73e4$d12b80f0$738282d0$@malth.us>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <00c401ce73e4$d12b80f0$738282d0$@malth.us>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Jun 28 02:49, gmt@malth.us wrote:
> on Fri, 28 Jun 2013, at 01:41, Corinna Vinschen thusly quipped:
> > I think it's a misconception that this very bug is the culprit of
> > Cygwin not running under wine.  Here's why:
> > 
> > What this bug did was very simple.  On each fork, the child process
> > committed 4K more stack than its parent.  The default stacksize for the
> > main thread of a process is 2 Megs.  It's a long way for a process to
> > take that much space on the stack.  So this problem should be visible
> > only in rare circumstances wher the main thread of a parent process
> > is already filled and then the child crashes because the 2 Megs are
> > overrun.  As I mentioned in my first post to this thread, the testcase
> > took almost 500 forks until the problem occured, 485 to be exact.
> > 485*4K = 1.9 Megs.
> > 
> > If anything keeps Cygwin from running under Wine, it's probably some
> > different problem, which still need investigating.
> 
> At a glance, http://bugs.winehq.org/show_bug.cgi?id=24018#c9 describes
> a seemingly plausible etiology involving the dcrt0.cc code and
> differing stack-allocation semantics between wine and windows.

That bug in Cygwin is now gone, so we're back to the stack allocation
strategy in Wine.  Or, it has nothing to do anymore with this issue
and it's something completely different.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
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

