php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6299 Apache segfaults because of problems in PHP4
Submitted: 2000-08-22 13:21 UTC Modified: 2000-12-05 01:57 UTC
From: vanja at pobox dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.1pl2 OS: RedHat Linux 6.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vanja at pobox dot com
New email:
PHP Version: OS:

 

 [2000-08-22 13:21 UTC] vanja at pobox dot com
Apache 1.3.12, mod_ssl 2.3.6, mod_perl 1.2.4 and php4.0.1pl2 are all compiled/installed.

mod_perl:

# perl Makefile.PL EVERYTHING=1 DO_HTTPD=1 PREP_HTTPD=1 USE_APACI=1

mod_ssl:

# ./configure --with-apache=../apache-1.3.12

Apache:

./configure --enable-module=ssl --enable-shared=max --activate-module=src/modules/perl/libperl.a --prefix=/www

[ now the Apache is installed ]

PHP:

./configure --with-apxs=/www/bin/apxs --with-mysql=/opt/mySQL/

-------------------------------------------

After Apache is started, *any* request will generate segmentation fault.

GDB output:
[root@x tmp]# gdb httpd
GNU gdb 19991004
<snip>
(gdb) r -X
Starting program: /www/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
php_hash_environment () at main.c:925
925                     INIT_PZVAL(array_ptr);
(gdb) bt
#0  php_hash_environment () at main.c:925
#1  0x3644a8 in php_hash_environment () at main.c:923
#2  0x80910e3 in ap_invoke_handler ()
#3  0x80a4b69 in process_request_internal ()
#4  0x80a4f98 in ap_internal_redirect ()
#5  0x301e92 in handle_dir () from /www/libexec/mod_dir.so
#6  0x80910e3 in ap_invoke_handler ()
#7  0x80a4b69 in process_request_internal ()
#8  0x80a4bcc in ap_process_request ()
#9  0x809c3de in child_main ()
#10 0x809c58c in make_child ()
#11 0x809c6e9 in startup_children ()
#12 0x809cd16 in standalone_main ()
#13 0x809d4b3 in main ()
#14 0x1fb9cb in __libc_start_main (main=0x809d15c <main>, argc=2, argv=0xbffffa64, init=0x8062430 <_init>, fini=0x8156dcc <_fini>, 
    rtld_fini=0x11ae60 <_dl_fini>, stack_end=0xbffffa5c) at ../sysdeps/generic/libc-start.c:92
(gdb)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-21 04:16 UTC] sniper@php.net
does this happen with php4.0.3pl1? 

 [2000-12-05 01:57 UTC] sniper@php.net
This should be fixed in CVS. 
Please try latest snapshot or wait for PHP 4.0.4 to be released. 
If problem still exists with snapshot or PHP 4.0.4, reopen this bug report.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 16:01:35 2024 UTC