RE: [PHP4BETA] Apache crash on startup -- apache 1.3.9/mod_ssl 2.4.10/latest cvs

From: Date: Thu, 17 Feb 2000 00:46:21 +0000
Subject: RE: [PHP4BETA] Apache crash on startup -- apache 1.3.9/mod_ssl 2.4.10/latest cvs
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-10378@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Something I noticed when PHP was built as a DSO was a line in the apache log files. It basically says that the module uses plain 1.3 API and that it [the module] should be recompiled with -DEAPI otherwise crashes could occur.... Maybe helpful...? Stewart. > -----Original Message----- > From: brettf@clickfeed.com [mailto:brettf@clickfeed.com] > Sent: 16 February 2000 23:19 > To: php4beta@lists.php.net > Subject: Re: [PHP4BETA] Apache crash on startup -- apache > 1.3.9/mod_ssl 2.4.10/latest cvs > > > I'm experiencing the exact same symptoms with PHP4.0b3 on Apache > 1.3.11-4 (RedHat rpm) but I'm not using mod_ssl. > This is on a clean install of the new RedHat 6.2 beta using egcs > 1.1.2-27 > for the build and configured as such: > > configure --with-apxs=/usr/sbin/apxs > --with-config-file-path=/etc/httpd/conf --disable-debug > --with-mysql=/usr --with-system-regex --enable-bcmath > --with-mcrypt=/usr/bin --with-xml > > Interestingly, when I built PHP4b3 on Apache 1.3.9 (using the above > configure params) then upgraded to Apache 1.3.11-1 rpm, everything > continued to work fine on that particular machine. > > As a test, I copied off the libphp4.so file from the working server > to the test server and Apache still failed to start. I'm going to > try downgrading the new server to Apache 1.3.11-1 rpm and see if > that fixes it. > > brett > > > Atlee Gordy wrote: > > > > Has anyone managed to successfully get that combo (or > 1.3.11/2.5.0) running? > > I'm experiencing what I think must be mod_ssl-related problems > while trying > > to compile/run today's CVS version for Apache 1.3.9/mod_ssl > 2.4.10 on a Red > > Hat 6.0 box. After I build and install Apache/mod_ssl, I can > start it up > > either with or without -DSSL as long as I don't load in the PHP > module -- > > works fine, serves pages, etc. I then grabbed the latest cvs > and compiled > > as follows: > > > > buildconf > > CFLAGS=-DEAPI > > ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs > --without-gd > > --without-mcrypt --enable-track-vars > > cd Zend > > buildconf > > CFLAGS=-DEAPI ./configure > > cd .. > > make > > make install > > > > and then restart Apache with or without ssl. In both cases, > Apache starts > > up and then immediately shuts right back down without complaint > > -- no segfaults or anything, and gdb says it's exiting normally. > > If > I then edit > > the conf file and comment out the LoadModule/AddModule/AddType > > for PHP, Apache starts up and serves out pages. Apache's not > > leaving > anything in the > > log files when it dies on startup, although I found that if you > run httpd -t > > while PHP's enabled, it reports "Syntax OK", and then segfaults > > (GDB backtrace at bottom). I've logged every aspect of > > configure, > make, and make > > install for Apache, mod_ssl, and PHP, and found nothing amiss. > > > > I'm reasonably sure that this is related to mod_ssl, because > Apache 1.3.9 > > and this same CVS version will work just fine together if I > leave mod_ssl > > out of the mix. In fact, this box was originally running 1.3.9 > with mod_ssl > > 2.4.6 and the 4.0b3 distribution, with nary a problem. I tried > to upgrade > > to 1.3.11, was running into the same problem, and decided to > step back down > > to 1.3.9 with mod_ssl 2.4.10. Just to get the box back up, > I've downgraded > > to mod_ssl 2.4.6, and everything's fine (using identical commands > > to compile). > > > > I'll be cross-posting to the apache-modssl list, since I'm > really not sure > > if the problem is with PHP or with mod_ssl. Can anyone shed a > little light > > on this for me? > > > > Thanks, > > Atlee > > > > --------------- GDB ------------------- > > $gdb httpd > > > > (gdb) run > > Starting program: /usr/local/apache/bin/httpd > > Program exited normally. > > (gdb) set args -t > > (gdb) run > > Starting program: /usr/local/apache/bin/httpd -t > > Syntax OK > > Cannot access memory at address 0x402a90d0. > > (gdb) bt > > #0 0x4000a411 in _dl_debug_state () at dl-debug.c:56 > > #1 0x4013cdfc in _dl_close (map=0x80d92d8) at dl-close.c:192 > > #2 0x400620c0 in dlclose_doit (handle=0x80d92d8) at dlclose.c:26 > > #3 0x4000a12b in _dl_catch_error (errstring=0x40063d00, > > operate=0x400620a8 <dlclose_doit>, args=0x80d92d8) at > > dl-error.c:141 #4 0x40062608 in _dlerror_run (operate=0x400620a8 > > <dlclose_doit>, > > args=0x80d92d8) at dlerror.c:122 > > #5 0x4006208e in dlclose (handle=0x80d92d8) at dlclose.c:32 > > #6 0x8086f40 in ap_os_dso_unload () > > #7 0x8065f10 in unload_module () > > #8 0x80684ee in run_cleanups () > > #9 0x8066d0d in ap_clear_pool () > > #10 0x8066d81 in ap_destroy_pool () > > #11 0x8066cfc in ap_clear_pool () > > #12 0x8066d81 in ap_destroy_pool () > > #13 0x8074972 in clean_parent_exit () > > #14 0x8077964 in main () > > #15 0x4007bcb3 in __libc_start_main (main=0x807769c <main>, > > argc=2, > > argv=0xbffffd94, init=0x804f550 <_init>, fini=0x80ad83c > > <_fini>, > > rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffd8c) > > at ../sysdeps/generic/libc-start.c:78 > > > > -- > > PHP 4.0 Beta Mailing List > > <http://www.php.net/version4/> > > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > > For additional commands, e-mail: php4beta-help@lists.php.net > > To contact the list administrators, e-mail: > > php4beta-admin@lists.php.net > > -- > Brett A. Funderburg > clickfeed.com | 5515 Balcones Dr. | Austin, TX | 78731 (512) 374-1991 x5004 | ICQ #163328 -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.1i for non-commercial use <http://www.pgpi.com/> iQA/AwUBOKtE3DBV3dfs1c5kEQKLmwCgmyNOryYR43POLjRIyldAwQbUejQAnRzo 5/XT5+UQLHsjlz2TZbNo7g52 =oRY1 -----END PGP SIGNATURE-----

« previous php.version4 (#10378) next »