[PHP-DEV] serious segfault problem From: Alex Black (enigma <email protected>)
Date: 12/30/00

hi all,

I've been fighting with a _totally_ mysterious apache segfault problem for
two days now...

[Sat Dec 30 16:40:35 2000] [notice] child pid 23068 exit signal Segmentation
fault (11)

I just found it: xml_parser_create() is causing the segfault.

I have tried this with probably 30 configs of PHP compiled into apache, with
4.0.4 and 4.0.3pl1 ... apache is 1.3.14

I m using either libxml 2.2.8 or 2.2.10 (I have tried both)

# cd /usr/
# find . -name *libxml*
./lib/libxml.so.1
./lib/libxml.so.1.8.6
./lib/libxml.a
./lib/libxml.la
./lib/libxml.so
./lib/libxml.so.2
./lib/libxml.so.2.2.8
./lib/libxmlparse.so.0
./lib/libxmlparse.so.0.1.0
./lib/libxmltok.so.0
./lib/libxmltok.so.0.1.0
./lib/libxmlparse.a
./lib/libxmlparse.la
./lib/libxmlparse.so
./lib/libxmltok.a
./lib/libxmltok.la
./lib/libxmltok.so
./local/lib/libxml.so.2
./local/lib/libxml.so
./local/lib/libxml.la
./local/lib/libxml.a
./local/include/libxml

are there any known problems with these versions? should I be passing
configure anything specific?

the manual says xml support is in by default... but I thought php used a
lib?

agh!

any help _much_ appreciated.

please respond to me directly, as news.php.net appears to be broken, and I
do not subscribe to this list.

----------------------------------
compile info:
redhat 6.2

cd apache_1.3.14
./configure --prefix=/usr/local/apache

cd ../php-4.0.4/
./configure \
        --prefix=/usr/local/php4.module \
        --with-config-file-path=/usr/local/apache/conf \
        --with-apache=../apache_1.3.14 \
        --enable-ftp \
        --with-zlib=/usr/ \
        --enable-bcmath \
        --enable-calendar \
        --with-jpeg-dir=/usr/lib \
        --with-tiff-dir=/usr/lib \
        --with-openssl \
        --with-mhash=/usr/local/mhash \
        --with-mcrypt=/usr/bin/mcrypt \
        --enable-debug=no \
        --with-mysql=/usr/local \
make
make install

cd ../apache_1.3.14
./configure --prefix=/usr/local/apache
--activate-module=src/modules/php4/libphp4.a
make
make install
----------------------------------

--
Alex Black, Head Monkey
enigma <email protected>

The Turing Studio, Inc. http://www.turingstudio.com

vox+510.666.0074 fax+510.666.0093

Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>