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:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=dI5YEazhMAYIwqxqePiNQxTeLai4TMDFAhCSK5CPdaJ IQDEuFpqwjP3drEfZ7P8X/vhpFz+Sv9DbJjAu8JnKTH5yS/HDQuEEHCR4GblS5rh VI9mf/tWemfGYzPyPCsUIx2eCJJtfNazt3D2ennGc0LwMNHjXhd5qe3uJCg6SMP4 = 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:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding; s=default; bh=5ciiPIBjms68SnRh3YD2xIcHAfg=; b=Gs3mBVYIMWBjBHXkH 5NgpW49Y5//GTN/fKU04h3h+3QiwZuON5OYt2s6fxJXtALqzy6XCATCBCqbNNcxt tbbt442MDV4OTFHzG4r4AEWm3+jdIf8xaLMCrzGOGzW9YnqO/P67oGG1Ni0WvNEU mGx8cG4WycmITvrV1CAUwdxuDE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:sender:to:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language:x-gm-message-state; bh=90BytLvLqwMUGABsjzUXhTxXvzppnljdYrzP+7ZsmJY=; b=acbSvPegI8EU1+zgzNf/ZBV9smwwdwkg4qQJ5EhY2lL5yyXO3DsTdWGzhhecydDAKE W5tOh3+iVyOK42KwpcDoK/r41SlPTyT5K18FRXIZVdHa9cURskj4GfmiN9ttISabq1WF SiIOxLFrOhVOw8zZQaUu+BBzYEF0JvhKnViK2gCBe5O4qa82LujeXl2GEAgLTxzVYOtF KIOwzWMhrEbJ1oIEyLdhB7hngodeNiCwEusrgZdu9Fr7xXBAFXaKEDubG1c+i7RkAZU6 Te/niJ+TNcaJ9gfVRZRc6NVyByvAMS3XaJpYkiX0iwTjW3yStUFtAIvuaLVlZ/fS4PtM yAXw== X-Received: by 10.68.255.196 with SMTP id as4mr10493326pbd.54.1372412989888; Fri, 28 Jun 2013 02:49:49 -0700 (PDT) From: To: References: <51CD4177 DOT 1040708 AT gmail DOT com> <20130628084157 DOT GP2378 AT calimero DOT vinschen DOT de> In-Reply-To: <20130628084157.GP2378@calimero.vinschen.de> Subject: RE: Failure with fork() Date: Fri, 28 Jun 2013 02:49:42 -0700 Message-ID: <00c401ce73e4$d12b80f0$738282d0$@malth.us> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Gm-Message-State: ALoCoQmTFMobj5qAAsFHrII2ioroW6MLZHfMIK0YW7hQYWIRlVq4xSqXnKbBFRYHRN8+h+GwyMrh Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r5S9o45D008296 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. -gmt -- 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