This is the mail archive of the
mailing list for the Cygwin project.
Re: Failure with fork()
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 28 Jun 2013 12:16:30 +0200
- Subject: Re: Failure with fork()
- References: <alpine dot DEB dot 2 dot 02 dot 1306272257220 dot 27492 at enira dot zlyna dot ubzr> <51CD4177 dot 1040708 at gmail dot com> <20130628084157 dot GP2378 at calimero dot vinschen dot de> <00c401ce73e4$d12b80f0$738282d0$ at malth dot us>
- Reply-to: cygwin at cygwin dot com
On Jun 28 02:49, firstname.lastname@example.org 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 Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple