This is the mail archive of the
mailing list for the Cygwin project.
Re: gcc segfaults compiling python extensions
- From: cyg Simple <cygsimple at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 18 Aug 2017 09:09:04 -0400
- Subject: Re: gcc segfaults compiling python extensions
- Authentication-results: sourceware.org; auth=none
- References: <CAPq-Lw0SPYCyDqtpQE=bHOsOw2hnD-taZ+HLYOXZjSvsctpkjw@mail.gmail.com>
On 8/18/2017 1:21 AM, Joachim Metz wrote:
> Hello CygWin maintainers,
> I want to report an observation, which might help address a bug.
> This issue has been reported in the past in:
> I recently ran into the same issue:
> On AppVeyor [https://ci.appveyor.com/] running Windows Server 2012 R2
> With the latest available cygwin 32-bit
> building a Python module for CygWin python (no Windows Python) causes
> gcc to SIGSEGV (11)
> gcc -fno-strict-aliasing -ggdb -O2 -pipe
> -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_CONFIG_H=
> -DLOCALEDIR="/usr/share/locale" -Iinclude -Icommon -Ilibcerror
> -Ilibcthreads -Ilibcdata -Ilibcnotify -Ilibfwnt
> -I/usr/include/python2.7 -c libcerror/libcerror_error.c -o
> error: command 'gcc' terminated by signal 11
> Running: 'setup.py build' failed
Was there a stackdump file you could have attached? What happens if you
remove the -O3 and -O2 for that matter. I find it interesting that
you're using a 32bit Cygwin on a server that only executes on a 64bit
CPU. Does this happen with 64bit Cygwin? No, then use it instead.
> Also see: https://ci.appveyor.com/project/joachimmetz/libfwnt/build/79/job/l1gqocdqoafax0k7
> As per: https://cygwin.com/ml/cygwin/2014-10/msg00552.html I switched
> to Windows Server 2016 and this indeed does not show the same issue.
So some anomaly in Windows itself was resolved. Should we really worry
about such an issue in Cygwin? Only if Cygwin is using some API that is
only available in Windows Server 2016 is my POV.
> I've been tracking this in: https://github.com/libyal/libyal/issues/34
> Hope to have sufficiently informed you.
> Let me know if you need additional information.
You could try debugging the failures. Follow the gcc issue with an
strace of the processes. Attach the stackdump file if one was created, etc.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple