Bug #69820 [Ver]: CLI crashes at start with various extensions enabled

From: Date: Sun, 14 Jun 2015 10:25:41 +0000
Subject: Bug #69820 [Ver]: CLI crashes at start with various extensions enabled
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193461@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69820&edit=1 ID: 69820 Updated by: ab@php.net 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: @maikgreubel, yeah, see bug #69823. My insight about ext/hash was correct. I think we're done here. Please fetch the latest master to check this. Thanks. Previous Comments: ------------------------------------------------------------------------ [2015-06-14 10:01:32] ab@php.net Thanks for the followup. Yeah, --enable-pgi is a part of the PGO build scenario, not needed if you don't do it. But something strange happens. Yesterday I was able to reproduce your initial report using x64\Release_TS\php.exe -n -d extension_dir=x64\Release_TS -d extension=php_fileinfo.dll -d extension=php_mbstring.dll -d extension=php_pdo_mysql.dll -d extension=php_pdo_sqlite.dll But this doesn't crash when I've fetched and rebuilt today. Not doing PGO build as well. But that's why i guess it's not an optimization issue, still quite strange. Maybe you can repro it with this configure line? cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--enable-com-dotnet=shared" That picks up literally everything. But of course, maybe that's just PGO, so probably were worth to check it (but need setup for scenarios). Also, it might be a vc14 issue as it's still RC. Whereby I seem have not received any vc14 updates over the night. Thanks. ------------------------------------------------------------------------ [2015-06-14 08:27:03] maikgreubel at gmail dot com 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? ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ 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

« previous php.bugs (#193461) next »