php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9459 Floating point exception upon apache start
Submitted: 2001-02-26 07:48 UTC Modified: 2001-02-26 08:18 UTC
From: mkondrashin at apl dot ru Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.4pl1 OS: FreeBSD-3.0.RELEASE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mkondrashin at apl dot ru
New email:
PHP Version: OS:

 

 [2001-02-26 07:48 UTC] mkondrashin at apl dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-26 08:18 UTC] sniper@php.net
This is fixed in CVS. Try the latest snapshot from http://snaps.php.net/

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 19:01:37 2025 UTC