From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26074 invoked by alias); 29 Nov 2016 17:42:10 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 26059 invoked by uid 89); 29 Nov 2016 17:42:09 -0000 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 Received: from mail.guerrillamail.com (HELO mail.guerrillamail.com) (192.99.19.220) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 29 Nov 2016 17:41:59 +0000 Received: by 192.99.19.220 with HTTP; Tue, 29 Nov 2016 17:41:55 +0000 MIME-Version: 1.0 Message-ID: <10e5f349bf47dcecbf59419085da3615494@guerrillamail.com> Date: Tue, 29 Nov 2016 18:11:00 -0000 To: "cygwin@cygwin.com" From: <59yfvs+f4bkzvgzw@guerrillamail.com> Subject: php 7 upgrade -- segmentation fault Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Domain-Signer: PHP mailDomainSigner 0.2-20110415 X-SW-Source: 2016-11/txt/msg00331.txt.bz2 I just updated from php5.6.27-1 to php7.0.13-1 . A previously working scri= pt now segfaults and the stackdump isn't terribly helpful in tracing the is= sue: $ cat php.exe.stackdump Exception: STATUS_ACCESS_VIOLATION at eip=3DFFBC0008 eax=3D80155DA0 ebx=3D80165AC8 ecx=3D00289080 edx=3D00000004 esi=3DFFBC0008 = edi=3D80165598 ebp=3D00000004 esp=3D0028905C program=3DD:\cygwin\bin\php.exe, pid 8504, th= read main cs=3D0023 ds=3D002B es=3D002B fs=3D0053 gs=3D002B ss=3D002B Stack trace: Frame Function Args The script in question creates a persistent SSL socket to a server (not htt= p), 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 connect= ion. The segmentation fault is happening somewhere in the loop. NOW REMEMBER, this script has been working fine for months under the old ph= p5.x branch. Only with this change to php7 am I getting segfaults. Also t= his 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 unde= rtake. 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=3DQlhzEgQOY7c= Mjxm9%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