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:message-id:date:to:from:subject
	:content-type:content-transfer-encoding; q=dns; s=default; b=o30
	wVfXtMM9EN0/QkL3Me+2sMHQ7RfJE18MnjT+gqadvh30pXPbR+rbCjKpaAbFtvXh
	OHJmavY92uFsVyk9rUSjIlJBrhrwAAi6bVHg56Lz4JOqCtaODNDZCpTZGkEbI68H
	onC9ppPZW6N7YktKpPD9mhSHae/FIOS2uR3SVdWg=
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:message-id:date:to:from:subject
	:content-type:content-transfer-encoding; s=default; bh=PgSlWYoYR
	0zRFt/JZ4wX2sdGuDc=; b=hjJloioLqJMMyp0hgVjp+Cw3IECX/enAwegpJOVre
	ywtVRqmadcMLyHpiMdy/RHf9NL1CJFVMsFSWVf0Wx5tGVr4/j9/zm5jzTpY9hkaY
	WRlK1eJA4MkSC2ahe+SSXfZSF2BPZDnZhnLfiLNWnRPjpZ5greGlBEIGkpkoPyNM
	3Q=
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=-4.1 required=5.0 tests=AWL,BAYES_00,FROM_LOCAL_NOVOWEL,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=8504, 0023, respond
X-HELO: mail.guerrillamail.com
MIME-Version: 1.0
Message-ID: <10e5f349bf47dcecbf59419085da3615494@guerrillamail.com>
Date: Tue, 29 Nov 2016 17:41:55 +0000
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
From: <59yfvs+f4bkzvgzw@guerrillamail.com>
Subject: php 7 upgrade -- segmentation fault
Content-Type: text/plain; charset="utf-8"
X-Domain-Signer: PHP mailDomainSigner 0.2-20110415 <http://code.google.com/p/php-mail-domain-signer/>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id uATHgQXi015116

I just updated from php5.6.27-1 to php7.0.13-1 .  A previously working script now segfaults and the stackdump isn't terribly helpful in tracing the issue:

$ cat php.exe.stackdump
Exception: STATUS_ACCESS_VIOLATION at eip=FFBC0008
eax=80155DA0 ebx=80165AC8 ecx=00289080 edx=00000004 esi=FFBC0008 edi=80165598
ebp=00000004 esp=0028905C program=D:\cygwin\bin\php.exe, pid 8504, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame     Function  Args

The script in question creates a persistent SSL socket to a server (not http), sets socket blocking to false, then enters into a while loop to process messages and respond.  I can tell that it is able to establish the connection.  The segmentation fault is happening somewhere in the loop.

NOW REMEMBER, this script has been working fine for months under the old php5.x branch.  Only with this change to php7 am I getting segfaults.  Also this script runs perfectly fine on a linux server using the same version of php7.

There is clearly a problem with this new php7 build for cygwin. I am happy to help gather more data on the issue if you direct me to the steps to undertake. It seems likely the problem revolves around the socket functions.

Some other details:
* 32 bit cygwin on a 64 bit Windows 7 machine
* php -v works
* php -a works
* basic php scripts work





----
Sent using Guerrillamail.com
Block or report abuse: https://www.guerrillamail.com/abuse/?a=QlhzEgQOY7cMjxm9%2FjAcfRk%3D



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


