#37301 [Csd]: segmentation fault in PEAR-environment
ID: 37301 User updated by: sebastian dot harnau at gmx dot de Reported By: sebastian dot harnau at gmx dot de Status: Closed Bug Type: Reproducible crash Operating System: SuSE Linux 9.2 PHP Version: 5.1.3 New Comment: I compiled PHP 5.1.4 without SNMP and suddenly PEAR works perfectly... Previous Comments: [2006-05-05 05:34:40] sebastian dot harnau at gmx dot de I tried PHP 5.1.2 and got the error, too... it seems to be that the problem is caused by system. Thanks for your help! [2006-05-04 13:53:41] [EMAIL PROTECTED] Yes, please try with 5.1.2. But the backtrace clearly shows that the problem is caused by the system. [2006-05-04 08:24:09] sebastian dot harnau at gmx dot de The last backtrace was with option "--enable-debug". I will try to run "pear"-command manually to be sure that the backtrace is showing the right thing... Is the generating of the backtrace correct? The help page shows only the process when error is with php driven by apache... I also can try to compile PHP 5.1.2 to be shure that it is a php problem and not a system problem... [2006-05-04 07:49:18] [EMAIL PROTECTED] Doesn't look lika PHP problem. Could you configure PHP with --enable-debug and try again? ---- [2006-05-04 07:31:23] sebastian dot harnau at gmx dot de alster:/usr/local/src/php5.1-200605031830 # gdb /usr/bin/php core GNU gdb 6.2.1 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". Core was generated by `/usr/local/src/php5.1-200605031830/ sapi/cli/php -n -dshort_open_tag=0 -dsafe_mo'. Program terminated with signal 11, Segmentation fault. warning: current_sos: Can't read pathname for load map: Input/output error Reading symbols from /lib/libcrypt.so.1...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /usr/lib/libmhash.so.2...done. Loaded symbols for /usr/lib/libmhash.so.2 Reading symbols from /usr/lib/libmcrypt.so.4...done. Loaded symbols for /usr/lib/libmcrypt.so.4 Reading symbols from /usr/lib/libltdl.so.3...done. Loaded symbols for /usr/lib/libltdl.so.3 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /usr/lib/libldap-2.2.so.7...done. Loaded symbols for /usr/lib/libldap-2.2.so.7 Reading symbols from /usr/lib/libsasl2.so.2...done. Loaded symbols for /usr/lib/libsasl2.so.2 Reading symbols from /usr/lib/libssl.so.0.9.7...done. Loaded symbols for /usr/lib/libssl.so.0.9.7 Reading symbols from /usr/lib/libcrypto.so.0.9.7...done. Loaded symbols for /usr/lib/libcrypto.so.0.9.7 Reading symbols from /usr/lib/liblber-2.2.so.7...done. Loaded symbols for /usr/lib/liblber-2.2.so.7 Reading symbols from /usr/lib/libgmp.so.3...done. Loaded symbols for /usr/lib/libgmp.so.3 Reading symbols from /usr/local/lib/libt1.so.5...done. Loaded symbols for /usr/local/lib/libt1.so.5 Reading symbols from /usr/lib/libfreetype.so.6...done. Loaded symbols for /usr/lib/libfreetype.so.6 Reading symbols from /usr/X11R6/lib/libX11.so.6...done. Loaded symbols for /usr/X11R6/lib/libX11.so.6 Reading symbols from /usr/X11R6/lib/libXpm.so.4...done. Loaded symbols for /usr/X11R6/lib/libXpm.so.4 Reading symbols from /usr/lib/libpng.so.3...done. Loaded symbols for /usr/lib/libpng.so.3 Reading symbols from /usr/lib/libjpeg.so.62...done. Loaded symbols for /usr/lib/libjpeg.so.62 Reading symbols from /usr/lib/libgdbm.so.3...done. Loaded symbols for /usr/lib/libgdbm.so.3 Reading symbols from /usr/lib/libgdbm_compat.so.3...done. Loaded symbols for /usr/lib/libgdbm_compat.so.3 Reading symbols from /usr/lib/libbz2.so.1...done. Loaded symbols for /usr/lib/libbz2.so.1 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /lib/tls/libm.so.6...done. Loaded symbols for /lib/tls/libm.so.6 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /usr/lib/libcurl.so.3...done. Loaded symbols for /usr/lib/libcurl.so.3 Reading symbols from /lib/tls/libpthread.so.0...done. Loaded symbols for /lib/tls/libpthread.so.0 Reading symbols from /usr/lib/libnetsnmp.so.5...done. Loaded symbols for /usr/lib/libnetsnmp.so.5 Reading symbols from /us
#37301 [Fbk->Csd]: segmentation fault in PEAR-environment
ID: 37301 User updated by: sebastian dot harnau at gmx dot de Reported By: sebastian dot harnau at gmx dot de -Status: Feedback +Status: Closed Bug Type: Reproducible crash Operating System: SuSE Linux 9.2 PHP Version: 5.1.3 New Comment: I tried PHP 5.1.2 and got the error, too... it seems to be that the problem is caused by system. Thanks for your help! Previous Comments: [2006-05-04 13:53:41] [EMAIL PROTECTED] Yes, please try with 5.1.2. But the backtrace clearly shows that the problem is caused by the system. [2006-05-04 08:24:09] sebastian dot harnau at gmx dot de The last backtrace was with option "--enable-debug". I will try to run "pear"-command manually to be sure that the backtrace is showing the right thing... Is the generating of the backtrace correct? The help page shows only the process when error is with php driven by apache... I also can try to compile PHP 5.1.2 to be shure that it is a php problem and not a system problem... [2006-05-04 07:49:18] [EMAIL PROTECTED] Doesn't look lika PHP problem. Could you configure PHP with --enable-debug and try again? ---- [2006-05-04 07:31:23] sebastian dot harnau at gmx dot de alster:/usr/local/src/php5.1-200605031830 # gdb /usr/bin/php core GNU gdb 6.2.1 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". Core was generated by `/usr/local/src/php5.1-200605031830/ sapi/cli/php -n -dshort_open_tag=0 -dsafe_mo'. Program terminated with signal 11, Segmentation fault. warning: current_sos: Can't read pathname for load map: Input/output error Reading symbols from /lib/libcrypt.so.1...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /usr/lib/libmhash.so.2...done. Loaded symbols for /usr/lib/libmhash.so.2 Reading symbols from /usr/lib/libmcrypt.so.4...done. Loaded symbols for /usr/lib/libmcrypt.so.4 Reading symbols from /usr/lib/libltdl.so.3...done. Loaded symbols for /usr/lib/libltdl.so.3 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /usr/lib/libldap-2.2.so.7...done. Loaded symbols for /usr/lib/libldap-2.2.so.7 Reading symbols from /usr/lib/libsasl2.so.2...done. Loaded symbols for /usr/lib/libsasl2.so.2 Reading symbols from /usr/lib/libssl.so.0.9.7...done. Loaded symbols for /usr/lib/libssl.so.0.9.7 Reading symbols from /usr/lib/libcrypto.so.0.9.7...done. Loaded symbols for /usr/lib/libcrypto.so.0.9.7 Reading symbols from /usr/lib/liblber-2.2.so.7...done. Loaded symbols for /usr/lib/liblber-2.2.so.7 Reading symbols from /usr/lib/libgmp.so.3...done. Loaded symbols for /usr/lib/libgmp.so.3 Reading symbols from /usr/local/lib/libt1.so.5...done. Loaded symbols for /usr/local/lib/libt1.so.5 Reading symbols from /usr/lib/libfreetype.so.6...done. Loaded symbols for /usr/lib/libfreetype.so.6 Reading symbols from /usr/X11R6/lib/libX11.so.6...done. Loaded symbols for /usr/X11R6/lib/libX11.so.6 Reading symbols from /usr/X11R6/lib/libXpm.so.4...done. Loaded symbols for /usr/X11R6/lib/libXpm.so.4 Reading symbols from /usr/lib/libpng.so.3...done. Loaded symbols for /usr/lib/libpng.so.3 Reading symbols from /usr/lib/libjpeg.so.62...done. Loaded symbols for /usr/lib/libjpeg.so.62 Reading symbols from /usr/lib/libgdbm.so.3...done. Loaded symbols for /usr/lib/libgdbm.so.3 Reading symbols from /usr/lib/libgdbm_compat.so.3...done. Loaded symbols for /usr/lib/libgdbm_compat.so.3 Reading symbols from /usr/lib/libbz2.so.1...done. Loaded symbols for /usr/lib/libbz2.so.1 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /lib/tls/libm.so.6...done. Loaded symbols for /lib/tls/libm.so.6 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /usr/lib/libcurl.so.3...done. Loaded symbols for /usr/lib/libcurl.so.3 Reading symbols from /lib/tls/libpthread.so.0...done. Loaded symbols for /lib/tls/libpthread.so.0 Reading symbols from /usr/lib/libnetsnmp.so.5...done. Loaded symbols for /usr/lib/libnetsnmp.so.5 Reading symbols from /usr/lib/libxml2.so.2...done. Loaded symbols for /usr/lib/libxml2.so.2 Reading symbols from /lib/tls/libc.so.6...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols fr
#37301 [Fbk->Opn]: segmentation fault in PEAR-environment
ID: 37301 User updated by: sebastian dot harnau at gmx dot de Reported By: sebastian dot harnau at gmx dot de -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: SuSE Linux 9.2 PHP Version: 5.1.3 New Comment: The last backtrace was with option "--enable-debug". I will try to run "pear"-command manually to be sure that the backtrace is showing the right thing... Is the generating of the backtrace correct? The help page shows only the process when error is with php driven by apache... I also can try to compile PHP 5.1.2 to be shure that it is a php problem and not a system problem... Previous Comments: [2006-05-04 07:49:18] [EMAIL PROTECTED] Doesn't look lika PHP problem. Could you configure PHP with --enable-debug and try again? ---- [2006-05-04 07:31:23] sebastian dot harnau at gmx dot de alster:/usr/local/src/php5.1-200605031830 # gdb /usr/bin/php core GNU gdb 6.2.1 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". Core was generated by `/usr/local/src/php5.1-200605031830/ sapi/cli/php -n -dshort_open_tag=0 -dsafe_mo'. Program terminated with signal 11, Segmentation fault. warning: current_sos: Can't read pathname for load map: Input/output error Reading symbols from /lib/libcrypt.so.1...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /usr/lib/libmhash.so.2...done. Loaded symbols for /usr/lib/libmhash.so.2 Reading symbols from /usr/lib/libmcrypt.so.4...done. Loaded symbols for /usr/lib/libmcrypt.so.4 Reading symbols from /usr/lib/libltdl.so.3...done. Loaded symbols for /usr/lib/libltdl.so.3 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /usr/lib/libldap-2.2.so.7...done. Loaded symbols for /usr/lib/libldap-2.2.so.7 Reading symbols from /usr/lib/libsasl2.so.2...done. Loaded symbols for /usr/lib/libsasl2.so.2 Reading symbols from /usr/lib/libssl.so.0.9.7...done. Loaded symbols for /usr/lib/libssl.so.0.9.7 Reading symbols from /usr/lib/libcrypto.so.0.9.7...done. Loaded symbols for /usr/lib/libcrypto.so.0.9.7 Reading symbols from /usr/lib/liblber-2.2.so.7...done. Loaded symbols for /usr/lib/liblber-2.2.so.7 Reading symbols from /usr/lib/libgmp.so.3...done. Loaded symbols for /usr/lib/libgmp.so.3 Reading symbols from /usr/local/lib/libt1.so.5...done. Loaded symbols for /usr/local/lib/libt1.so.5 Reading symbols from /usr/lib/libfreetype.so.6...done. Loaded symbols for /usr/lib/libfreetype.so.6 Reading symbols from /usr/X11R6/lib/libX11.so.6...done. Loaded symbols for /usr/X11R6/lib/libX11.so.6 Reading symbols from /usr/X11R6/lib/libXpm.so.4...done. Loaded symbols for /usr/X11R6/lib/libXpm.so.4 Reading symbols from /usr/lib/libpng.so.3...done. Loaded symbols for /usr/lib/libpng.so.3 Reading symbols from /usr/lib/libjpeg.so.62...done. Loaded symbols for /usr/lib/libjpeg.so.62 Reading symbols from /usr/lib/libgdbm.so.3...done. Loaded symbols for /usr/lib/libgdbm.so.3 Reading symbols from /usr/lib/libgdbm_compat.so.3...done. Loaded symbols for /usr/lib/libgdbm_compat.so.3 Reading symbols from /usr/lib/libbz2.so.1...done. Loaded symbols for /usr/lib/libbz2.so.1 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /lib/tls/libm.so.6...done. Loaded symbols for /lib/tls/libm.so.6 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /usr/lib/libcurl.so.3...done. Loaded symbols for /usr/lib/libcurl.so.3 Reading symbols from /lib/tls/libpthread.so.0...done. Loaded symbols for /lib/tls/libpthread.so.0 Reading symbols from /usr/lib/libnetsnmp.so.5...done. Loaded symbols for /usr/lib/libnetsnmp.so.5 Reading symbols from /usr/lib/libxml2.so.2...done. Loaded symbols for /usr/lib/libxml2.so.2 Reading symbols from /lib/tls/libc.so.6...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/X11R6/lib/libXext.so.6...done. Loaded symbols for /usr/X11R6/lib/libXext.so.6 Reading symbols from /lib/libz.so.1...done. Loaded symbols for /lib/libz.so.1 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 #0 0x0881a079 in ?? () (gdb) bt #0 0x0881a079 in ?? () #1 0x401fea62 in EVP_DigestInit_ex () from /usr/lib/ libcrypto.so.0.9.7 #
#37301 [Fbk->Opn]: segmentation fault in PEAR-environment
ID: 37301 User updated by: sebastian dot harnau at gmx dot de Reported By: sebastian dot harnau at gmx dot de -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: SuSE Linux 9.2 PHP Version: 5.1.3 New Comment: alster:/usr/local/src/php5.1-200605031830 # gdb /usr/bin/php core GNU gdb 6.2.1 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". Core was generated by `/usr/local/src/php5.1-200605031830/ sapi/cli/php -n -dshort_open_tag=0 -dsafe_mo'. Program terminated with signal 11, Segmentation fault. warning: current_sos: Can't read pathname for load map: Input/output error Reading symbols from /lib/libcrypt.so.1...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /usr/lib/libmhash.so.2...done. Loaded symbols for /usr/lib/libmhash.so.2 Reading symbols from /usr/lib/libmcrypt.so.4...done. Loaded symbols for /usr/lib/libmcrypt.so.4 Reading symbols from /usr/lib/libltdl.so.3...done. Loaded symbols for /usr/lib/libltdl.so.3 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /usr/lib/libldap-2.2.so.7...done. Loaded symbols for /usr/lib/libldap-2.2.so.7 Reading symbols from /usr/lib/libsasl2.so.2...done. Loaded symbols for /usr/lib/libsasl2.so.2 Reading symbols from /usr/lib/libssl.so.0.9.7...done. Loaded symbols for /usr/lib/libssl.so.0.9.7 Reading symbols from /usr/lib/libcrypto.so.0.9.7...done. Loaded symbols for /usr/lib/libcrypto.so.0.9.7 Reading symbols from /usr/lib/liblber-2.2.so.7...done. Loaded symbols for /usr/lib/liblber-2.2.so.7 Reading symbols from /usr/lib/libgmp.so.3...done. Loaded symbols for /usr/lib/libgmp.so.3 Reading symbols from /usr/local/lib/libt1.so.5...done. Loaded symbols for /usr/local/lib/libt1.so.5 Reading symbols from /usr/lib/libfreetype.so.6...done. Loaded symbols for /usr/lib/libfreetype.so.6 Reading symbols from /usr/X11R6/lib/libX11.so.6...done. Loaded symbols for /usr/X11R6/lib/libX11.so.6 Reading symbols from /usr/X11R6/lib/libXpm.so.4...done. Loaded symbols for /usr/X11R6/lib/libXpm.so.4 Reading symbols from /usr/lib/libpng.so.3...done. Loaded symbols for /usr/lib/libpng.so.3 Reading symbols from /usr/lib/libjpeg.so.62...done. Loaded symbols for /usr/lib/libjpeg.so.62 Reading symbols from /usr/lib/libgdbm.so.3...done. Loaded symbols for /usr/lib/libgdbm.so.3 Reading symbols from /usr/lib/libgdbm_compat.so.3...done. Loaded symbols for /usr/lib/libgdbm_compat.so.3 Reading symbols from /usr/lib/libbz2.so.1...done. Loaded symbols for /usr/lib/libbz2.so.1 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /lib/tls/libm.so.6...done. Loaded symbols for /lib/tls/libm.so.6 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /usr/lib/libcurl.so.3...done. Loaded symbols for /usr/lib/libcurl.so.3 Reading symbols from /lib/tls/libpthread.so.0...done. Loaded symbols for /lib/tls/libpthread.so.0 Reading symbols from /usr/lib/libnetsnmp.so.5...done. Loaded symbols for /usr/lib/libnetsnmp.so.5 Reading symbols from /usr/lib/libxml2.so.2...done. Loaded symbols for /usr/lib/libxml2.so.2 Reading symbols from /lib/tls/libc.so.6...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/X11R6/lib/libXext.so.6...done. Loaded symbols for /usr/X11R6/lib/libXext.so.6 Reading symbols from /lib/libz.so.1...done. Loaded symbols for /lib/libz.so.1 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 #0 0x0881a079 in ?? () (gdb) bt #0 0x0881a079 in ?? () #1 0x401fea62 in EVP_DigestInit_ex () from /usr/lib/ libcrypto.so.0.9.7 #2 0xbfffd1a0 in ?? () #3 0x402112a1 in rcon () from /usr/lib/libcrypto.so.0.9.7 #4 0x00ca in ?? () #5 0x in ?? () #6 0x4052d970 in ?? () from /usr/lib/libnetsnmp.so.5 #7 0x405ac3b4 in ?? () from /usr/lib/libnetsnmp.so.5 #8 0x0017 in ?? () #9 0x4021c3bc in ?? () from /usr/lib/libcrypto.so.0.9.7 #10 0xbfffd1a0 in ?? () #11 0xbfffd1b0 in ?? () #12 0xbfffd1c8 in ?? () #13 0x401bcb32 in EVP_DigestInit () from /usr/lib/ libcrypto.so.0.9.7 #14 0x in ?? () #15 0x in ?? () #16 0x401bcb00 in EVP_DigestFinal () from /usr/lib/ libcrypto.so.0.9.7 #17 0xbfffd1a0 in ?? () #18 0x088196c0 in ?? () #19 0x0871de38 in optind@@GLIBC_2.0 () #20 0x000a in ?? () #21 0xbfffd1b0 in ?? () #22 0x4000cc26 in fixup () from /lib/ld-linux.so.2 #
#37301 [NEW]: segmentation fault in PEAR-environment
From: sebastian dot harnau at gmx dot de Operating system: SuSE Linux 9.2 PHP version: 5.1.3 PHP Bug Type: Reproducible crash Bug description: segmentation fault in PEAR-environment Description: After compiling PHP 5.1.3 or PHP 5.2.0dev without any problems there is a problem with "make install" concerning the part of PEAR Installation. I don't know, if this problem is caused by PHP >5.1.2 or by PEAR, but PEAR does not to know the newest version in the bug tracking tool. And of course the problem is caused by PHP Installation. The configure-string: './configure' '--prefix=/usr/share' '--datadir=/usr/share/ php' '--bindir=/usr/bin' '--libdir=/usr/share' '-- includedir=/usr/include' '--sysconfdir=/etc' '--with- _lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/ usr/lib/php/bin' '--disable-debug' '--enable-bcmath' '-- enable-calendar' '--enable-ctype' '--enable-dbase' '-- enable-discard-path' '--enable-exif' '--enable-filepro' '-- enable-force-cgi-redirect' '--enable-ftp' '--enable-gd- imgstrttf' '--enable-gd-native-ttf' '--enable-inline- optimization' '--enable-magic-quotes' '--enable-mbstr-enc- trans' '--enable-mbstring' '--enable-mbregex' '--enable- memory-limit' '--enable-safe-mode' '--enable-shmop' '-- enable-sigchild' '--enable-sysvsem' '--enable-sysvshm' '-- enable-track-vars' '--enable-trans-sid' '--enable- versioning' '--enable-wddx' '--enable-yp' '--with-bz2' '-- with-dom=/usr/include/libxml2' '--with-ftp' '--with-gdbm' '--with-gettext' '--with-gmp' '--with-imap-dir=/usr/local/ src/imap-2004g/c-client' '--with-jpeg-dir=/usr' '--with- ldap=yes' '--with-mcal=/usr' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--with-ndbm' '--with-png-dir=/usr' '--with-snmp' '--with- t1lib' '--with-tiff-dir=/usr' '--with-ttf' '--with-freetype- dir=yes' '--with-xml' '--with-xpm-dir=/usr/X11R6' '--with- zlib=yes' '--with-gd' '--with-openssl' '--with-curl' '-- with-imap-ssl' '--enable-xslt' '--with-xslt-sablot' '--with- iconv' '--with-apxs2=/usr/sbin/apxs2-worker' 'i586-suse- linux' '--enable-sockets' phpinfo.php: http://alster080.server4you.de/phpinfo.php Reproduce code: --- alster:/usr/local/src/php5.1-200605031830 # make install Installing PHP SAPI module: apache2handler /usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apache2/build/libtool' libphp5.la /usr/lib/apache2-worker /usr/share/apache2/build/libtool --mode=install cp libphp5.la /usr/lib/apache2-worker/ cp .libs/libphp5.so /usr/lib/apache2-worker/libphp5.so cp .libs/libphp5.lai /usr/lib/apache2-worker/libphp5.la libtool: install: warning: remember to run `libtool --finish /usr/local/src/php5.1-200605031830/libs' chmod 755 /usr/lib/apache2-worker/libphp5.so [activating module `php5' in /etc/apache2/httpd2-worker.conf] Installing PHP CLI binary:/usr/bin/ Installing PHP CLI man page: /usr/share/man/man1/ Installing build environment: /usr/share/build/ Installing header files: /usr/include/php/ Installing helper programs: /usr/bin/ program: phpize program: php-config Installing man pages: /usr/share/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/share/php/ --22:14:11-- http://pear.php.net/install-pear-nozlib.phar => `pear/install-pear-nozlib.phar' Resolving pear.php.net... 216.92.131.66 Connecting to pear.php.net|216.92.131.66|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3,167,908 (3.0M) [text/plain] 100%[>] 3,167,908303.55K/sETA 00:00 22:14:22 (294.21 KB/s) - `pear/install-pear-nozlib.phar' saved [3167908/3167908] make[1]: *** [install-pear-installer] Segmentation fault make: *** [install-pear] Error 2 Actual result: -- result of "make install -p --debug": http://publ-iz-ity.de/ install.log -- Edit bug report at http://bugs.php.net/?id=37301&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37301&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37301&r=trysnapshot51 Try a CVS s
#35056 [Com]: Apache2 child crashes if ErrorDocument is PHP script
ID: 35056 Comment by: sebastian dot harnau at gmx dot de Reported By: margus at zone dot ee Status: Open Bug Type: Reproducible crash Operating System: SuSE Linux 9.0 PHP Version: 4.4.1RC1 New Comment: Same Problem here (SuSE 9.2), Solution works for me, too! Previous Comments: [2005-11-01 20:25:57] margus at zone dot ee Description: I have PHP compiled as apache2handler SAPI and using ErrorDocument, which points to an PHP script. If this ErrorDocument is triggered, then apache child crashes. It must be connected with the bug #33987 and as ironic it is, PHP 4.4.1 Changelog claims, that #33987 is fixed. Bug #33987 is actually reported against PHP5.1 and not against 4.4.0. PHP 4.4.0 works fine with ErrorDocuments. - I looked into the apache2handler source (sapi/apache2handler/sapi_apache2.c) and after debugging it was clear, that crash happens on line (538): if (parent_req && strcmp(parent_req->handler, PHP_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SOURCE_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SCRIPT)) { If changed to this: if (parent_req && parent_req->handler && strcmp(parent_req->handler, PHP_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SOURCE_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SCRIPT)) { then everything's fine and works. The correct extra check is present in 5.1.0 (but for some odd reason not in 4.4.1 and 5.0.5). Reproduce code: --- .htaccess - ErrorDocument 404 /error.php?status=404 /error.php - die( "File Not Found!" ); Expected result: File Not Found! Actual result: -- Apache2 crashes. -- Edit this bug report at http://bugs.php.net/?id=35056&edit=1