php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9159 PHP 4.0.4pl1 chrashes on initialization
Submitted: 2001-02-07 13:07 UTC Modified: 2001-02-07 13:38 UTC
From: vrg at cmt dot hu Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.4pl1 OS: FreeBSD 3.4
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: vrg at cmt dot hu
New email:
PHP Version: OS:

 

 [2001-02-07 13:07 UTC] vrg at cmt dot hu
My PHP 4.0.4pl1 crashes during initialization. It crashes in php_minit_crypt, when starting php ... no php code needed for crashing... :)

i've configured php like this: (configure options don't bother crashing) 

./configure --enable-versioning --with-system-regex --with-config-file-path=/usr/local/etc --disable-debug --enable-track-vars --disable-pear --enable-sysvsem --enable-sysvshm --with-imap --with-zlib --with-mysql=/usr/local --with-xml=/usr/local --prefix=/usr/local i386--freebsd3.4

When compiled as an apache module, it cored the apache, too, when initializing...

GBD Backtrace:
Program received signal SIGFPE, Arithmetic exception.
0x8081ba9 in php_minit_crypt (type=1, module_number=5) at crypt.c:109
109             srand48((unsigned int) time(0) * getpid() * (php_combined_lcg() * 10000.0));
(gdb) bt
#0  0x8081ba9 in php_minit_crypt (type=1, module_number=5) at crypt.c:109
#1  0x807d64e in php_minit_basic (type=1, module_number=5)
    at basic_functions.c:719
#2  0x80c7363 in zend_startup_module (module=0x81168c0) at zend_API.c:697
#3  0x805dc5c in php_startup_extensions (ptr=0x8111870, count=10) at main.c:751
#4  0x805e807 in php_startup_internal_extensions () at internal_functions.c:67
#5  0x805dea5 in php_module_startup (sf=0x8110b1c) at main.c:905
#6  0x805c956 in main (argc=1, argv=0xbfbfdb8c) at cgi_main.c:480
#7  0x805c405 in _start ()

Please notice me about this bug fixing... I've a previous version (php 4.0.3pl1), which is working with the same configuration...

Thanks a lot,
        Peter Varga

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-07 13:20 UTC] vrg at cmt dot hu
The main point is in crypt.c I think...

 [2001-02-07 13:38 UTC] derick@php.net
This should be fixed in CVS. Can you try a snapshot from snaps.php.net or a CVS version? If you encounter problems, feel free to reopen this report
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 20:01:30 2025 UTC