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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=OFJ3EKKB8F7ZflRO
	pOjb964LLHxx1FOW/ZA4KJn/9NA5r5XAE0rzx+/x7dW1D6YibPc5IZf8GZUerKmb
	tgJEAU2fw5QMxi8p8n6rnQkeOX/FY1ruS+qtVJ+ifQkBc6riogARDuMWBjRPr2kb
	CJx1dz2f0JAvzCcAcbriDhsqh/A=
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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=Crh5qSh8VRfAWIbEnPSDJU
	jusLM=; b=TSXf65wRltyAiXkZvxY579NKDaeJCWrGTWEBKHzZ8u4JRQ8GW31L+D
	RC5PvgiJf8mJiayWdrKHOLic4Ujguif1a//XkjO2x1D/qWdi94vWxbl5lxKrpzHQ
	/O3yqCipGyZjcz2bh1/ByZGEHywcZf538z/brGpYl8URgTGfgRv50=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=python2, sufficiently, observation, joachim
X-HELO: mail-io0-f175.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:subject:to:references:from:message-id:date         :user-agent:mime-version:in-reply-to:content-language         :content-transfer-encoding;        bh=cRhgX8HuqwcXIIg9qjE1a6E7825dzVFOfY10Ijp4YHU=;        b=RUmpGvjAKFMm42tTwzegirLJNhq9XblTGO/qwjiAOjWk0wL/enDwYzPtsSE46lGIFv         UViFITWNQIBNDw7+3Ib3a1o4rGDubgYXIMYaySQ35+9wx2WKZM/jsKUoftLVIHFo34oD         RDa+L5IOD8b7WeidzvypNQ6v8oFOYIzapq793MNe9VSHLGO1hhrC0GYpUtzZEaScABpA         eF456ESsB0XtWoTnP6MRSvikvIAS9KMNrKVXkN0IsFIpMxwYNduZgEaPYbhwjg8Go0ma         SOUW8+7HcVJmAFurioCzg/lErBilVgPryt26YDWJhUqxtbxhf2yZ2K808BJ+hxbxD1Zl         097Q==
X-Gm-Message-State: AHYfb5joihcPQ3wxmc7nJ1iWEqz+tA4GlP1F+aU+ASpOYgHI7tAyy7lL	z0dl8XRW4zdABTuw
X-Received: by 10.107.53.40 with SMTP id c40mr8479781ioa.289.1503061741435;        Fri, 18 Aug 2017 06:09:01 -0700 (PDT)
Subject: Re: gcc segfaults compiling python extensions
To: cygwin@cygwin.com
References: <CAPq-Lw0SPYCyDqtpQE=bHOsOw2hnD-taZ+HLYOXZjSvsctpkjw@mail.gmail.com>
From: cyg Simple <cygsimple@gmail.com>
Message-ID: <a576db9b-881d-e17a-edbe-761e9179180f@gmail.com>
Date: Fri, 18 Aug 2017 09:09:04 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <CAPq-Lw0SPYCyDqtpQE=bHOsOw2hnD-taZ+HLYOXZjSvsctpkjw@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

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:
> https://cygwin.com/ml/cygwin/2014-10/msg00502.html
> 
> 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
> [https://github.com/libyal/libfwnt/blob/master/appveyor.yml#L39]
> 
> building a Python module for CygWin python (no Windows Python) causes
> gcc to SIGSEGV (11)
> 
> gcc -fno-strict-aliasing -ggdb -O2 -pipe
> -Wimplicit-function-declaration
> -fdebug-prefix-map=/usr/src/ports/python2/python2-2.7.13-1.i686/build=/usr/src/debug/python2-2.7.13-1
> -fdebug-prefix-map=/usr/src/ports/python2/python2-2.7.13-1.i686/src/Python-2.7.13=/usr/src/debug/python2-2.7.13-1
> -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
> build/temp.cygwin-2.8.2-i686-2.7/libcerror/libcerror_error.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.

-- 
cyg Simple

--
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

