#47730 [Com]: PHP crashes when errorHandler throws Exception (GCC optimizer bug..?)
ID: 47730 Comment by: nogrogomed at mail dot ru Reported By: berblinger at krumedia dot de Status: Analyzed Bug Type: Reproducible crash Operating System: Linux PHP Version: 5.2.9 New Comment: Have this problem too with Zend Framework. FreeBSD delta.deserv.net 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Mar 19 02:46:19 UTC 2009 r...@iota.deserv.net:/usr/obj/usr/src/sys/RUWEB amd64 './configure' '--with-apxs' '--with-curl' '--with-expat-dir=/usr/local' '--with-freetype-dir' '--with-gd' '--with-gettext' '--with-gmp' '--with-jpeg-dir=/usr/local/lib' '--with-iconv' '--with-mysql=/usr/local/lib/' '--with-mysqli' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xsl' '--with-zlib' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-mbstring' '--enable-memory-limit' '--enable-soap' '--with-mhash' '--enable-sockets' '--enable-track-vars' '--disable-cgi' '--disable-mbregex' '--disable-posix' '--with-openssl' '--quiet' safe_mode = On Previous Comments: [2009-03-31 17:16:26] scott...@php.net This is a bug in the GCC 4.3 optimizer, A -O1 build works fine but a -O2 fails. Gentoo have an open bug for this http://bugs.gentoo.org/234177 The test that fails is Zend/tests/bug31177.phpt Maybe someone else with a better understanding of the optimizer can look at this. [2009-03-31 16:19:15] mk at krumedia dot de Scott, do you have any results or patches, already? [2009-03-26 16:17:01] scott...@php.net You can just drop me an email with the details. My public key is at http://whisky.macvicar.net/scott-public-key.txt [2009-03-26 16:04:25] berblinger at krumedia dot de I could manage to get you an account on a newly set up server, configured with nothing else that debian 5.0, PHP 5.2.9 and no other third party php extention for a maximum of 2 days on the upcoming friday. We just got two new servers at our computer center. Please tell me if you can take a look at the weekend (friday till sunday maximum) and how i should provide the account informations to you. Thanks in advance. [2009-03-25 14:03:05] tombt081981 at hotmail dot com This information might help: I got the bug with php 5.2.9 and(!) php 5.2.6 after(!) an upgrade to Bebian lenny 5.0. Before (debian 4) it worked fine, so this got to do something with Debian 5 and not especially with php 5.2.9. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/47730 -- Edit this bug report at http://bugs.php.net/?id=47730edit=1
#47730 [Com]: PHP crashes when errorHandler throws Exception
ID: 47730 Comment by: mk at krumedia dot de Reported By: berblinger at krumedia dot de Status: Feedback Bug Type: Reproducible crash Operating System: Linux PHP Version: 5.2.9 New Comment: Scott, do you have any results or patches, already? Previous Comments: [2009-03-26 16:17:01] scott...@php.net You can just drop me an email with the details. My public key is at http://whisky.macvicar.net/scott-public-key.txt [2009-03-26 16:04:25] berblinger at krumedia dot de I could manage to get you an account on a newly set up server, configured with nothing else that debian 5.0, PHP 5.2.9 and no other third party php extention for a maximum of 2 days on the upcoming friday. We just got two new servers at our computer center. Please tell me if you can take a look at the weekend (friday till sunday maximum) and how i should provide the account informations to you. Thanks in advance. [2009-03-25 14:03:05] tombt081981 at hotmail dot com This information might help: I got the bug with php 5.2.9 and(!) php 5.2.6 after(!) an upgrade to Bebian lenny 5.0. Before (debian 4) it worked fine, so this got to do something with Debian 5 and not especially with php 5.2.9. [2009-03-25 11:41:15] scott...@php.net Can you do ./configure --disable-all --enable-debug And run the script through valgrind as well as through gdb. If that fails then getting access to an account on the server might be the easiest solution. [2009-03-25 11:32:49] berblinger at krumedia dot de This segfault is also caused when any 3rd party modules are disabled. As already said, we got several servers with very similar hardware and OS ( including configuration ) and each of them makes PHP crash with this snippet. We recently upgraded from PHP 5.2.6 to PHP 5.2.9 and since this upgrade we noticed this segfault. Can i provide any other informations for you to help you fixing this bug? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/47730 -- Edit this bug report at http://bugs.php.net/?id=47730edit=1
#47730 [Com]: PHP crashes when errorHandler throws Exception
ID: 47730 Comment by: tombt081981 at hotmail dot com Reported By: berblinger at krumedia dot de Status: Feedback Bug Type: Reproducible crash Operating System: Linux PHP Version: 5.2.9 New Comment: This information might help: I got the bug with php 5.2.9 and(!) php 5.2.6 after(!) an upgrade to Bebian lenny 5.0. Before (debian 4) it worked fine, so this got to do something with Debian 5 and not especially with php 5.2.9. Previous Comments: [2009-03-25 11:41:15] scott...@php.net Can you do ./configure --disable-all --enable-debug And run the script through valgrind as well as through gdb. If that fails then getting access to an account on the server might be the easiest solution. [2009-03-25 11:32:49] berblinger at krumedia dot de This segfault is also caused when any 3rd party modules are disabled. As already said, we got several servers with very similar hardware and OS ( including configuration ) and each of them makes PHP crash with this snippet. We recently upgraded from PHP 5.2.6 to PHP 5.2.9 and since this upgrade we noticed this segfault. Can i provide any other informations for you to help you fixing this bug? [2009-03-23 15:51:15] tombt081981 at hotmail dot com I first just disabled XCache = still seg fault , so XCache can't be the reason Then i re-compiled with ./configure --disable-all = still seg fault # php -i System = myhostname 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009 x86_64 Build Date = Mar 23 2009 16:43:14 Configure Command = './configure' '--disable-all' Server API = Command Line Interface Virtual Directory Support = disabled Configuration File (php.ini) Path = /usr/local/lib Loaded Configuration File = /usr/local/lib/php-cli.ini Scan this dir for additional .ini files = (none) additional .ini files parsed = (none) PHP API = 20041225 PHP Extension = 20060613 Zend Extension = 220060519 Debug Build = no Thread Safety = disabled Zend Memory Manager = enabled IPv6 Support = enabled Registered PHP Streams = php, file, data, http, ftp Registered Stream Socket Transports = tcp, udp, unix, udg Registered Stream Filters = string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed #... [2009-03-23 15:27:39] scott...@php.net I can't reproduce this with 5.2.9 / 5.2.10-dev, can you try a build with everything disabled. Also make sure all third party modules are disabled like XCache. ./configure --disable-all # uname -a Linux whisky 2.6.18-xen #1 SMP Tue Feb 12 06:40:50 UTC 2008 x86_64 GNU/Linux # file sapi/cli/php sapi/cli/php: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped # sapi/cli/php -v PHP 5.2.9 (cli) (built: Mar 23 2009 14:13:12) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies [2009-03-23 15:11:42] tombt081981 at hotmail dot com I get this segmentation fault, too, on a Debian 5.0 with php 5.2.9. (i use XCache, maybe this is relevant?) The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/47730 -- Edit this bug report at http://bugs.php.net/?id=47730edit=1
#47730 [Com]: PHP crashes when errorHandler throws Exception
ID: 47730 Comment by: work at setor dot net Reported By: berblinger at krumedia dot de Status: Open Bug Type: Reproducible crash Operating System: Linux PHP Version: 5.2.9 New Comment: Have a same problem # uname -a Linux myhost 2.6.27.15-170.2.24.fc10.x86_64 #1 SMP Wed Feb 11 23:14:31 EST 2009 x86_64 x86_64 x86_64 GNU/Linux # php -v PHP 5.2.9 (cli) (built: Mar 23 2009 14:52:55) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies Configure Command './configure' '--prefix=/ox/kayako/php' '--enable-mbstring' '--with-curl' '--with-openssl' '--with-iconv' '--with-mysqli' '--with-gd' '--with-ttf' '--enable-dbase' '--enable-soap' '--with-apxs2=/ox/kayako/apache/bin/apxs' '--enable-fastcgi' '--enable-force-cgi-redirect' '--with-libdir=lib64' '--with-png-dir' '--with-jpeg-dir' '--with-mcrypt' '--with-freetype-dir=/usr/include/freetype2' '--with-zlib' '--with-imap' '--with-kerberos' '--with-imap-ssl' '--enable-cgi' '--enable-force-cgi-redirect' '--enable-discard-path' '--with-iconv' '--enable-shmop' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-sockets' '--with-bz2' '--with-gettext' '--enable-zip' '--enable-pcntl' '--with-readline' Previous Comments: [2009-03-23 11:58:47] berblinger at krumedia dot de i just tested the Segmentation Fault error on another machine with similar hardware and OS, the result was the same. - Segmentation fault caused. # cat debian_version 5.0 # uname -a Linux testserver.local 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009 x86_64 GNU/Linux # php -v PHP 5.2.9 (cli) (built: Mar 10 2009 04:26:53) Copyright (c) 1997-2009 The PHP Group Both servers are configured exactly with the same configure command. [2009-03-22 12:07:25] berblinger at krumedia dot de Configure Command './configure' '--with-apxs2=/usr/bin/apxs2' '--with-mysql=/usr/local/mysql' '--enable-soap' '--enable-bcmath' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/lib' '--with-xpm-dir=/usr/lib' '--with-freetype-dir=/usr/lib' '--with-t1lib=/usr/lib' '--with-ttf' '--enable-shmop' '--enable-sockets' '--enable-zip' '--with-zlib' '--with-mcrypt' '--enable-mbstring' The testing environment is running under Debian 5.0, (AMD 64bit core). I will test if the source will crash on another machine the next week, please be patient. I will provide any results as soon as possible. [2009-03-21 23:08:33] j...@php.net Also, what was the configure line used to compile PHP? [2009-03-21 23:07:28] j...@php.net I can't reproduce it on Linux 64-bit. Can you reproduce this on some other machine with same OS? [2009-03-21 11:03:15] berblinger at krumedia dot de It seems, that this crash is only reproducible under a Linux 64bit environment. I just tried to reproduce it using Vista x64 and PHP 5.2.9, but everything worked fine. Can i provide any further informations to help you fixing this problem? Please tell me, if there's anything i could do. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/47730 -- Edit this bug report at http://bugs.php.net/?id=47730edit=1
#47730 [Com]: PHP crashes when errorHandler throws Exception
ID: 47730 Comment by: tombt081981 at hotmail dot com Reported By: berblinger at krumedia dot de Status: Open Bug Type: Reproducible crash Operating System: Linux PHP Version: 5.2.9 New Comment: I get this segmentation fault, too, on a Debian 5.0 with php 5.2.9. (i use XCache, maybe this is relevant?) Previous Comments: [2009-03-23 13:10:22] work at setor dot net Have a same problem # uname -a Linux myhost 2.6.27.15-170.2.24.fc10.x86_64 #1 SMP Wed Feb 11 23:14:31 EST 2009 x86_64 x86_64 x86_64 GNU/Linux # php -v PHP 5.2.9 (cli) (built: Mar 23 2009 14:52:55) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies Configure Command './configure' '--prefix=/ox/kayako/php' '--enable-mbstring' '--with-curl' '--with-openssl' '--with-iconv' '--with-mysqli' '--with-gd' '--with-ttf' '--enable-dbase' '--enable-soap' '--with-apxs2=/ox/kayako/apache/bin/apxs' '--enable-fastcgi' '--enable-force-cgi-redirect' '--with-libdir=lib64' '--with-png-dir' '--with-jpeg-dir' '--with-mcrypt' '--with-freetype-dir=/usr/include/freetype2' '--with-zlib' '--with-imap' '--with-kerberos' '--with-imap-ssl' '--enable-cgi' '--enable-force-cgi-redirect' '--enable-discard-path' '--with-iconv' '--enable-shmop' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-sockets' '--with-bz2' '--with-gettext' '--enable-zip' '--enable-pcntl' '--with-readline' [2009-03-23 11:58:47] berblinger at krumedia dot de i just tested the Segmentation Fault error on another machine with similar hardware and OS, the result was the same. - Segmentation fault caused. # cat debian_version 5.0 # uname -a Linux testserver.local 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009 x86_64 GNU/Linux # php -v PHP 5.2.9 (cli) (built: Mar 10 2009 04:26:53) Copyright (c) 1997-2009 The PHP Group Both servers are configured exactly with the same configure command. [2009-03-22 12:07:25] berblinger at krumedia dot de Configure Command './configure' '--with-apxs2=/usr/bin/apxs2' '--with-mysql=/usr/local/mysql' '--enable-soap' '--enable-bcmath' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/lib' '--with-xpm-dir=/usr/lib' '--with-freetype-dir=/usr/lib' '--with-t1lib=/usr/lib' '--with-ttf' '--enable-shmop' '--enable-sockets' '--enable-zip' '--with-zlib' '--with-mcrypt' '--enable-mbstring' The testing environment is running under Debian 5.0, (AMD 64bit core). I will test if the source will crash on another machine the next week, please be patient. I will provide any results as soon as possible. [2009-03-21 23:08:33] j...@php.net Also, what was the configure line used to compile PHP? [2009-03-21 23:07:28] j...@php.net I can't reproduce it on Linux 64-bit. Can you reproduce this on some other machine with same OS? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/47730 -- Edit this bug report at http://bugs.php.net/?id=47730edit=1
#47730 [Com]: PHP crashes when errorHandler throws Exception
ID: 47730 Comment by: tombt081981 at hotmail dot com Reported By: berblinger at krumedia dot de Status: Feedback Bug Type: Reproducible crash Operating System: Linux PHP Version: 5.2.9 New Comment: I first just disabled XCache = still seg fault , so XCache can't be the reason Then i re-compiled with ./configure --disable-all = still seg fault # php -i System = myhostname 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009 x86_64 Build Date = Mar 23 2009 16:43:14 Configure Command = './configure' '--disable-all' Server API = Command Line Interface Virtual Directory Support = disabled Configuration File (php.ini) Path = /usr/local/lib Loaded Configuration File = /usr/local/lib/php-cli.ini Scan this dir for additional .ini files = (none) additional .ini files parsed = (none) PHP API = 20041225 PHP Extension = 20060613 Zend Extension = 220060519 Debug Build = no Thread Safety = disabled Zend Memory Manager = enabled IPv6 Support = enabled Registered PHP Streams = php, file, data, http, ftp Registered Stream Socket Transports = tcp, udp, unix, udg Registered Stream Filters = string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed #... Previous Comments: [2009-03-23 15:27:39] scott...@php.net I can't reproduce this with 5.2.9 / 5.2.10-dev, can you try a build with everything disabled. Also make sure all third party modules are disabled like XCache. ./configure --disable-all # uname -a Linux whisky 2.6.18-xen #1 SMP Tue Feb 12 06:40:50 UTC 2008 x86_64 GNU/Linux # file sapi/cli/php sapi/cli/php: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped # sapi/cli/php -v PHP 5.2.9 (cli) (built: Mar 23 2009 14:13:12) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies [2009-03-23 15:11:42] tombt081981 at hotmail dot com I get this segmentation fault, too, on a Debian 5.0 with php 5.2.9. (i use XCache, maybe this is relevant?) [2009-03-23 13:10:22] work at setor dot net Have a same problem # uname -a Linux myhost 2.6.27.15-170.2.24.fc10.x86_64 #1 SMP Wed Feb 11 23:14:31 EST 2009 x86_64 x86_64 x86_64 GNU/Linux # php -v PHP 5.2.9 (cli) (built: Mar 23 2009 14:52:55) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies Configure Command './configure' '--prefix=/ox/kayako/php' '--enable-mbstring' '--with-curl' '--with-openssl' '--with-iconv' '--with-mysqli' '--with-gd' '--with-ttf' '--enable-dbase' '--enable-soap' '--with-apxs2=/ox/kayako/apache/bin/apxs' '--enable-fastcgi' '--enable-force-cgi-redirect' '--with-libdir=lib64' '--with-png-dir' '--with-jpeg-dir' '--with-mcrypt' '--with-freetype-dir=/usr/include/freetype2' '--with-zlib' '--with-imap' '--with-kerberos' '--with-imap-ssl' '--enable-cgi' '--enable-force-cgi-redirect' '--enable-discard-path' '--with-iconv' '--enable-shmop' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-sockets' '--with-bz2' '--with-gettext' '--enable-zip' '--enable-pcntl' '--with-readline' [2009-03-23 11:58:47] berblinger at krumedia dot de i just tested the Segmentation Fault error on another machine with similar hardware and OS, the result was the same. - Segmentation fault caused. # cat debian_version 5.0 # uname -a Linux testserver.local 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009 x86_64 GNU/Linux # php -v PHP 5.2.9 (cli) (built: Mar 10 2009 04:26:53) Copyright (c) 1997-2009 The PHP Group Both servers are configured exactly with the same configure command. [2009-03-22 12:07:25] berblinger at krumedia dot de Configure Command './configure' '--with-apxs2=/usr/bin/apxs2' '--with-mysql=/usr/local/mysql' '--enable-soap' '--enable-bcmath' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/lib' '--with-xpm-dir=/usr/lib' '--with-freetype-dir=/usr/lib' '--with-t1lib=/usr/lib' '--with-ttf' '--enable-shmop' '--enable-sockets' '--enable-zip' '--with-zlib' '--with-mcrypt' '--enable-mbstring' The testing environment is running under Debian 5.0, (AMD 64bit core). I will test if the source will crash on another machine the next week, please be patient. I will provide any results as soon as possible. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/47730 -- Edit this bug report at http://bugs.php.net/?id=47730edit=1