PHP 4.0 Bug #9106 Updated: Floating Point and Arithmetic Exception crashes

From: Date: Mon, 05 Feb 2001 22:13:49 +0000
Subject: PHP 4.0 Bug #9106 Updated: Floating Point and Arithmetic Exception crashes
Groups: php.dev 
Request: Send a blank email to php-dev+get-45814@lists.php.net to get a copy of this message
ID: 9106 User Update by: aaron-php@mutex.org Status: Open Bug Type: Reproduceable crash Description: Floating Point and Arithmetic Exception crashes the change helps, but today i managed another FPE. so there's something else to be fixed here. Previous Comments: --------------------------------------------------------------------------- [2001-02-05 04:02:51] aaron-php@mutex.org I have suffered from /kernel: pid 69000 (httpd), uid 99: exited on signal 8 repeatedly in any php script whose guts wind up calling rand(). The fix is supposedly fpsetmask(0) instead of the current code in zend.c, but this would only work for me if I set apache's MaxRequestsPerChild to one. As might be expected, this is because the fix, if placed in zend_startup, is effective ONLY for the first request served from that httpd (in DSO mode. CGI obviously would not care). If you place the fpsetmask(0) call at the beginning of zend_activate_modules, subsequent requests will benefit and the signal 8 crashes cease. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=9106

« previous php.dev (#45814) next »