Edit report at https://bugs.php.net/bug.php?id=69820&edit=1
ID: 69820
Comment by: maikgreubel at gmail dot com
Reported by: maikgreubel at gmail dot com
Summary: CLI crashes at start with various extensions enabled
Status: Verified
Type: Bug
Package: Reproducible crash
Operating System: Windows 7 64bit
PHP Version: 7.0.0alpha1
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
I added the deps from deps-7.0-vc14-x64.7z and compiled with the same options than qa build. The
result is not runnable due to missing pgort140.dll. So I disabled
--enable-pgi
and got no crash with the same extensions enabled in php.ini. I also enabled more extensions:
extension=php_fileinfo.dll
extension=php_mbstring.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
extension=php_pdo_sqlite.dll
extension=php_shmop.dll
extension=php_sockets.dll
And still no crash.
Optimizitation issue?
Previous Comments:
------------------------------------------------------------------------
[2015-06-13 22:29:03] ab@php.net
Ok, this is ... interesting. But seems you don't use the deps package vor vc14 (available at
windows.php.net/downloads). I use them, and the behavior i've described depends on ext/hash.
But this could mean to me - we have something terrible in the dependency libraries, and that screws
the memory at some point. Can you tell the same after you've fetched the vc14 deps and
they're available for your build?
Btw, do you have the same crash when enabling all the available exts?
Thanks.
------------------------------------------------------------------------
[2015-06-13 22:11:50] maikgreubel at gmail dot com
You are welcome. But, ext/hash is enabled in my configuration:
D:\tmp\php-7.0.0alpha1-src>configure --enable-mbstring=shared --with-pdo-mysql=shared
--with-pdo-sqlite=shared --enable-fileinfo=shared --enable-pdo
Saving configure options to config.nice.bat
Checking for cl.exe ... <in default path>
Detected compiler MSVC14 (Visual C++ 2015)
Detected 64-bit compiler
Checking for link.exe ... C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64
Checking for nmake.exe ... <in default path>
Checking for lib.exe ... <in default path>
Checking for bison.exe ... <in default path>
Checking for re2c.exe ... <in default path>
Detected re2c version 0.13.5
Checking for zip.exe ... <in default path>
Checking for lemon.exe ... <not found>
Checking for mc.exe ... C:\Program Files (x86)\Windows Kits\8.1\bin\x64
Checking for mt.exe ... C:\Program Files (x86)\Windows Kits\8.1\bin\x64
Enabling multi process build
Build dir: D:\tmp\php-7.0.0alpha1-src\x64\Release_TS
PHP Core: php7ts.dll and php7ts.lib
Checking for wspiapi.h ... <in default path>
Enabling IPv6 support
Enabling SAPI sapi\cgi
Enabling SAPI sapi\cli
Enabling extension ext\bcmath
Enabling extension ext\calendar
Checking for library oleaut32.lib ... <in LIB path> OleAut32.Lib
Enabling extension ext\com_dotnet
Checking for mscoree.h ... <in default path>
Enabling extension ext\ctype
Enabling extension ext\date
Enabling extension ext\fileinfo [shared]
Enabling extension ext\filter
Enabling extension ext\ftp [shared]
Checking for openssl/ssl.h ... <not found>
Checking for openssl/ssl.h ... <not found>
Checking for library libjpeg_a.lib;libjpeg.lib ... <not found>
WARNING: gd not enabled; libraries and headers not found
Enabling extension ext\hash
Checking for library libiconv_a.lib ... <not found>
Checking for library libiconv.lib ... <not found>
Checking for library iconv_a.lib ... <not found>
Checking for library iconv.lib ... <not found>
WARNING: iconv support can't be enabled, libraries or headers are missing
Enabling extension ext\json
Enabling extension ext\mbstring [shared]
Using bundled libmbfl...
Checking for library ws2_32.lib ... <in LIB path> WS2_32.Lib
Enabling extension ext\mysqlnd
Checking for zlib.h ... <not found>
Checking for zlib.h ... <not found>
Enabling extension ext\opcache [shared]
Enabling extension ext\pcre
Enabling extension ext\reflection
Enabling extension ext\session
Enabling extension ext\spl
Checking for timelib_config.h ... ext/date/lib
Enabling extension ext\standard
Enabling extension ext\tokenizer
Checking for zlib.h ... <not found>
Checking for zlib.h ... <not found>
WARNING: zip not enabled; libraries and headers not found
Checking for library zlib_a.lib;zlib.lib ... <not found>
WARNING: zlib support can't be enabled, zlib is missing
Checking for library libxml2_a_dll.lib;libxml2_a.lib ... <not found>
WARNING: libxml support can't be enabled, iconv or libxml are missing
WARNING: dom support can't be enabled, libxml is not enabled
Enabling extension ext\pdo
INFO: mysqlnd build
Enabling extension ext\pdo_mysql [shared]
Enabling extension ext\pdo_sqlite [shared]
Enabling extension ext\phar
Native OpenSSL support in Phar disabled
WARNING: simplexml not enabled; libraries and headers not found
WARNING: xml support can't be enabled, libraries or headers are missing
Creating build dirs...
Generating files...
Generating Makefile
Generating main/internal_functions.c
[content unchanged; skipping]
Generating main/config.w32.h
Generating phpize
Done.
Enabled extensions:
-----------------------
| Extension | Mode |
-----------------------
| bcmath | static |
| calendar | static |
| com_dotnet | static |
| ctype | static |
| date | static |
| fileinfo | shared |
| filter | static |
| ftp | shared |
| hash | static |
| json | static |
| mbstring | shared |
| mysqlnd | static |
| opcache | shared |
| pcre | static |
| pdo | static |
| pdo_mysql | shared |
| pdo_sqlite | shared |
| phar | static |
| reflection | static |
| session | static |
| spl | static |
| standard | static |
| tokenizer | static |
-----------------------
Enabled SAPI:
-------------
| Sapi Name |
-------------
| cgi |
| cli |
-------------
----------------------------------------------
| | |
----------------------------------------------
| Build type | Release |
| Thread Safety | Yes |
| Compiler | MSVC14 (Visual C++ 2015) |
| Architecture | x64 |
| Optimization | PGO disabled |
| Static analyzer | disabled |
----------------------------------------------
Type 'nmake' to build PHP
Because it is also not disabled in binaries downloadable at qa, I have the same configuration on
that point.
------------------------------------------------------------------------
[2015-06-13 21:43:04] ab@php.net
@maikgreubel, thanks for the further investigation. Yeah, an issue seems to lay on the way how the
mhash bc module is registered. As long as you don't enable ext/hash, everything should be fine.
Thanks.
------------------------------------------------------------------------
[2015-06-13 20:59:09] maikgreubel at gmail dot com
The crash is also not reproducable with my local 32bit build with configuration
configure --enable-mbstring=shared --with-pdo-mysql=shared --with-pdo-sqlite=shared
--enable-fileinfo=shared --enable-pdo
The same configuration for x64 does also not crash.
------------------------------------------------------------------------
[2015-06-13 20:10:21] ab@php.net
Related To: Bug #69814
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=69820
--
Edit this bug report at https://bugs.php.net/bug.php?id=69820&edit=1