|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8648 Core dump while loading DSO into apache
Submitted: 2001-01-10 22:53 UTC Modified: 2001-01-11 06:54 UTC
From: mhovan+php at hovan dot org Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.4 OS: FreeBSD 3.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mhovan+php at hovan dot org
New email:
PHP Version: OS:


 [2001-01-10 22:53 UTC] mhovan+php at hovan dot org
	I had a crasher when installing php-4.0.4 on FreeBSD 
3.3 into apache 1.3.9.  The problem was in the file 
php-4.0.4/ext/standard/crypt.c at line 109.  I got a 
SIGFPE and a core dump when launching apache.   
The original line read as follows:

        srand48((unsigned int) time(0) * getpid() * 
(php_combined_lcg() * 10000.0));

my quick ugly hack was to add parenthesis to cast the 
whole thing to an int.  It isn't the right solution but it is a 
step in the right direction (for me at least)...

        srand48((unsigned int) (time(0) * getpid() * 
(php_combined_lcg() * 10000.0)));


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-11 06:54 UTC]
This is fixed in CVS already. Grab a snapshot from

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Mar 25 13:03:40 2023 UTC