php.net |  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
 [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)));

Patches

Pull Requests

History

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

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 22:01:28 2024 UTC