ID: 39749 Updated by: [EMAIL PROTECTED] Reported By: steve-php-dev at spamwiz dot com -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: CentOS 3 PHP Version: 5.2.0 New Comment:
It seems to me like an over-optimization bug by the compiler. Previous Comments: ------------------------------------------------------------------------ [2006-12-07 00:56:50] steve-php-dev at spamwiz dot com I have fixed the problem by changing the CFLAGS variable from "O3 -mmmx -march=i686 -mcpu=i686 -funroll-loops" to "-O3 -msse -mmmx -march=i686 -mcpu=pentium4 -mfpmath=sse -funroll-loops". I'm not sure how that helps, but it's the only thing that fixed it. The second one is the CFLAGS used by my other RPM build of apache+php. ------------------------------------------------------------------------ [2006-12-06 23:00:04] [EMAIL PROTECTED] Yes, I know. But this just means that with valgrind you should be able to see more. Run it this way: USE_ZEND_ALLOC=0 valgrind --tool=memcheck php <script.php> ------------------------------------------------------------------------ [2006-12-06 22:44:46] steve-php-dev at spamwiz dot com As I stated earlier, the problem does NOT happen if I enable debug. ------------------------------------------------------------------------ [2006-12-06 11:57:58] [EMAIL PROTECTED] Please try to get some more information using valgrind (and --enable-debug). ------------------------------------------------------------------------ [2006-12-06 00:09:24] steve-php-dev at spamwiz dot com The problem actually occurs on several different machines, whenever I use the RPM built with those configure options. I've tried it on a 2.4 GHz Celeron, a 1 GHz Duron, and a 2.66 GHz P4. Using my alternate RPM that has the other configure options, I don't see the problem. That's fortunate, because the one without the problem is the one on all of my production machines. The problem only happens on my monitoring machine. The problem does not happen in CLI, however the configure options are (yet again) different. I have three different CLI versions, and it works with all three. Here are their configure options: './configure' '--mandir=/usr/share/man' '--with-config-file-path=/etc/php' '--with-config-file-scan-dir=/etc/php/cli.d' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--with-zlib' '--enable-mbstring' '--with-openssl' '--disable-cgi' '--enable-pcntl' '--without-pear' '--enable-soap' '--with-rrdtool' '--with-snmp' '--with-gmp' '--without-spl' '--without-sqlite' '--without-pdo' './configure' '--mandir=/usr/share/man' '--with-config-file-path=/etc/php' '--with-config-file-scan-dir=/etc/php/cli.d' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--disable-cgi' '--enable-soap' '--with-readline' '--with-zlib' '--with-ldap' '--with-ncurses' '--with-imap' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-gmp' '--without-spl' '--without-sqlite' '--without-pdo' './configure' '--mandir=/usr/share/man' '--with-config-file-path=/etc/php' '--with-config-file-scan-dir=/etc/php/gd.d' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--with-zlib' '--enable-mbstring' '--with-openssl' '--disable-cgi' '--enable-pcntl' '--without-pear' '--enable-soap' '--with-gd' '--enable-gd-native-ttf' ------------------------------------------------------------------------ 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/39749 -- Edit this bug report at http://bugs.php.net/?id=39749&edit=1