Re: PHP 4.0 Bug #4580: Apache dies with PHP as DSO

From: Date: Thu, 25 May 2000 06:49:53 +0000
Subject: Re: PHP 4.0 Bug #4580: Apache dies with PHP as DSO
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-19421@lists.php.net to get a copy of this message
(sas, please see bottom of message...) On Wed, May 24, 2000 at 05:22:57PM -0000, tb@2anc.de wrote: > From: tb@2anc.de > Operating system: Linux 2.2.15 > PHP version: 4.0.0 Release > PHP Bug Type: Oracle related > Bug description: Apache dies with PHP as DSO > > Same as Bug ID4577 > > Apache 1.3.12, PHP 4.0.0, Oracle 8.1.6 EE > Compiled with following Options: > [Apache] > configure --prefix=/usr/local/apache --enable-shared=max > [PHP] > configure --with-apxs=/usr/local/apache/bin/apxs > --with-oracle=/home/oracle > > ->>Apache died immediately after start - no core / nothing in its error log file. > please relink your apache adding -lpthread to the LDFLAGS. the problem here is that a executable thats *not* linked agains -lpthread cannot load a shared library that is liked against -lpthread. (libphp4.so - linked against -lclntsh linked against -lpthread). this is a glibc-2.1 bug that supposed to be finxed in 2.2 (i heard). plz verify and close the bug-report! tc > --- > Compiling it as static module works (halfways): > [PHP] > ./configure --with-mysql --with-apache=../apache_1.3.12 > --with-oracle=/home/oracle > --with-oci8=/home/oracle > --with-config-file-path=/etc/httpd > --enable-versioning > > BUT: > strange things happen in apache's error log file with the static configuration: > > [Tue May 23 23:46:31 2000] [notice] Apache/1.3.12 (Unix) PHP/4.0.0 configured -- resuming > normal operations > zend_hash.c(185) : Freeing 0x08206D0C (20 bytes), script=/home/webserver/webdata/test.php > Last leak repeated 1 time > session.c(1240) : Freeing 0x08208B8C (10 bytes), > script=/home/webserver/webdata/test.php > session.c(1250) : Freeing 0x081ED4AC (8 bytes), script=/home/webserver/webdata/test.php > session.c(1239) : Freeing 0x081ECA2C (5 bytes), script=/home/webserver/webdata/test.php > session.c(1248) : Freeing 0x0820495C (2 bytes), script=/home/webserver/webdata/test.php > session.c(1241) : Freeing 0x0820465C (1 bytes), script=/home/webserver/webdata/test.php > session.c(1245) : Freeing 0x0820462C (1 bytes), script=/home/webserver/webdata/test.php > session.c(1249) : Freeing 0x082045FC (1 bytes), script=/home/webserver/webdata/test.php > zend_hash.c(185) : Freeing 0x08206D0C (20 bytes), script=/home/webserver/webdata > > ... > ... > this messages fill up to 60MB (!!!) in ca. 2 minutes... > > BTW: test.php is <? phpinfo(); ?>....... i've seen the same problem - this "leak" only happens when calling phpinfo() - sascha, any insights? > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.dev (#19421) next »