delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/01/09:14:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4D95CF8D.7080904@gmail.com>
Date: Fri, 01 Apr 2011 06:13:49 -0700
From: Daniel Colascione <dan DOT colascione AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Fork issues with long command lines and long $PATH
References: <4D5BB1F1 DOT 1060603 AT smarterphone DOT com> <20110217102703 DOT GA30224 AT calimero DOT vinschen DOT de> <4D7A16B4 DOT 1000802 AT gmail DOT com> <20110311152221 DOT GA4645 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20110311152221.GA4645@ednor.casa.cgf.cx>
X-IsSubscribed: yes
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

On 3/11/2011 7:22 AM, Christopher Faylor wrote:
> On Fri, Mar 11, 2011 at 04:33:56AM -0800, Daniel Colascione wrote:
>> On 2/17/11 2:27 AM, Corinna Vinschen wrote:
>>> There's no way
>>> to start a process and tell the Windows loader where you want the stack.
>>
>> True, but there's also no requirement to use the stack provided by the
>> loader.  Why not always allocate a separate stack and switch to it early
>> in initialization?
>
> Taking control of the stack allocation doesn't mean that you will
> magically be able to allocate space in the same address range in a
> forked process.

What about using a large area of BSS as "stack"?

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019