PHP 4.0 Bug #8186 Updated: PHP4 module causes Apache 1.3.14 to core dump with SIGBUS fault
| From: | sniper@php.net | Date: | Sun, 10 Dec 2000 03:08:26 +0000 |
| Subject: | PHP 4.0 Bug #8186 Updated: PHP4 module causes Apache 1.3.14 to core dump with SIGBUS fault | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40720@lists.php.net to get a copy of this message | ||
ID: 8186
Updated by: sniper
Reported By: twb0@lymenet.org
Old-Status: Open
Status: Feedback
Bug Type: Reproduceable crash
Assigned To:
Comments:
Please try the latest snapshot from http://snaps.php.net/
as I think this has already been fixed.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-12-09 21:16:48] twb0@lymenet.org
GDB backtrace follows:
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-pc-solaris2.7"...
Core was generated by `/opt/apache/bin/httpd -f /opt/apache/conf/httpd.conf'.
Program terminated with signal 10, Bus Error.
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/lib/nss_files.so.1...done.
Loaded symbols for /usr/lib/nss_files.so.1
Reading symbols from /usr/lib/nss_dns.so.1...done.
Loaded symbols for /usr/lib/nss_dns.so.1
Reading symbols from /opt/apache/libexec/mod_log_agent.so...done.
Loaded symbols for /opt/apache/libexec/mod_log_agent.so
Reading symbols from /opt/apache/libexec/mod_log_referer.so...done.
Loaded symbols for /opt/apache/libexec/mod_log_referer.so
Reading symbols from /opt/apache/libexec/mod_mime_magic.so...done.
Loaded symbols for /opt/apache/libexec/mod_mime_magic.so
Reading symbols from /opt/apache/libexec/mod_info.so...done.
Loaded symbols for /opt/apache/libexec/mod_info.so
Reading symbols from /opt/apache/libexec/mod_speling.so...done.
Loaded symbols for /opt/apache/libexec/mod_speling.so
Reading symbols from /opt/apache/libexec/mod_rewrite.so...done.
Loaded symbols for /opt/apache/libexec/mod_rewrite.so
Reading symbols from /opt/apache/libexec/mod_auth_anon.so...done.
Loaded symbols for /opt/apache/libexec/mod_auth_anon.so
Reading symbols from /opt/apache/libexec/mod_cern_meta.so...done.
Loaded symbols for /opt/apache/libexec/mod_cern_meta.so
Reading symbols from /opt/apache/libexec/mod_expires.so...done.
Loaded symbols for /opt/apache/libexec/mod_expires.so
Reading symbols from /opt/apache/libexec/libphp4.so...done.
Loaded symbols for /opt/apache/libexec/libphp4.so
Reading symbols from /usr/lib/libpam.so.1...done.
Loaded symbols for /usr/lib/libpam.so.1
Reading symbols from /usr/lib/libintl.so.1...
warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 00000074
done.
Loaded symbols for /usr/lib/libintl.so.1
Reading symbols from /usr/lib/libresolv.so.2...done.
Loaded symbols for /usr/lib/libresolv.so.2
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/lib/libcrypt_i.so.1...done.
Loaded symbols for /usr/lib/libcrypt_i.so.1
Reading symbols from /usr/lib/libgen.so.1...done.
Loaded symbols for /usr/lib/libgen.so.1
#0 0xdf87e000 in ?? ()
(gdb) bt
#0 0xdf87e000 in ?? ()
#1 0xdfb0c39b in nss_search () from /usr/lib/libc.so.1
#2 0xdfb6edaf in _switch_gethostbyname_r () from /usr/lib/libnsl.so.1
#3 0xdfb81b2e in _door_gethostbyname_r () from /usr/lib/libnsl.so.1
#4 0xdfb6d379 in _get_hostserv_inetnetdir_byname () from /usr/lib/libnsl.so.1
#5 0xdfb815c0 in gethostbyname_r () from /usr/lib/libnsl.so.1
#6 0xdfb816d4 in gethostbyname () from /usr/lib/libnsl.so.1
#7 0x807a7e4 in get_addresses ()
#8 0x807a8c8 in ap_parse_vhost_addrs ()
#9 0x806cdb6 in ap_init_virtual_host ()
#10 0x806f276 in virtualhost_section ()
#11 0x806bca2 in invoke_cmd ()
#12 0x806c487 in ap_handle_command ()
#13 0x806c4d3 in ap_srm_command_loop ()
#14 0x806ca16 in ap_process_resource_config ()
#15 0x806d11c in ap_read_config ()
#16 0x8074544 in standalone_main ()
#17 0x8074cc7 in main ()
#18 0x8057383 in _start ()
---------------------------------------------------------------------------
[2000-12-09 16:17:56] twb0@lymenet.org
Everything works fine with unpatched Solaris 7 x86. Installing recent recommended patch cluster
cuases same configuration to stop working. Simply commenting out the php4 module in httpd.conf
allows Apache to start properly. Crash happens with both 4.0.3pl1 and 4.0.3.
Core dump available at ftp://ftp.proft.org/pub/62266205.core
Full truss output available at ftp://ftp.proft.org/pub/62266205.truss
Partial truss output:
26998: open("/etc/hosts", O_RDONLY) = 5
26998: fstat64(5, 0x08043700) = 0
26998: ioctl(5, TCGETA, 0x080436D4) Err#25 ENOTTY
26998: read(5, " #n # I n t e r n e t".., 8192) = 2411
26998: read(5, 0x080C8E3C, 8192) = 0
26998: llseek(5, 0, SEEK_CUR) = 2411
26998: close(5) = 0
26998: Incurred fault #5, FLTACCESS %pc = 0xDF9796A4
26998: siginfo: SIGBUS BUS_OBJERR addr=0xDF9796A4 errno=14(EFAULT)
26998: Received signal #10, SIGBUS [default]
26998: siginfo: SIGBUS BUS_OBJERR addr=0xDF9796A4 errno=14(EFAULT)
26998: *** process killed ***
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8186