GCC: Precompiled headers - Segmentation fault

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Nov 27 13:13:00 GMT 2018


On Nov 27 11:32, Jiří 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 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.

   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

-- 
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20181127/96629c04/attachment.sig>


More information about the Cygwin mailing list