php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9178 floating point exception
Submitted: 2001-02-08 14:45 UTC Modified: 2001-02-08 15:39 UTC
From: ps at virtualis dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.4pl1 OS: FreeBSD 3.4-RELEASE
Private report: No CVE-ID: None
 [2001-02-08 14:45 UTC] ps at virtualis dot com
Trying to compile PHP4 into Apache with mod_ssl 2.7.1.  Apache core dumps upon startup with a floating point exception.

PHP's configure line is:

[root@panthervideo:~/php-4.0.4pl1]# ./configure --with-apache=../apache_1.3.14 --with-mysql=/usr/local --disable-pear --with-gd=/usr/local --enable-track-vars --with-openssl=../openssl-0.9.6

Other info:

[root@panthervideo:~/apache_1.3.14]# uname -rs
FreeBSD 3.4-RELEASE
[root@panthervideo:~/apache_1.3.14]# src/httpd -v
Server version: Apache/1.3.14 (Unix)
Server built:   Feb  8 2001 11:21:10
[root@panthervideo:~/apache_1.3.14]# src/httpd -l
Compiled-in modules:
  http_core.c
  mod_vhost_alias.c
  mod_env.c
  mod_define.c
  mod_log_config.c
  mod_mime_magic.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_info.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_speling.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_access.c
  mod_auth.c
  mod_auth_anon.c
  mod_digest.c
  mod_proxy.c
  mod_cern_meta.c
  mod_expires.c
  mod_headers.c
  mod_usertrack.c
  mod_unique_id.c
  mod_so.c
  mod_setenvif.c
  mod_ssl.c
  mod_php4.c
suexec: enabled; valid wrapper /usr/local/sbin/suexec

[root@panthervideo:/usr/local/sbin]# gdb httpsd httpsd.core 
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...

Program terminated with signal 8, Floating point exception.
Reading symbols from /usr/lib/libpam.so.1...done.
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.6...done.
Reading symbols from /usr/local/lib/libpng.so.3...done.
Reading symbols from /usr/lib/libz.so.2...done.
Reading symbols from /usr/local/lib/libgd.so.0...done.
Reading symbols from /usr/local/lib/libcurl.so.1...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/local/lib/librsaref.so.2...done.
Reading symbols from /usr/lib/libc.so.3...done.
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Reading symbols from /usr/local/lib/libssl.so.1...done.
Reading symbols from /usr/local/lib/libcrypto.so.1...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x80b32f1 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));
(gdb) bt
#0  0x80b32f1 in php_minit_crypt (type=1, module_number=2) at crypt.c:109
#1  0x80aed96 in php_minit_basic (type=1, module_number=2)
    at basic_functions.c:719
#2  0x80f4eb7 in zend_startup_module (module=0x8266df4) at zend_API.c:697
#3  0x8093fcc in php_startup_extensions (ptr=0x8261d2c, count=8) at main.c:751
#4  0x8094b77 in php_startup_internal_extensions () at internal_functions.c:63
#5  0x8094215 in php_module_startup (sf=0x8260d44) at main.c:905
#6  0x8092373 in php_apache_startup (sapi_module=0x8260d44) at mod_php4.c:257
#7  0x8092b22 in php_init_handler (s=0x8299034, p=0x829900c) at mod_php4.c:724
#8  0x815c2fd in ap_init_modules ()
#9  0x8165f09 in main ()
#10 0x807e25d in _start ()
(gdb) 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-08 15:39 UTC] derick@php.net
Already fixed in CVS, use a snapshot from snaps.php.net or use the CVS version.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 07:01:32 2024 UTC