php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7976 apache crash on startup
Submitted: 2000-11-26 01:00 UTC Modified: 2000-12-30 19:45 UTC
From: vk at mac dot dhs dot org Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.3pl1 OS: linux 2.2.15
Private report: No CVE-ID: None
 [2000-11-26 01:00 UTC] vk at mac dot dhs dot org
hello,

my apache 1.3.14 crashes right after fork, when the php4.0.3pl1 module is configured. It boots nice with the same config file when LoadModule and all php_value and php_flag 
are commented OR when only one or two virtual hosts are set up at the same time. 
It also boots fine with my old apache 1.3.6.

i've compiled both apache and php with -g flag, this is gdb output:

case a: 'normal' config, php4.0.3pl1, about 15 vhosts
--->8----->8----->8----->8----->8----->8----->8----->8--
Core was generated by `/usr/local/dbg_apache_1.3.14/bin/httpd'.
Program terminated with signal 11, Segmentation fault.
#0  0x4036e144 in ?? ()
(gdb) file /usr/local/dbg_apache_1.3.14/bin/httpd
Reading symbols from /usr/local/dbg_apache_1.3.14/bin/httpd...done.
(gdb) bt
#0  0x4036e144 in ?? ()
#1  0x8082bed in make_sock (p=0x80db25c, server=0x812d580) at http_main.c:3299
#2  0x808309d in setup_listeners (p=0x80db25c) at http_main.c:3541
#3  0x8084126 in standalone_main (argc=1, argv=0xbffffd44) at http_main.c:4641
#4  0x8084983 in main (argc=1, argv=0xbffffd44) at http_main.c:5004
#5  0x400b6cb3 in ?? () from /lib/libc.so.6

--->8----->8----->8----->8----->8----->8----->8----->8--
case b: all php_value and php_flag are removed, but the LoadModule line is active:
--->8----->8----->8----->8----->8----->8----->8----->8--
Core was generated by `/usr/local/dbg_apache_1.3.14/bin/httpd'.
Program terminated with signal 11, Segmentation fault.
#0  0x4036b7f4 in ?? ()
(gdb) file /usr/local/dbg_apache_1.3.14/bin/httpd
Reading symbols from /usr/local/dbg_apache_1.3.14/bin/httpd...done.
(gdb) bt
#0  0x4036b7f4 in ?? ()
#1  0x4038421f in ?? () from /lib/libnss_nis.so.2
#2  0x4015e026 in ?? () from /lib/libc.so.6
#3  0x4015de41 in ?? () from /lib/libc.so.6
#4  0x808d093 in ap_fini_vhost_config (p=0x80db25c, main_s=0x80db284) at http_vhost.c:646
#5  0x807a8a2 in ap_read_config (p=0x80db25c, ptemp=0x80e612c, confname=0x80d3c40 "conf/httpd.conf") at http_config.c:1588
#6  0x8084111 in standalone_main (argc=1, argv=0xbffffd44) at http_main.c:4640
#7  0x8084983 in main (argc=1, argv=0xbffffd44) at http_main.c:5004
#8  0x400b6cb3 in ?? () from /lib/libc.so.6
--->8----->8----->8----->8----->8----->8----->8----->8--

it looks like the crash happens in apache, not php code but it seems to be related to the php module being configured in.

hope this helps,
-- vedad

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-27 03:45 UTC] sniper@php.net
This should be already fixed in CVS.
Please try a snapshot from http://snaps.php.net/

--Jani
 [2000-12-30 19:45 UTC] sniper@php.net
No feedback.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 07:01:30 2024 UTC