delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/12/19/15:21:59

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=qUzE/Sg0wyZyf+k5
xG9u009OyNGm7MzUE90XfethT5Jq1j7PQogMFjCypY5JnMP/dA55IA35iv2Et9KP
PUmKWUhXn80oZaOuxeKe38cmH5a0tydrWYQR2sfdsc9vLqyg3AveeZda1vS5xE9l
SFM+Xeqeyed7SvC+hjj5oKEQVwA=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=akdHJY8NSAjHU0khwnZuz5
ejYMM=; b=NUg+PYyq5ntGFTGPx4Ib5eBRHExCp9I1gBsKGfPo3rU7qg0npM/3gH
JgI8KjzJKi1R7rrbybZS66nOd5cQgQfw0E7bTRgzPJHZUPbq/rByWsNZQ6L+/13I
pMtR7siR9X0Va1HJKam8SNxkrT7C8yVx/8+11S61nKficCKpRzfKY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, H*Ad:D*ab.ca, H*MI:sk:9192639, HTo:D*ab.ca
X-HELO: forward2m.cmail.yandex.net
Authentication-Results: smtp1o.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Mon, 19 Dec 2016 23:17:26 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1092116748.20161219231726@yandex.ru>
To: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>, cygwin AT cygwin DOT com
Subject: Re: PHP 7.0.14 crashing with minimal set of extensions
In-Reply-To: <c74f035f-09fe-3a7e-302a-eed7fdb0d922@SystematicSw.ab.ca>
References: <1762469321 DOT 20161213210612 AT yandex DOT ru> <a0b430f2-bcd3-2c78-f402-9d0812181453 AT cygwin DOT com> <641869745 DOT 20161214140428 AT yandex DOT ru> <c19592da-bb4f-9b5d-7be0-0ff9852bd205 AT SystematicSw DOT ab DOT ca> <919263915 DOT 20161218214043 AT yandex DOT ru> <c74f035f-09fe-3a7e-302a-eed7fdb0d922 AT SystematicSw DOT ab DOT ca>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id uBJKLvEK023676

Greetings, Brian Inglis!

> On 2016-12-18 11:40, Andrey Repin wrote:
>> Greetings, Brian Inglis!
>>> On 2016-12-14 04:04, Andrey Repin wrote:
>>>> Greetings, Yaakov Selkowitz!
>>>>> On 2016-12-13 12:06, Andrey Repin wrote:
>>>>>> Here's strace and stackdump from latest crash with Cygwin 
>>>>>> 2.6.1-2 project.rootdir.org/.offload/crash-php-7.14.tar.xz
>>>>> Are you 100% sure that your code is compatible with PHP 7?
>>>>> The only segfaults I have seen so far is with old code.
>>>> It's Composer. It runs with native PHP7 of the same version just
>>>> fine.
>>> Possibly JIT/DEP conflict see 
>>> https://cygwin.com/ml/cygwin/2016-11/msg00336.html
>> Gah… confirmed. Setting pcre.jit = Off let it run.

> Does the native app use JIT and have no problems with Windows DEP?

pcre.jit => 1 => 1
Seems like "yes".

> Does PHP need some Cygwin specific patches to re-mmap JIT code as rx, 
> or Cygwin patches so Windows sees mmap rx regions as executable code, 
> or otherwise "blesses" JIT code so it is not crashed by DEP?

That, I do not know.

> There should at least be some way to indicate there is a DEP issue 
> rather than just crashing with a segv!

I do not enforce DEP here.
But I just found references that this can be a stack overflow issue.


-- 
With best regards,
Andrey Repin
Monday, December 19, 2016 23:12:14

Sorry for my terrible english...
--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019