ID:               25337
 Updated by:       [EMAIL PROTECTED]
 Reported By:      spunge at spunge dot org
 Status:           Feedback
 Bug Type:         DOM XML related
 Operating System: Linux
 PHP Version:      4.3.3
 New Comment:

This bug in glibc was supposed to be fixed in glibc 2.2 or later..which
version do you have?



Previous Comments:
------------------------------------------------------------------------

[2003-09-01 10:58:20] [EMAIL PROTECTED]

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 10:07:24] 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 08:05:17] [EMAIL PROTECTED]

I wanted to know libxml version and is it linked with libpthread? Is
httpd linked with libpthread?


------------------------------------------------------------------------

[2003-09-01 07:29:55] 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-08-31 20:39:16] 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.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25337&edit=1

Reply via email to