#38017 [Opn->Fbk]: Segfault on xml_parser_create() call
| From: | tony2001@php.net | Date: | Wed, 05 Jul 2006 21:13:23 +0000 |
| Subject: | #38017 [Opn->Fbk]: Segfault on xml_parser_create() call | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-99146@lists.php.net to get a copy of this message | ||
ID: 38017
Updated by: tony2001@php.net
Reported By: baco at infomaniak dot ch
-Status: Open
+Status: Feedback
Bug Type: XML related
Operating System: Linux Debian Sarge
PHP Version: 5.1.4
New Comment:
Did the GDB backtrace change when you removed all those ./configure
options ?
Previous Comments:
------------------------------------------------------------------------
[2006-07-05 21:01:41] baco at infomaniak dot ch
Same issue with
5e8837ebfe06a3d9b121e763ee34a969 php5.2-latest.tar.gz (200607051830)
So to help you to analyse the problem with
--enable-xml --enable-libxml --with-libexpat-dir
I have pushed files to
http://imu77.infomaniak.ch/baco/
php5.2-200607051830-output.log -- the output of my compilation script
php5.2-200607051830.tar.gz -- the php source with compiled objects on
Debian Sarge and all Makefile generated by configure.
I cannot do more. Our issue is resolved by removing with-libexpat-dir
but the bug still present if libexpat used on our server.
------------------------------------------------------------------------
[2006-07-05 19:49:23] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2006-07-05 19:49:10] tony2001@php.net
--with-libexpat-dir option has been deprecated years ago and there is
no sense in using it if you have libxml in your system.
Also, it works just fine here.
------------------------------------------------------------------------
[2006-07-05 19:28:16] baco at infomaniak dot ch
So the answer is mixing together option "enable-xml" with
"with-libexpat-dir" crash PHP when calling
xml_parser_create().
I hope you can identify the compilation bug now ??
./configure \
--prefix=${PREFIX} \
--mandir=/usr/share/man \
--with-apxs=/opt/apache/bin/apxs \
--enable-debug \
--disable-all \
--enable-xml \
--enable-libxml \
\
--with-libexpat-dir
$ dpkg -l | grep expat
ii libexpat1 1.95.8-3 XML parsing C library -
runtime library
$ dpkg -l | grep expat
ii libexpat1 1.95.8-3 XML parsing C library -
runtime library
ii libexpat1-dev 1.95.8-3 XML parsing C library -
development kit
------------------------------------------------------------------------
[2006-07-05 19:02:19] baco at infomaniak dot ch
This can also reproduce the bug
so now I will remove one by one... until the rabbit ;-)
'./configure' '--prefix=/opt/php' '--mandir=/usr/share/man'
'--with-apxs=/opt/apache/bin/apxs' '--enable-debug'
'--disable-all' '--enable-libxml' '--with-libxml-dir'
'--enable-dom' '--with-xpm-dir' '--enable-simplexml'
'--enable-xml' '--with-libexpat-dir' '--with-xmlrpc'
N.B. We are using Apache 1.3.36
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/38017
--
Edit this bug report at http://bugs.php.net/?id=38017&edit=1