From: dax at enst dot fr
Operating system: Solaris10
PHP version: 5.2.12
PHP Bug Type: Scripting Engine problem
Bug description: BugID: 50226
Description:
------------
In my configuration the PHP crypt() function makes a segmentation fault in
a httpd process. However this doesn't occur in command line mode using the
php interpeter.
Consequence : impossible to run any PHP applications with crypt() as
PMwiki for example.
OS : Solaris10
Apache server : httpd-2.2.14
Compilation options :
./configure --prefix=/usr/local/apache22
--with-apxs2=/usr/local/apache22/bin/apxs
--with-config-file-path=/usr/local/apache22/etc --enable-sockets
--enable-sigchild --enable-ftp --enable-calendar --enable-wddx
--enable-bcmath --enable-shmop --enable-sysvmsg --enable-sysvsem
--enable-sysvshm --enable-session --enable-mbstring --enable-exif
--with-regex=system --with-gettext --with-iconv=/usr/local
--with-openssl=/usr/local/ssl --with-zlib-dir=/usr/local
--with-bz2=/usr/local --with-libxml-dir=/usr/local
--with-xpm-dir=/usr/local/X11R6 --with-png-dir=/usr/local
--with-gd=/usr/local --with-freetype-dir=/usr/local --enable-gd-native-ttf
--with-t1lib=/usr/local --with-ttf=/usr/local --with-gdbm=/usr/local
--with-db4=/usr/local/BerkeleyDB.4.5 --with-mysql=/infres/mysql/5.1.30
--with-ldap=/usr/local --with-curl=/usr/local --with-xsl=/usr/local
--enable-soap --with-mcrypt=/usr/local/ --enable-zip
Reproduce code:
---------------
<?php $foo = crypt("bar"); echo "$foo"; ?>
Expected result:
----------------
A md5 string
Actual result:
--------------
[Sat Feb 06 17:05:15 2010] [notice] child pid 17043 exit signal
Segmentation fault (11)
--
Edit bug report at http://bugs.php.net/?id=50947&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50947&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50947&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50947&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50947&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=50947&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50947&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=50947&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=50947&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=50947&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=50947&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=50947&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=50947&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=50947&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50947&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50947&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50947&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=50947&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=50947&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=50947&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=50947&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=50947&r=mysqlcfg