Bug #9827 Updated: Floating point exception when starting apache
| From: | sniper@php.net | Date: | Sun, 21 Oct 2001 03:06:13 +0000 |
| Subject: | Bug #9827 Updated: Floating point exception when starting apache | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-68537@lists.php.net to get a copy of this message | ||
ID: 9827
Updated by: sniper
Reported By: matti@weiersmueller.com
Old Status: Open
Status: Closed
Bug Type: Apache related
Operating System: Linux-mips
PHP Version: 4.0.6
New Comment:
Fixed in CVS.
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-08-21 16:14:38] matti@weiersmueller.com
still not fixed in 4.0.6
------------------------------------------------------------------------
[2001-05-10 14:42:00] matti@weiersmueller.com
no, it still behaves the same when using 4.0.5.
------------------------------------------------------------------------
[2001-05-07 04:45:07] zeev@php.net
Can you please see if this still happens in PHP 4.0.5? It's supposed to be fixed.
------------------------------------------------------------------------
[2001-03-18 21:51:48] matti@weiersmueller.com
The calculation itself does not lead to the overflow. I inserted this line right before the error
happens:
fprintf (stdout, "Value: %f", ..calculation comes here ...);
So I guess the function accepts only numbers to a certain size. (values over approx. 2^34 or under
2^-34 makes apache hurl)
------------------------------------------------------------------------
[2001-03-18 21:43:26] matti@weiersmueller.com
- HW: Cobalt Raq2 (MIPS R3000)
- OS: Linux
- Apache: 1.3.19
- PHP built with these arguments:
--with-apxs
--enable-trans-sid
- PHP release: 4.0.4pl1 and the latest CVS snapshot (date 18/03/2001)
when starting apache with "./httpd", a core is dumped. The message is: Floating point
exception (core dumped)
I played around with gdb, the exception occurs in:
ext/standard/crypt.c:105
------------------------
php_srand(time(0) * getpid() * php_combined_lcg() * 10000.0 );
I played around with this line. When I replace the value 10000.0 with 1.0 and recompile the stuff,
it works. I'm no C programmer, but I think this is due to an overflow problem.
If you need more informations, tell me!
Best regards
Matti Weiersmueller
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=9827&edit=1