From:             [EMAIL PROTECTED]
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



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to