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: Feedback
+Status: Open
Bug Type: DOM XML related
Operating System: IRIX 6.5.18m
PHP Version: 5.0.5
New Comment:
I tried compiling the php-latest build with mips-pro but got a compiler
error:
^
cc-1028 cc: ERROR File =
/local/cole/php5-200511031930/ext/spl/php_spl.c, Line = 452
The expression used must have a constant value.
autoload_func_info spl_alfi = {spl_func_ptr,
NULL, NULL};
^
1 error detected in the compilation of
"/local/cole/php5-200511031930/ext/spl/php_spl.c".
I will try with gcc 3.3
Previous Comments:
------------------------------------------------------------------------
[2005-11-03 21:42:54] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-11-03 17:38:22] cole at ccdc dot cam dot ac dot uk
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?
------------------------------------------------------------------------
[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