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

From: Date: Sat, 10 Mar 2001 02:45:27 +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-48556@lists.php.net to get a copy of this message
ID: 9106 Updated by: sniper Reported By: aaron-php@mutex.org Old-Status: Open Status: Closed Bug Type: Reproduceable crash Assigned To: Comments: This is fixed in CVS. Try latest CVS snapshot from http://snaps.php.net/ --Jani Previous Comments: --------------------------------------------------------------------------- [2001-02-05 17:13:48] aaron-php@mutex.org the change helps, but today i managed another FPE. so there's something else to be fixed here. --------------------------------------------------------------------------- [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. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9106&edit=2

« previous php.dev (#48556) next »