X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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?= <engycz@gmail.com>
Date: Tue, 27 Nov 2018 11:32:54 +0100
Message-ID: <CAHODtZSGx4ix7baJwYDyieJ_p0QGBHRK4cPgt0Fo7yFa+QRL5w@mail.gmail.com>
Subject: GCC: Precompiled headers - Segmentation fault
To: cygwin@cygwin.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


