Re: [PHP-DEV] PHP 4.0 Bug #8186 Updated: PHP4 module causes Apache 1.3.14 to core dump with SIGBUS fault From: Jani Taskinen (sniper <email protected>)
Date: 03/04/01

Is this problem solved? And if not, does your Apache work without PHP?
And what exactly did those patches update??

--Jani

On 8 Jan 2001 twb0 <email protected> wrote:

>ID: 8186
>User Update by: twb0 <email protected>
>Old-Status: Feedback
>Status: Open
>Bug Type: Reproduceable crash
>Description: PHP4 module causes Apache 1.3.14 to core dump with SIGBUS fault
>
># ldd /opt/apache/bin/httpd
> libsocket.so.1 => /usr/lib/libsocket.so.1
> libnsl.so.1 => /usr/lib/libnsl.so.1
> libdl.so.1 => /usr/lib/libdl.so.1
> libc.so.1 => /usr/lib/libc.so.1
> libmp.so.2 => /usr/lib/libmp.so.2
># ldd /opt/apache/libexec/libphp4.so
> libpam.so.1 => /usr/lib/libpam.so.1
> libdl.so.1 => /usr/lib/libdl.so.1
> libintl.so.1 => /usr/lib/libintl.so.1
> libresolv.so.2 => /usr/lib/libresolv.so.2
> libm.so.1 => /usr/lib/libm.so.1
> libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1
> libnsl.so.1 => /usr/lib/libnsl.so.1
> libsocket.so.1 => /usr/lib/libsocket.so.1
> libc.so.1 => /usr/lib/libc.so.1
> libgen.so.1 => /usr/lib/libgen.so.1
> libmp.so.2 => /usr/lib/libmp.so.2
>
>
>Previous Comments:
>---------------------------------------------------------------------------
>
>[2001-01-07 19:05:10] sniper <email protected>
>What are the outputs for these commands:
>
># ldd /opt/apache/bin/httpd
># ldd /opt/apache/libexec/libphp4.so
>
>--Janie
>
>---------------------------------------------------------------------------
>
>[2000-12-11 18:09:50] twb0 <email protected>
>New backtrace from dev200012111345 with PHP debugging enabled:
>Raw corefile available in ftp://ftp.proft.org/pub/php4-200012111345.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-pc-solaris2.7"...
>Core was generated by `bin/httpd -X'.
>Program terminated with signal 11, Segmentation Fault.
>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 0xdf8596a4 in ?? () from /opt/apache/libexec/libphp4.so
>(gdb) bt
>#0 0xdf8596a4 in ?? () from /opt/apache/libexec/libphp4.so
>#1 0xdfb0139b in nss_search () from /usr/lib/libc.so.1
>#2 0xdfb61daf in _switch_gethostbyname_r () from /usr/lib/libnsl.so.1
>#3 0xdfb74b2e in _door_gethostbyname_r () from /usr/lib/libnsl.so.1
>#4 0xdfb60379 in _get_hostserv_inetnetdir_byname () from /usr/lib/libnsl.so.1
>#5 0xdfb745c0 in gethostbyname_r () from /usr/lib/libnsl.so.1
>#6 0xdfb746d4 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 ()
>(gdb) q
>
>---------------------------------------------------------------------------
>
>[2000-12-11 10:53:07] sniper <email protected>
>The problem with gettext is now fixed in CVS.
>Try latest snapshot (again :) and configure it
>with adding --enable-debug to get better backtrace
>of the crash..
>
>--Jani
>
>---------------------------------------------------------------------------
>
>[2000-12-09 23:05:38] twb0 <email protected>
>Tried dev snapshot 200012091845 with same result.
>FYI, also discovered that locale.h needed but not defined in ext/gettext.c...
>
>---------------------------------------------------------------------------
>
>[2000-12-09 22:08:26] sniper <email protected>
>Please try the latest snapshot from http://snaps.php.net/
>as I think this has already been fixed.
>
>--Jani
>
>---------------------------------------------------------------------------
>
>The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online.
>
>Full Bug description available at: http://bugs.php.net/?id=8186
>
>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>