This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

php 7 upgrade -- segmentation fault


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]