php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25337 Apache (1.3.27) with dom support doesn't start
Submitted: 2003-08-31 20:39 UTC Modified: 2003-09-01 12:03 UTC
From: spunge at spunge dot org Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.3.3 OS: Linux
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: spunge at spunge dot org
New email:
PHP Version: OS:

 

 [2003-08-31 20:39 UTC] spunge at spunge dot org
Description:
------------
When compliling PHP with dom support, Apache will not start, but also produces no errors (it creates a zero length error_log). Compiling PHP as a static module seems to work at this point though. Removing --with-dom seems to make this issue go away.

Reproduce code:
---------------
No PHP code needed

Actual result:
--------------
This GDB was configured as "i386-redhat-linux"...
(gdb) run -X
Starting program: /usr/local/apache/test/bin/./httpd -X
Program received signal SIGSEGV, Segmentation fault.
__pthread_mutex_lock (mutex=0x80de40c) at mutex.c:91
mutex.c:91: No such file or directory.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-01 07:29 UTC] spunge at spunge dot org
Here are the steps used to reproduce this "bug" on my machine...

./configure --prefix=/usr/local/apache/www --with-apxs=/usr/local/apache/www/bin/apxs --with-calendar --with-gdbm --with-ndbm --enable-ftp --enable-gd-native-ttf --with-gd=/usr/local --with-ttf=/usr/local --with-mysql=/usr/local/mysql  --with-mysql-sock=/var/log/mysql/mysql.sock --with-imap=/usr/local/lib 
--with-curl=/usr/local --with-mcrypt=/usr/local --enable-track-vars --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --enable-mailparse --enable-trans-sid 
--enable-exif --with-mhash --with-tiff-dir=/usr/local 
--with-zlib --with-flatfile --with-imap-ssl=/usr/local/ssl 
--with-openssl=/usr/local/ssl --with-ldap=/usr/local/openldap --with-readline --with-mm --with-pspell --enable-wddx --with-pear --with-xslt --with-xslt-sablot --with-expat-dir=/usr/local --with-iconv-dir=/usr/local --with-dom --enable-debug
(no critical errors reported)
make
make install
/usr/local/apache/www/bin/apachectl stop
/usr/local/apache/www/bin/apachectl start
End result: Apache doesn't start though it says it did. There are no errors in the error log. If I delete the error log, it does recreate it at zero length.

If I remove --with-dom, and go through the steps, all works fine.

I can also compile PHP statically in Apache with --with-dom and appears to work. This isn't the best solution though.

an ldd on libphp4.so didn't show that it couldn't find any of the libraries.

I already gave the backtrace in the initial posting. I am not sure what other information would be useful to you, or you are looking for. If you provide some hints, I can provide information.
 [2003-09-01 08:05 UTC] sniper@php.net
I wanted to know libxml version and is it linked with libpthread? Is httpd linked with libpthread?

 [2003-09-01 10:07 UTC] spunge at spunge dot org
libXML Version: LibXML2 2.5.10

libxml2 is linked with libpthread, but apache doesn't appear to be.
 [2003-09-01 10:58 UTC] sniper@php.net
Then you need to recompile Apache to be linked with libpthread. This is common problem with glibc/libpthread when the binary is not linked with phtread but the loaded shared library (in this case libphp4.so -> libxml2.so -> libphtread.so) is.

# cd /usr/src/apache_1.3.xx
# make clean
# LIBS=-lpthread ./config.status
# make
# make install

(if you still happen to have the configured apache sources there)

 [2003-09-01 11:11 UTC] sniper@php.net
This bug in glibc was supposed to be fixed in glibc 2.2 or later..which version do you have?

 [2003-09-01 11:17 UTC] spunge at spunge dot org
I haven't recompiled yet (not that far yet). Will give feedback once that has been completed.

I am on a old Linux System. the glibc version is the 2.0 series (2.0.7).
 [2003-09-01 12:03 UTC] spunge at spunge dot org
Recompiling Apache with pthread support fixed the problem -- thanks

For future reference, I use this to configure Apache now:
LIBS=-lpthread ./configure [configure options]
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 04:01:30 2024 UTC