php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4580 Apache dies with PHP as DSO
Submitted: 2000-05-24 19:22 UTC Modified: 2000-05-29 02:27 UTC
From: tb at 2anc dot de Assigned:
Status: Closed Package: Dynamic loading
PHP Version: OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tb at 2anc dot de
New email:
PHP Version: OS:

 

 [2000-05-24 19:22 UTC] tb at 2anc dot de
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.

---
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(); ?>.......

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-29 02:27 UTC] tb at 2anc dot de
Problem was solved (thx to Mr. Thies C. Arntzen):

" 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).  "

configuring Apache with LDFLAGS=-lpthread gave me a wonderful
stable webserver with php3,php4/oracle and mysql support...

### example configure:
[root@ucadev php-3.0.16]# LDFLAGS=-lpthread ./configure \
> --prefix=/usr/local/apache \
> --enable-shared=max
###

this "workaround" should also fix BUGS  #4437, #4577 and #4601



 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 05:01:29 2024 UTC