PHP 4.0 Bug #9459: Floating point exception upon apache start
| From: | mkondrashin at apl dot ru | Date: | Mon, 26 Feb 2001 12:48:19 +0000 |
| Subject: | PHP 4.0 Bug #9459: Floating point exception upon apache start | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47550@lists.php.net to get a copy of this message | ||
From: mkondrashin@apl.ru
Operating system: FreeBSD-3.0.RELEASE
PHP version: 4.0.4pl1
PHP Bug Type: Reproduceable crash
Bug description: Floating point exception upon apache start
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.
--
Edit Bug report at: http://bugs.php.net/?id=9459&edit=1