|  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.
Block user comment
Status: Assign to:
Bug Type:
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:
configure --prefix=/usr/local/apache --enable-shared=max
configure --with-apxs=/usr/local/apache/bin/apxs 

->>Apache died immediately after start - no core / nothing in its error log file.

Compiling it as static module works (halfways):
./configure --with-mysql --with-apache=../apache_1.3.12

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


Add a Patch

Pull Requests

Add a Pull Request


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. ( - 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-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 08 20:05:51 2022 UTC