Bug #65207 [Com]: OPCache can't be compiled with SolarisStudio
Edit report at https://bugs.php.net/bug.php?id=65207edit=1 ID: 65207 Comment by: skrueger at europe dot com Reported by:reh at hebis dot uni-frankfurt dot de Summary:OPCache can't be compiled with SolarisStudio Status: Open Type: Bug Package:Compile Failure Operating System: Solaris / Illumos PHP Version:5.5.0 Block user comment: N Private report: N New Comment: Guys, since you already got it working, how about providing a patch? Previous Comments: [2013-07-20 10:29:12] reh at hebis dot uni-frankfurt dot de For me it looks like two probs. 1. Lineterminators 2. Flock library Both seems to be tested only with GCC (1) and GLIBC (2) which is likely standard on most linux systems. It is just a question of the portability of the code. [2013-07-20 03:11:25] lj2007331 at gmail dot com I tested many times. Influence and Linux OS version. CentOS 5 32/64bit and CentOS 6 64bit has been passed, but CentOS 6 32bit ./configure error: checking for known struct flock definition... configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no [2013-07-20 00:00:55] yohg...@php.net checking for known struct flock definition... configure: error: Don't know how to define struct flock on this system, I don't have this problem with my Scientific Linux 6.4. [2013-07-19 05:20:51] lj2007331 at gmail dot com PHP Version:5.5.0 and 5.5.1 OS:CentOS release 6.4 (Final) Kernel: 2.6.32-358.6.2.el6.i686 Error: checking for mmap() using shm_open() shared memory support... no checking for mmap() using regular file shared memory support... no checking for known struct flock definition... configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no make: *** No targets specified and no makefile found. Stop. make: *** No rule to make target `install'. Stop. [2013-07-14 14:25:27] tgburrin at yahoo dot com reh's solution seems to work for me. After converting the \r\n's to \n and fixing the three spots (configure, ext/opcache/ZendAccelerator.h, and ext/opcache/config.m4) where the flock test is done, I was able to configure and build successfully. I haven't seen any issues so far. using Solaris Studio 12.3 on: # cc -V cc: Sun C 5.12 SunOS_i386 2011/11/16 # uname -a SunOS Heimdall 5.10 Generic_147148-26 i86pc i386 i86pc 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=65207 -- Edit this bug report at https://bugs.php.net/bug.php?id=65207edit=1
Bug #55204 [Com]: ICONV iconv_strlen() causing apache to crash/segmentation fault(11)
Edit report at https://bugs.php.net/bug.php?id=55204edit=1 ID: 55204 Comment by: skrueger at europe dot com Reported by:michel02 at hotmail dot com Summary:ICONV iconv_strlen() causing apache to crash/segmentation fault(11) Status: No Feedback Type: Bug Package:ICONV related Operating System: Solaris 10 PHP Version:5.3.6 Block user comment: N Private report: N New Comment: Ah this is so stupid, I was missing the pkg://solaris/system/library/iconv/unicode-core package... To check if you're missing it too (only works on Solaris 11.1): $ iconv -l Failed to open the directory /usr/lib/iconv/geniconvtbl/binarytables/. When you get that, you need to install the unicode-core pkg and everything (including php's iconv_strlen) will be fine after that. Previous Comments: [2013-08-25 22:04:15] skrueger at europe dot com I see the same error on Solaris 11.1: root@www:/tmp# /usr/php/5.3/bin/php -v PHP 5.3.14 (cli) (built: Aug 30 2012 01:52:21) root@www:/tmp# /usr/php/5.3/bin/php /tmp/iconv_strlen.php PHP Notice: iconv_strlen(): Unknown error (22) in /tmp/iconv_strlen.php on line 5 PHP Stack trace: PHP 1. {main}() /tmp/iconv_strlen.php:0 PHP 2. iconv_strlen() /tmp/iconv_strlen.php:5 Notice: iconv_strlen(): Unknown error (22) in /tmp/iconv_strlen.php on line 5 Call Stack: 0.0002 315392 1. {main}() /tmp/iconv_strlen.php:0 0.0002 315568 2. iconv_strlen() /tmp/iconv_strlen.php:5 And also on PHP 5.5.3: root@www:/tmp# /opt/php5/bin/php -v PHP 5.5.3 (cli) (built: Aug 25 2013 19:41:00) root@www:/tmp# /opt/php5/bin/php /tmp/iconv_strlen.php PHP Notice: iconv_strlen(): Unknown error (22) in /tmp/iconv_strlen.php on line 5 Notice: iconv_strlen(): Unknown error (22) in /tmp/iconv_strlen.php on line 5 [2013-02-18 00:34:56] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to Open. Thank you. [2012-06-21 14:44:52] gabriel dot rota at gmail dot com this LD_PRELOAD fixed my issue export LD_PRELOAD=/usr/local/lib/preloadable_libiconv.so [2011-07-15 17:42:10] fel...@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to Open. Thank you for helping us make PHP better. [2011-07-14 03:48:15] michel02 at hotmail dot com Description: After successfully compiling PHP 5.3.6 on (patched) Solaris 10 with all required GNU packages from sunfreeware.com, iconv_strlen($var) causes Apache2 extension to crash. Only error apache shows is [notice] child pid 34232 exit signal Segmentation fault (11). No output to browser was generated. configure command for compiling PHP was: ./configure --verbose --with-gnu-ld --prefix=/usr/local/php --without-gd --disable-pdo --without-pdo-sqlite --without-sqlite --with-config-file-path=/usr/local/php/lib --with-oci8=/export/home/oracle/product/11.1.0/pweb --with-apxs2=/usr/local/apache2/bin/apxs --enable-bcmath --with-openssl=/usr/local/ssl --with-ldap=/usr/local --with-bz2 --enable-calendar --enable-ctype --with-curl=/usr/local/curl --with-curlwrappers --enable-exif --enable-ftp --with-zlib=/usr/local --with-gettext --with-gmp --enable-hash --enable-json --enable-mbstring --enable-mbregex --enable-pcntl --with-libedit=no --with-readline --enable-session --enable-shmop --enable-simplexml --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-tokenizer --enable-wddx --with-libexpat-dir=/usr/local --enable-xml --enable-xmlreader --with-xmlrpc --enable-xmlwriter --with-xsl --enable-zip --disable-static --enable-pcntl --enable-magic-quotes --with-pcre-dir=/usr/local --with-pcre-regex -- with-pear Test script: --- print iconv_strlen(test,UTF-8); Expected result: generate some output Actual result: -- apache thread killed, error [notice] child pid 34232 exit signal Segmentation fault (11) in errorlog and no output for browser
Bug #55204 [Com]: ICONV iconv_strlen() causing apache to crash/segmentation fault(11)
Edit report at https://bugs.php.net/bug.php?id=55204edit=1 ID: 55204 Comment by: skrueger at europe dot com Reported by:michel02 at hotmail dot com Summary:ICONV iconv_strlen() causing apache to crash/segmentation fault(11) Status: No Feedback Type: Bug Package:ICONV related Operating System: Solaris 10 PHP Version:5.3.6 Block user comment: N Private report: N New Comment: I see the same error on Solaris 11.1: root@www:/tmp# /usr/php/5.3/bin/php -v PHP 5.3.14 (cli) (built: Aug 30 2012 01:52:21) root@www:/tmp# /usr/php/5.3/bin/php /tmp/iconv_strlen.php PHP Notice: iconv_strlen(): Unknown error (22) in /tmp/iconv_strlen.php on line 5 PHP Stack trace: PHP 1. {main}() /tmp/iconv_strlen.php:0 PHP 2. iconv_strlen() /tmp/iconv_strlen.php:5 Notice: iconv_strlen(): Unknown error (22) in /tmp/iconv_strlen.php on line 5 Call Stack: 0.0002 315392 1. {main}() /tmp/iconv_strlen.php:0 0.0002 315568 2. iconv_strlen() /tmp/iconv_strlen.php:5 And also on PHP 5.5.3: root@www:/tmp# /opt/php5/bin/php -v PHP 5.5.3 (cli) (built: Aug 25 2013 19:41:00) root@www:/tmp# /opt/php5/bin/php /tmp/iconv_strlen.php PHP Notice: iconv_strlen(): Unknown error (22) in /tmp/iconv_strlen.php on line 5 Notice: iconv_strlen(): Unknown error (22) in /tmp/iconv_strlen.php on line 5 Previous Comments: [2013-02-18 00:34:56] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to Open. Thank you. [2012-06-21 14:44:52] gabriel dot rota at gmail dot com this LD_PRELOAD fixed my issue export LD_PRELOAD=/usr/local/lib/preloadable_libiconv.so [2011-07-15 17:42:10] fel...@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to Open. Thank you for helping us make PHP better. [2011-07-14 03:48:15] michel02 at hotmail dot com Description: After successfully compiling PHP 5.3.6 on (patched) Solaris 10 with all required GNU packages from sunfreeware.com, iconv_strlen($var) causes Apache2 extension to crash. Only error apache shows is [notice] child pid 34232 exit signal Segmentation fault (11). No output to browser was generated. configure command for compiling PHP was: ./configure --verbose --with-gnu-ld --prefix=/usr/local/php --without-gd --disable-pdo --without-pdo-sqlite --without-sqlite --with-config-file-path=/usr/local/php/lib --with-oci8=/export/home/oracle/product/11.1.0/pweb --with-apxs2=/usr/local/apache2/bin/apxs --enable-bcmath --with-openssl=/usr/local/ssl --with-ldap=/usr/local --with-bz2 --enable-calendar --enable-ctype --with-curl=/usr/local/curl --with-curlwrappers --enable-exif --enable-ftp --with-zlib=/usr/local --with-gettext --with-gmp --enable-hash --enable-json --enable-mbstring --enable-mbregex --enable-pcntl --with-libedit=no --with-readline --enable-session --enable-shmop --enable-simplexml --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-tokenizer --enable-wddx --with-libexpat-dir=/usr/local --enable-xml --enable-xmlreader --with-xmlrpc --enable-xmlwriter --with-xsl --enable-zip --disable-static --enable-pcntl --enable-magic-quotes --with-pcre-dir=/usr/local --with-pcre-regex -- with-pear Test script: --- print iconv_strlen(test,UTF-8); Expected result: generate some output Actual result: -- apache thread killed, error [notice] child pid 34232 exit signal Segmentation fault (11) in errorlog and no output for browser. -- Edit this bug report at https://bugs.php.net/bug.php?id=55204edit=1