php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8581 apache child segfault on xml_parser_create()
Submitted: 2001-01-07 19:08 UTC Modified: 2001-01-07 19:14 UTC
From: enigma at turingstudio dot com Assigned:
Status: Closed Package: XML related
PHP Version: 4.0.4 OS: linux (redhat, any)
Private report: No CVE-ID: None
 [2001-01-07 19:08 UTC] enigma at turingstudio dot com
hi all,

mentioned this earlier on php-dev. asked a couple 
people, no one had seen it before, but...

I just got a message to binarycloud-dev asking about 
the _exact_ same problem, so here goes:

I have tried this with php 4.0.4 and php 4.0.3pl1:

xml_parser_create()
segfaults the apache child process running the function 
_every_time_ it is called.

I was under the impression that xml support relied on a 
library, which is why I didn't enter a bug.

Further readong revealed to me that there is a version 
of expat compiled in from the php source tree.

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

Some info:



---------------------------------------
# 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
---------------------------------------



----------------------------------
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
----------------------------------


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-07 19:14 UTC] sniper@php.net
This is fixed in CVS. Please try the latest snapshot from http://snaps.php.net/
and if it crashes too, reopen this bug report.

--Jani
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Nov 28 15:03:14 2021 UTC