php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8697 Apache Seg Fault on run
Submitted: 2001-01-14 06:50 UTC Modified: 2001-01-14 22:33 UTC
From: dave at cc0 dot net Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Latest CVS (14/01/2001) OS: Linux RH7.0
Private report: No CVE-ID: None
 [2001-01-14 06:50 UTC] dave at cc0 dot net
Below is configure line, attempt at a backtrace, last 20 lines of strace and ldd libphp4.so, No wierd libs, all installed from RH rpms (not that I'm more confident about that)



./configure \
--with-apxs=/usr/sbin/apxs \
--with-bz2=/usr \
--with-gd=/usr \
--with-pspell=/usr \
--with-curl=/usr \
--with-openssl=/usr \
--with-mm=/usr \
--with-gdbm=/usr \
--with-db2=/usr \
--with-db3=/usr \
--with-cdb=/usr/local \
--with-pgsql=/usr \
--with-mysql=/usr \
--with-ldap=/usr \
--with-snmp=/usr \
--with-gettext=/usr \
--with-readline=/usr \
--with-swf=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-tiff-dir=/usr \
--with-config-file-path=/etc/httpd/conf \
--with-ttf=/usr \
--with-zlib \
--with-zziplib=/usr \
--with-mcrypt \
--with-mhash \
--with-xml \
--with-pam_auth \
--enable-yp \
--enable-versioning \
--enable-gd-imgstrttf \
--enable-gd-native-ttf \
--enable-track-vars \
--enable-magic-quotes \
--enable-wddx \
--enable-ftp \
--enable-exif \
--enable-calendar \
--enable-filepro \
--enable-sysvshm \
--enable-sysvsem \
--enable-sockets \
--enable-inline-optimization \
--enable-dbase \
--enable-shmop \
--enable-gpw \
--enable-ctype \
--enable-bcmath \
--enable-trans-sid




[root@dev php4-200101140045]# /usr/sbin/httpd        
Segmentation fault (core dumped)
[root@dev php4-200101140045]# gdb /usr/sbin/httpd ./core 
GNU gdb 5.0
Copyright 2000 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-redhat-linux"...(no debugging symbols found)...
Core was generated by `/usr/sbin/httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /usr/lib/libdb.so.3...done.
Loaded symbols for /usr/lib/libdb.so.3
Reading symbols from /lib/libdb-3.1.so...done.
Loaded symbols for /lib/libdb-3.1.so
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /etc/httpd/modules/mod_vhost_alias.so...done.
Loaded symbols for /etc/httpd/modules/mod_vhost_alias.so
Reading symbols from /etc/httpd/modules/mod_env.so...done.
Loaded symbols for /etc/httpd/modules/mod_env.so
Reading symbols from /etc/httpd/modules/mod_log_config.so...done.
Loaded symbols for /etc/httpd/modules/mod_log_config.so
Reading symbols from /etc/httpd/modules/mod_log_agent.so...done.
Loaded symbols for /etc/httpd/modules/mod_log_agent.so
Reading symbols from /etc/httpd/modules/mod_log_referer.so...done.
Loaded symbols for /etc/httpd/modules/mod_log_referer.so
Reading symbols from /etc/httpd/modules/mod_mime.so...done.
Loaded symbols for /etc/httpd/modules/mod_mime.so
Reading symbols from /etc/httpd/modules/mod_negotiation.so...done.
Loaded symbols for /etc/httpd/modules/mod_negotiation.so
Reading symbols from /etc/httpd/modules/mod_status.so...done.
Loaded symbols for /etc/httpd/modules/mod_status.so
Reading symbols from /etc/httpd/modules/mod_info.so...done.
Loaded symbols for /etc/httpd/modules/mod_info.so
Reading symbols from /etc/httpd/modules/mod_include.so...done.
Loaded symbols for /etc/httpd/modules/mod_include.so
Reading symbols from /etc/httpd/modules/mod_autoindex.so...done.
Loaded symbols for /etc/httpd/modules/mod_autoindex.so
Reading symbols from /etc/httpd/modules/mod_dir.so...done.
Loaded symbols for /etc/httpd/modules/mod_dir.so
Reading symbols from /etc/httpd/modules/mod_cgi.so...done.
Loaded symbols for /etc/httpd/modules/mod_cgi.so
Reading symbols from /etc/httpd/modules/mod_asis.so...done.
Loaded symbols for /etc/httpd/modules/mod_asis.so
Reading symbols from /etc/httpd/modules/mod_imap.so...done.
Loaded symbols for /etc/httpd/modules/mod_imap.so
Reading symbols from /etc/httpd/modules/mod_actions.so...done.
Loaded symbols for /etc/httpd/modules/mod_actions.so
Reading symbols from /etc/httpd/modules/mod_userdir.so...done.
Loaded symbols for /etc/httpd/modules/mod_userdir.so
Reading symbols from /etc/httpd/modules/mod_alias.so...done.
Loaded symbols for /etc/httpd/modules/mod_alias.so
Reading symbols from /etc/httpd/modules/mod_gzip.so...done.
Loaded symbols for /etc/httpd/modules/mod_gzip.so
Reading symbols from /etc/httpd/modules/mod_rewrite.so...done.
Loaded symbols for /etc/httpd/modules/mod_rewrite.so
Reading symbols from /etc/httpd/modules/mod_access.so...done.
Loaded symbols for /etc/httpd/modules/mod_access.so
Reading symbols from /etc/httpd/modules/mod_auth.so...done.
Loaded symbols for /etc/httpd/modules/mod_auth.so
Reading symbols from /etc/httpd/modules/mod_auth_anon.so...done.
Loaded symbols for /etc/httpd/modules/mod_auth_anon.so
Reading symbols from /etc/httpd/modules/mod_auth_db.so...done.
Loaded symbols for /etc/httpd/modules/mod_auth_db.so
Reading symbols from /etc/httpd/modules/mod_expires.so...done.
Loaded symbols for /etc/httpd/modules/mod_expires.so
Reading symbols from /etc/httpd/modules/mod_headers.so...done.
Loaded symbols for /etc/httpd/modules/mod_headers.so
Reading symbols from /etc/httpd/modules/mod_usertrack.so...done.
Loaded symbols for /etc/httpd/modules/mod_usertrack.so
Reading symbols from /etc/httpd/modules/mod_setenvif.so...done.
Loaded symbols for /etc/httpd/modules/mod_setenvif.so
Reading symbols from /etc/httpd/modules/mod_bandwidth.so...done.
Loaded symbols for /etc/httpd/modules/mod_bandwidth.so
Reading symbols from /etc/httpd/modules/mod_put.so...done.
Loaded symbols for /etc/httpd/modules/mod_put.so
Reading symbols from /etc/httpd/modules/libphp4.so...done.
Loaded symbols for /etc/httpd/modules/libphp4.so
Reading symbols from /lib/libpam.so.0...done.
Loaded symbols for /lib/libpam.so.0
Reading symbols from /usr/lib/libzzip-0.10.13.so...done.
Loaded symbols for /usr/lib/libzzip-0.10.13.so
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libsnmp.so.0...done.
Loaded symbols for /usr/lib/libsnmp.so.0
Reading symbols from /usr/lib/libreadline.so.4.1...done.
Loaded symbols for /usr/lib/libreadline.so.4.1
Reading symbols from /usr/lib/libhistory.so.4.1...done.
Loaded symbols for /usr/lib/libhistory.so.4.1
Reading symbols from /usr/lib/libncurses.so.5...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from /usr/lib/libpspell.so.2...done.
Loaded symbols for /usr/lib/libpspell.so.2
Reading symbols from /usr/lib/libpq.so.2.1...done.
Loaded symbols for /usr/lib/libpq.so.2.1
Reading symbols from /usr/lib/libpdf.so.0...done.
Loaded symbols for /usr/lib/libpdf.so.0
Reading symbols from /usr/lib/libtiff.so.3...done.
Loaded symbols for /usr/lib/libtiff.so.3
Reading symbols from /usr/lib/libpng.so.2...done.
Loaded symbols for /usr/lib/libpng.so.2
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/mysql/libmysqlclient.so.9...done.
Loaded symbols for /usr/lib/mysql/libmysqlclient.so.9
Reading symbols from /usr/lib/libltdl.so.0...done.
Loaded symbols for /usr/lib/libltdl.so.0
Reading symbols from /usr/lib/libldap.so.1...done.
Loaded symbols for /usr/lib/libldap.so.1
Reading symbols from /usr/lib/liblber.so.1...done.
Loaded symbols for /usr/lib/liblber.so.1
Reading symbols from /usr/lib/libttf.so.2...done.
Loaded symbols for /usr/lib/libttf.so.2
Reading symbols from /usr/lib/libgdbm.so.2...done.
Loaded symbols for /usr/lib/libgdbm.so.2
Reading symbols from /usr/lib/libcurl.so.0...done.
Loaded symbols for /usr/lib/libcurl.so.0
Reading symbols from /usr/lib/libbz2.so.1...done.
Loaded symbols for /usr/lib/libbz2.so.1
Reading symbols from /usr/lib/libssl.so.0...done.
Loaded symbols for /usr/lib/libssl.so.0
Reading symbols from /usr/lib/libcrypto.so.0...done.
Loaded symbols for /usr/lib/libcrypto.so.0
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib/libpspell-modules.so.1...done.
Loaded symbols for /usr/lib/libpspell-modules.so.1
Reading symbols from /usr/lib/libstdc++-libc6.2-2.so.3...done.
Loaded symbols for /usr/lib/libstdc++-libc6.2-2.so.3
Reading symbols from /etc/httpd/modules/libperl.so...done.
Loaded symbols for /etc/httpd/modules/libperl.so
Reading symbols from /etc/httpd/modules/libdav.so...done.
Loaded symbols for /etc/httpd/modules/libdav.so
Reading symbols from /etc/httpd/modules/libssl.so...done.
Loaded symbols for /etc/httpd/modules/libssl.so
Reading symbols from /etc/httpd/modules/mod_dynvhost.so...done.
Loaded symbols for /etc/httpd/modules/mod_dynvhost.so
Reading symbols from /lib/libnss_nisplus.so.2...done.
Loaded symbols for /lib/libnss_nisplus.so.2
Reading symbols from /lib/libnss_nis.so.2...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
#0  0x0 in ?? ()
(gdb) bt
#0  0x0 in ?? ()
(gdb) 










[root@dev php4-200101140045]# strace -o out /usr/sbin/httpd 
[root@dev php4-200101140045]# tail -n 20 out 
time([979472819])                       = 979472819
getpid()                                = 17099
time([979472819])                       = 979472819
getpid()                                = 17099
time([979472819])                       = 979472819
getpid()                                = 17099
brk(0x817d000)                          = 0x817d000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
shmget(IPC_PRIVATE, 33554432, IPC_CREAT|0x180|0600) = 9472
shmat(9472, 0, 0)                       = 0x2b4a3000
shmctl(9472, IPC_STAT, 0x7fffda70)      = 0
getuid()                                = 0
getgid()                                = 0
shmctl(9472, IPC_SET, 0x7fffda70)       = 0
shmctl(9472, IPC_RMID, 0)               = 0
unlink("/tmp/session_mm.sem")           = 0
open("/tmp/session_mm.sem", O_RDWR|O_CREAT, 0600) = 4
getpid()                                = 17099
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++





[root@dev php4-200101140045]# ldd /etc/httpd/modules/libphp4.so 
        libpam.so.0 => /lib/libpam.so.0 (0x2ac9d000)
        libdl.so.2 => /lib/libdl.so.2 (0x2aca5000)
        libzzip-0.10.13.so => /usr/lib/libzzip-0.10.13.so (0x2aca8000)
        libz.so.1 => /usr/lib/libz.so.1 (0x2acae000)
        libsnmp.so.0 => /usr/lib/libsnmp.so.0 (0x2acbc000)
        libreadline.so.4.1 => /usr/lib/libreadline.so.4.1 (0x2acfc000)
        libhistory.so.4.1 => /usr/lib/libhistory.so.4.1 (0x2ad22000)
        libncurses.so.5 => /usr/lib/libncurses.so.5 (0x2ad28000)
        libpspell.so.2 => /usr/lib/libpspell.so.2 (0x2ad6a000)
        libpq.so.2.1 => /usr/lib/libpq.so.2.1 (0x2ad83000)
        libpdf.so.0 => /usr/lib/libpdf.so.0 (0x2ad95000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0x2adbf000)
        libpng.so.2 => /usr/lib/libpng.so.2 (0x2ae02000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x2ae23000)
        libmysqlclient.so.9 => /usr/lib/mysql/libmysqlclient.so.9 (0x2ae42000)
        libltdl.so.0 => /usr/lib/libltdl.so.0 (0x2ae6d000)
        libldap.so.1 => /usr/lib/libldap.so.1 (0x2ae71000)
        liblber.so.1 => /usr/lib/liblber.so.1 (0x2ae87000)
        libttf.so.2 => /usr/lib/libttf.so.2 (0x2ae8d000)
        libdb-3.1.so => /lib/libdb-3.1.so (0x2aeb5000)
        libdb.so.3 => /usr/lib/libdb.so.3 (0x2af31000)
        libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x2af6f000)
        libcurl.so.0 => /usr/lib/libcurl.so.0 (0x2af75000)
        libbz2.so.1 => /usr/lib/libbz2.so.1 (0x2af8f000)
        libssl.so.0 => /usr/lib/libssl.so.0 (0x2af9f000)
        libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x2afcd000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x2b085000)
        libm.so.6 => /lib/libm.so.6 (0x2b098000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x2b0b7000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x2b0e5000)
        libc.so.6 => /lib/libc.so.6 (0x2b0fc000)
        libpspell-modules.so.1 => /usr/lib/libpspell-modules.so.1 (0x2b21e000)
        libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x2b220000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)






Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-14 22:33 UTC] dave at cc0 dot net
Turned out to be a faulty MM install. I trashed the MM rpm and built/installed from source. PHP works fine now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 10 21:01:29 2024 UTC