php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7399 Opening _any_ page crashes Apache
Submitted: 2000-10-23 00:07 UTC Modified: 2000-12-05 01:59 UTC
From: david at pananix dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.3pl1 OS: Linux 2.2.14-5
Private report: No CVE-ID: None
 [2000-10-23 00:07 UTC] david at pananix dot com
Any page when php-4.0.3pl1 is loaded (DSO) will cause Apache to segfault.  If PHP-4 is not loaded, Apache runs normally.

[Sun Oct 22 22:44:11 2000] [notice] Apache/1.3.14 (Unix) PHP/4.0.3pl1 PHP/3.0.16 FrontPage/4.0.4.3 mod_perl/1.24_01 mod_ssl/2.7.1 OpenSSL/0.9.6 configured

php-4 configuration:
./configure \
        --with-apxs=/usr/sbin/apxs \
        --with-mysql \
        --with-imap=/usr \
        --with-zlib \
        --enable-sysvshm=yes \
        --enable-sysvsem=yes \
        --with-config-file-path=/etc \
        --enable-debug=no \
        --with-exec-dir=/usr/local/bin \
        --enable-track-vars=yes \
        --enable-bcmath \
        --with-x \
        --with-versioning \
        --with-ftp \
        --enable-ftp \
        --with-gd \
        --with-gettext \
        --with-gdbm \
        --with-calendar \
        --enable-versioning \
        --with-mm \
        --with-readline \
        --enable-trans-sid 

Starting program: /usr/sbin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
0x2afe3268 in last_use () at mod_php4.c:437
437     }
(gdb) bt
#0  0x2afe3268 in last_use () at mod_php4.c:437
#1  0x2b144c6c in php4_module () from /usr/libexec/apache/libphp4.so
#2  0x2afe339c in last_use () at mod_php4.c:437
#3  0x80baba3 in ap_invoke_handler ()
#4  0x80ce087 in ap_run_sub_req ()
#5  0x8075e65 in handle_include ()
#6  0x8078f45 in send_parsed_content ()
#7  0x807951d in send_parsed_file ()
#8  0x80baba3 in ap_invoke_handler ()
#9  0x80ce969 in process_request_internal ()
#10 0x80ce9cc in ap_process_request ()
#11 0x80c61ce in child_main ()
#12 0x80c637c in make_child ()
#13 0x80c64d9 in startup_children ()
#14 0x80c6b06 in standalone_main ()
#15 0x80c72a3 in main ()
#16 0x2ac6f736 in __libc_start_main () from /lib/libc.so.6
(gdb) 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-25 19:10 UTC] sniper@php.net
Try configuring using --with-mysql=/path/to/mysql
and recompile. Do this for both php3 and php4.

--Jani
 [2000-11-29 06:20 UTC] stas@php.net
no feedback
 [2000-12-05 01:59 UTC] sniper@php.net
This has propably been the bug with running mod_perl together
with PHP and it has been fixed in CVS. So please try latest snapshot
from http://snaps.php.net/  or wait for PHP 4.0.4 to be released.

--Jani

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 09:00:02 2026 UTC