Edit report at https://bugs.php.net/bug.php?id=55204&edit=1

 ID:                 55204
 Comment by:         gabriel dot rota at gmail dot com
 Reported by:        michel02 at hotmail dot com
 Summary:            ICONV iconv_strlen() causing apache to
                     crash/segmentation fault(11)
 Status:             Feedback
 Type:               Bug
 Package:            ICONV related
 Operating System:   Solaris 10
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

this LD_PRELOAD fixed my issue

export LD_PRELOAD=/usr/local/lib/preloadable_libiconv.so


Previous Comments:
------------------------------------------------------------------------
[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=55204&edit=1

Reply via email to