PHP 7.1.12 still crashes on cygwin when parsing files that are multiple of 4096 bytes in size

Ing. Viliam Kubis
Sun Jan 7 15:48:00 GMT 2018


I have been using cygwin as my local PHP development suite, and for some
time now, PHP has been crashing on files that are a multiple of 4k in
size. Just run this in your terminal to observe the crash:

kbs1@DESKTOP-QR0EO0L /cygdrive/c/Users/kbs1/Desktop
$ if [ -f test.php ]; then rm test.php; fi; for i in `seq 4096`; do echo
-n ' ' >> test.php; done; php -v; php test.php; rm test.php
PHP 7.1.12 (cli) (built: Dec  7 2017 02:53:41) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.12, Copyright (c) 1999-2017, by Zend Technologies
Segmentation fault (core dumped)

php.exe.stackdump will be left behind.

For some time, a proper patch is posted here:

But I really don't want to recompile PHP every time I run setup.exe and
PHP updates, when will the patch be adopted in the cygport it self
please? Or are we waiting for something else, is the patch improper or

Thank you,
Ing. Viliam Kubis

Sent using SeaMonkey mail

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list