PHP 4.0 Bug #6299: Apache segfaults because of problems in PHP4

From: Date: Tue, 22 Aug 2000 17:21:03 +0000
Subject: PHP 4.0 Bug #6299: Apache segfaults because of problems in PHP4
Groups: php.dev 
Request: Send a blank email to php-dev+get-30227@lists.php.net to get a copy of this message
From: vanja@pobox.com Operating system: RedHat Linux 6.2 PHP version: 4.0.1pl2 PHP Bug Type: Reproduceable crash Bug description: Apache segfaults because of problems in PHP4 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)

« previous php.dev (#30227) next »