PHP 4.0 Bug #9459 Updated: Floating point exception upon apache start
| From: | sniper@php.net | Date: | Mon, 26 Feb 2001 13:18:06 +0000 |
| Subject: | PHP 4.0 Bug #9459 Updated: Floating point exception upon apache start | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47555@lists.php.net to get a copy of this message | ||
ID: 9459
Updated by: sniper
Reported By: mkondrashin@apl.ru
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
Assigned To:
Comments:
This is fixed in CVS. Try the latest snapshot from http://snaps.php.net/
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-02-26 07:48:18] mkondrashin@apl.ru
After running standard (with apxs) commands from INSTALL script apache won't start - shows
"Floating point exception - core dumped".
#gdb apache core
show:
x2820a14e in php_minit_crypt (type=1, module_number=2) at crypt.c:109
109 srand48((unsigned int) time(0) * getpid() * (php_combined_lcg()
* 10000.0));
I've fixed this by changing sradn48 to srand (commented out ifdef lines), but I suppose that I
should not use cryptography - it won't be secure.
I suppose that this is problem with srand48() on FreeBSD, but I am not sure. Same problem mentioned
by FreeBSD-4.0 users in mail list .
Note:
"- core dumped" string appeares if kern.corefile kernel variable is set to somethig other
that /dev/null.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9459&edit=2