#35088 [Opn]: apache module core dumps when DOM method loadXML is called
| From: | cole at ccdc dot cam dot ac dot uk | Date: | Thu, 03 Nov 2005 16:38:23 +0000 |
| Subject: | #35088 [Opn]: apache module core dumps when DOM method loadXML is called | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-87486@lists.php.net to get a copy of this message | ||
ID: 35088
User updated by: cole at ccdc dot cam dot ac dot uk
Reported By: cole at ccdc dot cam dot ac dot uk
Status: Open
Bug Type: DOM XML related
Operating System: IRIX 6.5.18m
PHP Version: 5.0.5
New Comment:
Some more relevant info that I forgot in the initial report - the link
stage of make reported many duplicate symbols in building the apache
library. Most were dom module related. I suspect this is the root
cause, but fixing the issue is not obvious?
Previous Comments:
------------------------------------------------------------------------
[2005-11-03 17:34:04] cole at ccdc dot cam dot ac dot uk
Description:
------------
php child process core dumps while trying to execute
DOMDocument->loadXML() from within apache2
Reproduce code:
---------------
$doc = new DOMDocument();
$doc->formatOutput = true;
$doc->preserveWhiteSpace = false;
// Calling loadXML here causes the core dump
$doc->loadXML( "<hello></hello>");
Expected result:
----------------
Not to core dump!
Actual result:
--------------
It crashes.
Other possibly relevant things: The compilation of php and apache used
the native mips-pro compiler (rather than gcc).
Here's some data about the system, and the php shared object
We configured with
./configure --with-apxs2=/local/cole/apache2/bin/apxs
--prefix=/local/cole/php-5.0.5
From the server log
[Thu Nov 03 16:16:08 2005] [notice] child pid 1749448 exit signal
Segmentation fault (11), possible coredump in
/home/cole/not-backed-up/relibase_clean_build/relibase_irix_build/relibase
From ldd:
ldd libphp5.so
libm.so => /usr/lib32/libm.so
libz.so => /usr/lib32/libz.so
libxml2.so.3 => /usr/lib32/internal/libxml2.so.3
libc.so.1 => /usr/lib32/libc.so.1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35088&edit=1