php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9106 Floating Point and Arithmetic Exception crashes
Submitted: 2001-02-05 04:02 UTC Modified: 2001-03-09 21:45 UTC
From: aaron-php at mutex dot org Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.4pl1 OS: FreeBSD 4.2-STABLE
Private report: No CVE-ID: None
 [2001-02-05 04:02 UTC] aaron-php at mutex dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-05 17:13 UTC] aaron-php at mutex dot org
the change helps, but today i managed another FPE.
so there's something else to be fixed here.
 [2001-03-09 21:45 UTC] sniper@php.net
This is fixed in CVS. Try latest CVS snapshot from http://snaps.php.net/

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 14:01:28 2024 UTC