| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT 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:references | |
| :mime-version:content-type:in-reply-to; q=dns; s=default; b=yJRh | |
| rgSf5ZEbhM3ax2icWmI3f0Pi/pgoBZKS8PRyhxYEu7ot/D11/bXYkMdkZG1fAQw0 | |
| xvbIBe3jlbY5t+6aRZeuFLmvXrWTvOe5uUi4D2IbjsONnCvyp7TFSgtQaxAqzUpY | |
| XofDpkaU2gGHwFcDxxntsv3D8rjfT6lUKzD+zak= | |
| 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:references | |
| :mime-version:content-type:in-reply-to; s=default; bh=ytsAmZkk7n | |
| jgv2AGuZ14Sv5uLaI=; b=X/nkNlZ5q7aKFGDL46m41c80ggkL0xrdOtRfFNbq1m | |
| WGV4YFKVGLtg7ZMyhtvs6IE3vOdj1f0U/WRmqmNvKo8Nyo8j7LKWS/6g3qRTH2dH | |
| QO1JLSeJbWLhlLJGZQbpOo1zDIuXH0S+rnkbw1KKiDCS9XmRF4yG0C3+Od0FPahy | |
| w= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-Spam-SWARE-Status: | No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 |
| Date: | Thu, 27 Jun 2013 13:27:18 +0200 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Failure with fork() |
| Message-ID: | <20130627112718.GC25217@calimero.vinschen.de> |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <CAMCbSMqcCEUhjiSsv8CvP1LUdxEHgyS4jJvLjzkSCACAuQ9e2w AT mail DOT gmail DOT com> <51CC2018 DOT 2010608 AT cs DOT utoronto DOT ca> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <51CC2018.2010608@cs.utoronto.ca> |
| User-Agent: | Mutt/1.5.21 (2010-09-15) |
On Jun 27 07:20, Ryan Johnson wrote:
> On 27/06/2013 5:35 AM, Arjen Markus wrote:
> >Hello,
> >
> >the bug I am reporting here on behalf of Alan Irwin surfaced in the
> >combination wine and Cygwin (Alan summarised it here:
> >http://www.winehq.org/pipermail/wine-devel/2013-June/100328.html). It
> >has to do with the way Cygwin handles forks.
> >
> >The bug can be illustrated with this small program:
> >
> >int main(void) {
> > while(!fork());
> > return 0;
> >}
> >
> >It is meant to enable infinite forking, but on Cygwin it immediately
> >stops. I tried
> >it on both Cygwin (not via wine but simply Windows 7) and Linux:
> >- On Linux the program continues without any problem
> >- On Cygwin it stops immediately with an error message that the child process
> > terminated unexpectedly with some weird return code.
> >
> >Can anyone shed light on this? This bug is a showstopper for the
> >combination wine and Cygwin.
> Out of curiosity, why do you need a fork bomb? Does the script just
> capture the effect of multiple fork calls in quick succession? How
> many forks can you pull off before it croaks, and is that number
> consistent from run to run? I'd be shocked if it really died
> "immediately" -- as in "zero forked children" -- so it would be
> interesting to see if the issue is related to the number of fork
> calls (resource exhaustion of some kind), or just to how quickly
> they run back to back (data race of some kind).
It dies after somewhat below 500 forks and I think I found the reason.
Stay tuned.
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |