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=AkyQGnWfx0Tumr0WioIot61GTEdpNvxqHGkNWEMRhUo+chHhMQRjL sv5Jk27YCKeeTZu+3zl6M4UQpNYJpml4z7CTiMlu3d6mU9y40xA2pSYfi9ITBU88 au6B4ProzRk5xxszPS80QrvFCGf1toFDUNrVi9AJZ9A+C4k+N4RaF8= 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=hpZ7al7OpMqN0oG0BZVAy/qdwm8=; b=XyBXfhyRg0NdaBP0UVweEHd09nJh XYHWmD3Kyvjkoq0+Mtr/m03TRQEfAKEQUNULViB3mHO1ttOW39SgQtKLn1kpvkf0 dUY70smv9yjo2/Ctcy37gmlK13Nn3Ns2QZrh1eKfTqN4e9YJIcvr3A0xGomMoXif oYdHFls9RqqZVUg= 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-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-99.0 required=5.0 tests=BAYES_40,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,KAM_SHORT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Ji, ji=c5, engelthaler, Engelthaler?= X-HELO: mout.kundenserver.de Date: Tue, 27 Nov 2018 14:13:06 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: GCC: Precompiled headers - Segmentation fault Message-ID: <20181127131306.GS30649@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-sha256; protocol="application/pgp-signature"; boundary="P6YfpwaDcfcOCJkJ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) --P6YfpwaDcfcOCJkJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Nov 27 11:32, Ji=C5=99=C3=AD Engelthaler wrote: > Hi, > I have a problem with GCC 7.3.0 (problem is in all versions) and > precompiled headers. > I have the sample file http://ge.tt/7fRLk1t2 which causes Segmentation > fault in cc1. > The test passes normally on Linux. I searched why and found that the resu= lt > here > https://github.com/gcc-mirror/gcc/blob/gcc-7_3_0-release/gcc/ggc-common.c= #L626 > is 1 in Linux and -1 in CygWin. >=20 > In Linux the method called is > https://github.com/gcc-mirror/gcc/blob/gcc-7_3_0-release/gcc/config/host-= linux.c#L182 >=20 > In Cygwin the method called is > https://github.com/gcc-mirror/gcc/blob/gcc-7_3_0-release/gcc/ggc-common.c= #L708 > - mmap return address is not equal to base address. This version assumes that the kernel honors the START operand of mmap even without MAP_FIXED if START through START+SIZE are not currently mapped with something. Sigh. Corinna --=20 Corinna Vinschen Cygwin Maintainer --P6YfpwaDcfcOCJkJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlv9QuIACgkQ9TYGna5E T6AG2w//WIJufNycxg7CJP5yraSoTPu/NHswu9p9uAd4ZsxJia3co7r/9aAQyUqM CL/JxGg4c8TLvtchN50Vyr9zL+pFqtrYNEw7qOcgE3ChEL7XOUzrHoCZa+o4kpR5 1wzFYFMftWqwfsGKm7SBLKChhuMgbrC5UdXxNoeQsfH4AX5WYpPMKX+75r36lrKC TTJj/yr5Nt3Pk/I+Qe9itrTGK/NoZQNvoltpsKk+j/Qc2I8noF9Ty1zUsZh+40yr BEqIWSrzPpDa/PyFxHel/5dRQOzmneOt3Rjuvz1SkXvTl3l91xhyPa4fXWCif0tz OBjWlAlAU/hm0/pQfo3ueQR291WSJ+hw6TW9UtSiUANQqqJ+QuFQnPp9Iw4hWnkX r37VJuCuTAFlmFHaGI0RJH0K0XyMvnbfgXeRdLM+IQ8WplaAcPwMkjgGjsuVSzCF ScNRYWvE8Gs0smkTFQ/G+F0w0zh3sMIBe7lICMC+jbriZq677AsOCdv4TMOtX8cM AXoYB/5t2o+cEEn9N0iQu9IGU/duLOoDKEU5fe++/psqe/7C555S0ySTEqZUPHl7 i/d8XR/F6HtEKv2iMQN0T4h74Sygk1fG21VuGy5Yv4wkx+y7d23hx+QmRF2HV4Gs WvxfgaoSSZWj0rizukIDJObBmehuIko2p/7d0Z0VDdCIYByLHzc= =GF2p -----END PGP SIGNATURE----- --P6YfpwaDcfcOCJkJ--