From:
Operating system: Solaris 10
PHP version: 5.3.6
Package: ICONV related
Bug Type: Bug
Bug description:ICONV iconv_strlen() causing apache to crash/segmentation
fault(11)
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 bug report at https://bugs.php.net/bug.php?id=55204&edit=1
--
Try a snapshot (PHP 5.2):
https://bugs.php.net/fix.php?id=55204&r=trysnapshot52
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=55204&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=55204&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=55204&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=55204&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=55204&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=55204&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=55204&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=55204&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=55204&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=55204&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=55204&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=55204&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=55204&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=55204&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55204&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=55204&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=55204&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=55204&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=55204&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=55204&r=mysqlcfg
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=55204&r=trysnapshot54