From: jesuslarag at gmail dot com Operating system: Linux Debian etch PHP version: 5.2.6RC5 PHP Bug Type: Reproducible crash Bug description: PHP5 with mysqli fails with a segmentation fault (11)
Description: ------------ i try to compile php 5.2.3, 5.2.5 and 5.2.6rc5 my configure: ./configure \ --prefix=/usr/php --sysconfdir=/etc/php5/apache2 --mandir=/usr/share/man \ --with-apxs2=/usr/sbin/apxs \ --libexecdir=/usr/lib/php5 --bindir=/usr/bin --libdir=/usr/lib/php5 \ --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/conf.d \ --with-exec-dir=/usr/lib/php5/libexec --with-pear=/usr/share/php \ --enable-shared --with-gnu-ld --disable-inline-optimization \ --with-gd --disable-cgi --disable-ipv6 \ --disable-debug --with-curl --with-curlwrappers \ --enable-zip --with-bz2 --with-zlib \ --enable-bcmath --enable-calendar --enable-mbstring \ --with-libxml-dir=/usr --with-regex \ --with-pcre-regex=/usr --enable-exif --with-t1lib --with-xsl \ --with-mhash --with-mcrypt --enable-zend-multibyte \ --with-pspell --with-openssl --enable-sockets \ --enable-soap --enable-ftp --with-gd --with-ttf \ --enable-json --with-tidy --with-iconv --with-gettext \ --enable-gd-native-ttf --enable-gd-jis-conv --with-xmlrpc \ --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-sigchild \ --with-ldap --with-pgsql --with-sqlite \ --enable-pdo --with-pdo-mysql --with-pdo-sqlite \ --with-mysql --with-mysql-sock=/var/run/mysqld/mysqld.sock \ --with-mysqli=shared --with-mysqli=/usr/mysql/bin/mysql_config This sentence work in debian lenny and fedora core with mysql 5.1 (32bits) my system: Debian Etch (amd64) mySQL 5.1 But any application fails with a segmentation fault. It's not a problem with php5 classes, because wordpress 2.3 and joomla 1.4 also fail. when i remove --with-mysqli, failures do not occur Reproduce code: --------------- Any code with mysql/mysqli crash with this error: [notice] child pid 20330 exit signal Segmentation fault (11) optional, this error appears with --enable-debug: zend_mm_heap corrupted Run Wordpress, Joomla or any database application with mysql/mysqli. Actual result: -------------- In Debian Etch (64bits) any application that use mysql/mysqli crash with this error: zend_mm_heap corrupted and a signal segmentation fault (11) [notice] child pid 20330 exit signal Segmentation fault (11) with --enable-debug; dmesg returns: apache2[12415] general protection rip:2ad199d719cc rsp:417f6ba0 error:0 apache2[12492]: segfault at 0000000001b2c738 rip 00002ad19d60431f rsp 0000000040ff6f90 error 4 apache2[3586]: segfault at 0000000001b2c738 rip 00002ad19d60431f rsp 0000000040ff6f90 error 4 apache2[3583] trap stack segment rip:43b64a rsp:41000f00 error:0 apache2[3637] trap stack segment rip:43b64a rsp:41000f00 error:0 apache2[17782]: segfault at 00002ad19d1db000 rip 00002ad19d1db047 rsp 00007fff12579c88 error 7 -- Edit bug report at http://bugs.php.net/?id=44867&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44867&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44867&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44867&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44867&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44867&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44867&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44867&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44867&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44867&r=support Expected behavior: http://bugs.php.net/fix.php?id=44867&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44867&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44867&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44867&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44867&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44867&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44867&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44867&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44867&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44867&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44867&r=mysqlcfg