#35088 [Opn-Asn]: apache module core dumps when DOM method loadXML is called

2005-11-04 Thread sniper
 ID:   35088
 Updated by:   [EMAIL PROTECTED]
 Reported By:  cole at ccdc dot cam dot ac dot uk
-Status:   Open
+Status:   Assigned
 Bug Type: DOM XML related
 Operating System: IRIX 6.5.18m
 PHP Version:  5CVS-2005-11-03
 Assigned To:  helly
 New Comment:

Marcus, now there's another compile failure. :)
(And this is first time I'd like to assign same bug to multiple persons
too, so when you get that fixed, assign to cellog, about the PEAR
issue)



Previous Comments:


[2005-11-04 00:25:35] cole at ccdc dot cam dot ac dot uk

the latest snapshot still fails to compile at the same point - 

/bin/sh /local/cole/php5-200511032130/libtool --silent
--preserve-dup-deps --mode=compile cc  -Iext/spl/
-I/local/cole/php5-200511032130/ext/spl/ -DPHP_ATOM_INC
-I/local/cole/php5-200511032130/include
-I/local/cole/php5-200511032130/main -I/local/cole/php5-200511032130
-I/usr/local/include/libxml2
-I/local/cole/php5-200511032130/ext/date/lib
-I/local/cole/php5-200511032130/TSRM
-I/local/cole/php5-200511032130/Zend  -D_XPG_IV  -g   -c
/local/cole/php5-200511032130/ext/spl/php_spl.c -o ext/spl/php_spl.lo 
cc-1551 cc: WARNING File =
/local/cole/php5-200511032130/ext/spl/php_spl.c, Line = 398
  The variable func_name is used before its value is set.

   
zend_throw_exception_ex(spl_ce_LogicException, 0 TSRMLS_CC, Function
spl_autoload_call() cannot be registered, func_name);
   

^

cc-1028 cc: ERROR File =
/local/cole/php5-200511032130/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};



[2005-11-03 23:39:07] cole at ccdc dot cam dot ac dot uk

Warning: call_user_func(PEAR_Task_Replace::validateXml): First argument
is expected to be a valid callback in
phar://install-pear-nozlib.phar/PEAR/PackageFile/v2/Validator.php on
line 1064

Fatal error: Call to undefined method PEAR_Error::getVersion() in 
I compiled the first latest snapshot with gcc 3.3 but now doing make
install fails - see PEAR errors below.

I'll try out the 'new' latest snap shot with mips-pro

phar://install-pear-nozlib.phar/index.php on line 112

Warning: call_user_func_array(): First argument is expected to be a
valid callback, 'System::_removeTmpFiles' was given in
phar://install-pear-nozlib.phar/PEAR.php on line 787
*** Error code 255 (bu21)
*** Error code 1 (bu21)



[2005-11-03 23:01:46] [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

At least the compile problem in ext/spl should be fixed.



[2005-11-03 22:42:21] [EMAIL PROTECTED]

Marcus, can you check that compile failure (found in ext/spl) mentioned
above?



[2005-11-03 22:38:10] cole at ccdc dot cam dot ac dot uk

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



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

-- 
Edit this bug report at http://bugs.php.net/?id=35088edit=1


#35088 [Opn-Asn]: apache module core dumps when DOM method loadXML is called

2005-11-03 Thread sniper
 ID:   35088
 Updated by:   [EMAIL PROTECTED]
 Reported By:  cole at ccdc dot cam dot ac dot uk
-Status:   Open
+Status:   Assigned
 Bug Type: DOM XML related
 Operating System: IRIX 6.5.18m
 PHP Version:  5.0.5
-Assigned To:  
+Assigned To:  helly
 New Comment:

Marcus, can you check that compile failure (found in ext/spl) mentioned
above?


Previous Comments:


[2005-11-03 22:38:10] cole at ccdc dot cam dot ac dot uk

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



[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=35088edit=1