From: tilman dot giese at gmx dot de Operating system: Linux PHP version: 4.3.2 PHP Bug Type: Reproducible crash Bug description: Segmentation fault in efree
Description: ------------ I recently changed my Apache 2.0.47 to use the worker MPM instead of the prefork MPM. I compiled PHP like described below and realized that using phpMyAdmin very often caused my httpd to crash. A gdb backtrace shows that a segmentation fault in _efree is the reason. Same problem with 4.3.3RC1 but as I said, I assume that changing the Apache MPM and thus compiling PHP with thread safety is the real reason. When producing the crash only the mysql extension is loaded. Below is the output as generated by running 'make test': OS: Linux Automake: automake (GNU automake) 1.7.2 Written by Tom Tromey <[EMAIL PROTECTED]>. Copyright 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Autoconf: autoconf (GNU Autoconf) 2.57 Written by David J. MacKenzie and Akim Demaille. Copyright 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Libtool: ltmain.sh (GNU libtool) 1.4.3 (1.922.2.110 2002/10/23 01:39:54) Compiler: Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3/specs Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux Thread model: posix gcc version 3.3 (SuSE Linux) Bison: bison (GNU Bison) 1.75 Written by Robert Corbett and Richard Stallman. Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Libraries: libcrypt.so.1 => /lib/libcrypt.so.1 (0x40024000) libnsl.so.1 => /lib/libnsl.so.1 (0x40055000) libpam.so.0 => /lib/libpam.so.0 (0x4006a000) libz.so.1 => /lib/libz.so.1 (0x40072000) libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x40082000) libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x400b2000) libresolv.so.2 => /lib/libresolv.so.2 (0x40189000) libm.so.6 => /lib/libm.so.6 (0x4019b000) libdl.so.2 => /lib/libdl.so.2 (0x401bd000) libpthread.so.0 => /lib/libpthread.so.0 (0x401c0000) libc.so.6 => /lib/libc.so.6 (0x40211000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) ================================================================================ PHPINFO ================================================================================ phpinfo() PHP Version => 4.3.2 System => Linux nefertari 2.4.21-4-athlon #1 Fri Jul 4 11:17:40 UTC 2003 i686 Build Date => Jul 22 2003 12:26:03 Configure Command => './configure' '--prefix=/usr' '--mandir=/usr/share/man' '--with-apxs2' '--with-config-file-path=/etc' '--without-pear' '--enable-bcmath' '--enable-calendar' '--enable-dba=shared' '--enable-dbase' '--enable-dbx' '--enable-dio' '--enable-exif' '--enable-filepro' '--enable-ftp' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--enable-magic-quotes' '--enable-mbregex' '--enable-mbstring' '--enable-shmop' '--enable-sigchild' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-ucd-snmp-hack' '--enable-wddx' '--enable-xslt=shared' '--enable-yp' '--enable-zend-multibyte' '--with-bz2=shared' '--with-curl=shared' '--with-cyrus=shared' '--with-db4' '--with-dbm' '--with-dom=shared' '--with-dom-xslt' '--with-dom-exslt' '--with-flatfile' '--with-freetype-dir=/usr' '--with-fribidi=shared' '--with-gdbm' '--with-gd=shared' '--with-gettext=shared' '--with-gmp=shared' '--with-gnu-ld' '--with-hyperwave' '--with-iconv=shared' '--with-imap=shared' '--with-imap-ssl' '--with-java=shared' '--with-ldap=shared' '--with-mcal=shared,/usr' '--with-mcrypt=shared' '--with-mhash=shared' '--with-mime-magic' '--with-mysql=shared,/usr' '--with-ncurses=shared' '--with-ndbm' '--with-openssl' '--with-pgsql=shared' '--with-pic' '--with-qtdom=shared,/usr/lib/qt3' '--with-readline=shared' '--with-recode=shared' '--with-snmp=shared' '--with-t1lib' '--with-ttf' '--with-unixODBC=shared' '--with-xslt-sablot' '--with-zlib' Server API => Command Line Interface Virtual Directory Support => enabled Configuration File (php.ini) Path => /etc/php.ini PHP API => 20020918 PHP Extension => 20020429 Zend Extension => 20021010 Debug Build => no Thread Safety => enabled Registered PHP Streams => php, http, ftp, https, ftps, compress.zlib Reproduce code: --------------- I do not really know how to reproduce the segmentation fault but it occurs very often (but not always) when using phpMyAdmin which is up to now the only thing I am using. But I can provide further information on what can exactly cause the crash if you are interested. Expected result: ---------------- Apache starts another (and maybe another) process (thread?) and one of this processes (threads?) does do not get a segmentation fault and responses. -- Edit bug report at http://bugs.php.net/?id=24792&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24792&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24792&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24792&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24792&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24792&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24792&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24792&r=support Expected behavior: http://bugs.php.net/fix.php?id=24792&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24792&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24792&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24792&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24792&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24792&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24792&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24792&r=gnused