From: bill dot macallister at prideindustries dot com Operating system: Debian Sarge with 3.6.8 kernel PHP version: 5.1.4 PHP Bug Type: Reproducible crash Bug description: Apache 2.0.55-Openldap 2.3.24-php 5.1.4 causes apache to segfault
Description: ------------ On a Debian Sarge system with a 2.6.8 kernel I am building Apache 2.0.55 with PHP 5.1.4 with LDAP support. The build seems to complete just fine, but the server will not start. When I do a 'apache/bin/apachectl configtest' I get a Syntax OK message just before I get the SEGFAULT message. When I remove the PHP module load directive from the httpd.conf file the SEGFAULT disappears. I get the same result if I build PHP 4.4.2. I have finally gotten the server to build by building against OpenLDAP 2.2.27. It looks like PHP is having some problem with OpenLDAP 2.3.x? Reproduce code: --------------- Here is the configuration line that works: #!/bin/sh ./configure \ --enable-gd-native-ttf \ --enable-mbregex \ --enable-mbstring \ --enable-ssl \ --enable-track-vars \ --with-apxs2=/usr/local/apache-2.0.55/bin/apxs \ --with-gdbm \ --with-imap \ --with-imap-ssl \ --with-kerberos \ --with-mysql=/usr/local/mysql \ --with-unixODBC=/usr/local/easysoft/unixODBC \ --with-pear-dir=/usr/local/lib/php \ --with-mcrypt \ --with-gd \ --with-gettext \ --with-iconv \ --with-openssl \ --with-ttf \ --with-xml \ --with-zlib \ --with-zlib-dir=/usr/lib \ --with-ldap=/usr/local/openldap-2.2.27 Here is the one that fails: #!/bin/sh ./configure \ --enable-gd-native-ttf \ --enable-mbregex \ --enable-mbstring \ --enable-ssl \ --enable-track-vars \ --with-apxs2=/usr/local/apache-2.0.55/bin/apxs \ --with-gdbm \ --with-imap \ --with-imap-ssl \ --with-kerberos \ --with-mysql=/usr/local/mysql \ --with-unixODBC=/usr/local/easysoft/unixODBC \ --with-pear-dir=/usr/local/lib/php \ --with-mcrypt \ --with-gd \ --with-gettext \ --with-iconv \ --with-openssl \ --with-ttf \ --with-xml \ --with-zlib \ --with-zlib-dir=/usr/lib \ --with-ldap=/usr/local/openldap-2.3.24 Expected result: ---------------- apachectl configtest Syntax OK Actual result: -------------- apachectl configtest Syntax OK /usr/local/apache/bin/apachectl: line 100: 5039 Segmentation fault $HTTPD -t -- Edit bug report at http://bugs.php.net/?id=38137&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38137&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38137&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38137&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38137&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38137&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38137&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38137&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38137&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38137&r=support Expected behavior: http://bugs.php.net/fix.php?id=38137&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38137&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38137&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38137&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38137&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38137&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38137&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38137&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38137&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38137&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38137&r=mysqlcfg