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:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; q=dns; s=default; b=jI9 ev+Gg4dDT0sXEg0kKTzFgy35fyyaHsGlGIP7fodxHG2TRcbqG0zUa6HSAOQtbAxN x1reMZxsFo3l8slM2a7C7hiyGLofI5mxk0xCmkSrOahdxQ28TpB/JjjbhXeHViEd ULGp955nZQ48yH0YYz3SpwkI+5rcIsmygzuVwi0c= 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:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; s=default; bh=e8oZrwxNR Q+7GdWB4C2CDswx1YA=; b=hwxyR39quXKdoyuqMQcVNTHUMcAgGtAC+MzaPGT+z //AadZtv+SM/4D4mD9qDbok6NE0K7szFWZ5WY+EbtnXr5Nf+rIKHbiEz11f2cYP1 tbh7ww+3ggD56VEhuVqmgdd2MAh6xrGsL6LS+oSOO0HeNfMqI82k1G7xHqUSFhUm LU= 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: No, score=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,FROM_EXCESS_BASE64,HTML_MESSAGE,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=Ji, H*c:alternative X-HELO: mail-qt1-f181.google.com MIME-Version: 1.0 From: =?UTF-8?B?SmnFmcOtIEVuZ2VsdGhhbGVy?= Date: Tue, 27 Nov 2018 11:32:54 +0100 Message-ID: Subject: GCC: Precompiled headers - Segmentation fault To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id wARAXIfE022722 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 result 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. In Linux the method called is https://github.com/gcc-mirror/gcc/blob/gcc-7_3_0-release/gcc/config/host-linux.c#L182 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. There are also some reports in gcc bugzilla. Regards Jiří Engelthaler -- 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