Re: PHP 4.0 Bug #7976 Updated: apache crash on startup

From: Date: Mon, 27 Nov 2000 21:39:27 +0000
Subject: Re: PHP 4.0 Bug #7976 Updated: apache crash on startup
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-39322@lists.php.net to get a copy of this message
hello again, it still crashes with the snapshot version (php4-200011271045). compiling was also a pain, as the source directory (/usr/src/php4-200011271045 for me) wasn't added to -I statements, so it was failing while trying to include "ext/xxx/yyy" files from main/* here comes gdb output: Core was generated by `/usr/local/apache_1.3.14/bin/httpd'. Program terminated with signal 11, Segmentation fault. #0 0x402f8470 in ?? () (gdb) file /usr/local/apache_1.3.14/bin/httpd Reading symbols from /usr/local/apache_1.3.14/bin/httpd...done. (gdb) bt #0 0x402f8470 in ?? () #1 0x400f3770 in ?? () from /lib/libc.so.6 #2 0x400e7f06 in ?? () from /lib/libc.so.6 #3 0x400e3856 in ?? () from /lib/libc.so.6 #4 0x400eb6f7 in ?? () from /lib/libc.so.6 #5 0x8079d69 in ap_process_resource_config () #6 0x807ea4d in include_config () #7 0x8078f5a in invoke_cmd () #8 0x80798f3 in ap_handle_command () #9 0x8079987 in ap_srm_command_loop () #10 0x8079fe0 in ap_process_resource_config () #11 0x807a8a2 in ap_read_config () #12 0x8084191 in standalone_main () #13 0x8084a03 in main () #14 0x400b6cb3 in ?? () from /lib/libc.so.6 (gdb) good luck :) -- vedad PS: i didn't find a way to reply from php.net, thats is why i'm sending this by email ----- Original Message ----- From: "Bug Database" <php-dev@lists.php.net> To: <vk@mac.dhs.org> Sent: Monday, November 27, 2000 9:45 AM Subject: PHP 4.0 Bug #7976 Updated: apache crash on startup > ID: 7976 > Updated by: sniper > Reported By: vk@mac.dhs.org > Status: Feedback > Bug Type: Reproduceable crash > Assigned To: > Comments: > > This should be already fixed in CVS. > Please try a snapshot from http://snaps.php.net/ > > --Jani > > Previous Comments: > -------------------------------------------------------------------------- - > > [2000-11-26 01:00:27] vk@mac.dhs.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 > > -------------------------------------------------------------------------- - > > > Full Bug description available at: http://bugs.php.net/?id=7976

« previous php.dev (#39322) next »