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:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=y1FZjJUyBc35MgsSgkZfOnh0suJJ5AoK1uKIGVLzOAjzUGJlXcRRc y6cRupuWLr9pcW7KJ0vV0fMrp0u8+HX6ehz+q3Atx8HWp4VH8FmMRM+x+uFzmCJ1 PPf5CIQyjI8wep68Kico/kem9fCpAis2fXqfYWpugfgeBpoPMtLLc0= 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=8E+qhEEFgwopRqGcjgevqhvVP/w=; b=VgvakKMdcoDdBHB2FUx5CzAZyMEK SsOHNEckfpnHWtjbuQ50GXr00iffY7+23/IylnPcyGzBHz/G02v2OOCUhNCYnCnA nKSsYLdNazqr4/sC1D14+qpNLeJ7uI7VS7W1pjczQZAH6ZzKES1Us4F5j9Geckv2 T/QR57a2LNsCAvc= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Tue, 24 Feb 2015 22:34:22 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Cygwin Shell Fails to Start when Enabling High Address Message-ID: <20150224213422.GS437@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gIhrS3Q23Nl70UJ5" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) --gIhrS3Q23Nl70UJ5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Benjamin, On Feb 24 19:58, Benjamin Cao wrote: > Hi, >=20 > I had to enable high address for some machines for testing. I set the > AllocationPreference registry key to be 0X100000. Cygwin doesn't support this AllocationPreference registry setting. Cygwin and thus Cygwin applications(*) are already large address aware. Cygwn uses large address regions automatically if available, but it's essential that Cygwin itself can decide how and what to use them for. Cygwin will also use MEM_TOP_DOWN allocations in certain system calls (e.g. mmap) but this, too, is crafted to avoid collisions, and Cygwin needs full control over this behaviour. In general, Cygwin needs as much control over memory allocations as possible in Windows for several reasons, mainly for the sake of fork and exec calls. So, having said that, AllocationPreference 0x100000 breaks Cygwin's memory handling. Therefore, don't use it in conjunction with Cygwin applications. Corinna (*) There are exceptions, of course. 32 bit applications using the high bit of addresses for dubious reasons exist. Of course they deserve to be broken. --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --gIhrS3Q23Nl70UJ5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJU7O5eAAoJEPU2Bp2uRE+gqvIP/3cb+CpvDFzh3r0+RwBr6w1M O3dWOOdBj8cctQdMg2/qRfoweUs2JXvZgOwBDjjodCiBT0NBX+gprb5mSAPGcrK0 8mCRApEQtBpuSLJnEAg5+spQvSO6/o86mz0eGIqAenOmMZQ4GbgsMWTYpz8gy0g+ iueg8sTZuZ4ogecB0dKCGEyhmuynkA9euSkZp9ev3A8oQpzinTPgDyp4UT2c9NN9 w/kxOoIJxGz82eHBbLrcPbdM+5aKO0OSIiErMd5Dnw+wnPxA2lBFfMcfnR1jhpYn J5phCfZwFgkhyWuAhgAq/mnk6h9huuW0ixeKs0EPF/MPIXDzAHE1fkPndI+Bnhin lPaWEjgCp5vjfyWKGnyvasF6cugQb6z+OAeb/xAvFNCzCo1ey43Y1LU5PLqKdM7X vD4CCedICn2kZITGaRpoU6s94e2StaFyjmjiWvmiAYHUWDppl0dJZhQ7Tfoi8X4Q drBnppbrStjoj4mUj94pXClIwucpGMHQX7+A66ZyGvCogu3P8s0ICt037dUT5SVv 4B2ojVVdrrxBWTGBJrFM3rHj1kY0ptvdmSLTCwAyeLcJ1wa9BsmrHX2PsEeus54v sLEahp1ieNyj/RHq5C81g3k20sFWtQTEZN4hoWJM4rEQhWg9LCPso9mjSGVDnO1r qttH8WcwCJz1Myfqb5uR =jAwv -----END PGP SIGNATURE----- --gIhrS3Q23Nl70UJ5--