From: tony2001 at phpclub dot net
Operating system: Linux 2.4.23
PHP version: 5CVS-2004-07-12 (dev)
PHP Bug Type: Reproducible crash
Bug description: xslt segfaults when ze1_compatibility_mode is on
Description:
------------
XSLT segfaults when trying to execute rather simple script and
zend.ze1_compatibility_mode is On.
Turning zend.ze1_compatibility_mode = Off it works ok.
Reproduce code:
---------------
<?
$xslt = new xsltProcessor;
$document = new DomDocument();
$document->preserveWhiteSpace = false;
$f=$document->load('test.xslt');
$xslt->importStyleSheet($document);
?>
Expected result:
----------------
Found a top-level element xslutput with null namespace URI
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
0x081ec1d2 in zif_xsl_xsltprocessor_import_stylesheet (ht=1,
return_value=0x83a69dc, this_ptr=0x83b8eec,
return_value_used=0) at
/home/tony/CVS/php-src/ext/xsl/xsltprocessor.c:369
369 if (((xsltStylesheetPtr) intern->ptr)->_private !=
NULL) {
(gdb) bt
#0 0x081ec1d2 in zif_xsl_xsltprocessor_import_stylesheet (ht=1,
return_value=0x83a69dc, this_ptr=0x83b8eec,
return_value_used=0) at
/home/tony/CVS/php-src/ext/xsl/xsltprocessor.c:369
#1 0x0826a938 in zend_do_fcall_common_helper (execute_data=0xbfffd3b0,
opline=0x83b8dd4, op_array=0x83b4374)
at /home/tony/CVS/php-src/Zend/zend_execute.c:2699
#2 0x0826b014 in zend_do_fcall_by_name_handler (execute_data=0xbfffd3b0,
opline=0x83b8dd4, op_array=0x83b4374)
at /home/tony/CVS/php-src/Zend/zend_execute.c:2810
#3 0x08266a02 in execute (op_array=0x83b4374) at
/home/tony/CVS/php-src/Zend/zend_execute.c:1391
#4 0x0823f417 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /home/tony/CVS/php-src/Zend/zend.c:1061
#5 0x081f1d81 in php_execute_script (primary_file=0xbffff7f0) at
/home/tony/CVS/php-src/main/main.c:1627
#6 0x082750ca in main (argc=3, argv=0xbffff884) at
/home/tony/CVS/php-src/sapi/cli/php_cli.c:943
#7 0x40cc6af7 in __libc_start_main () from /lib/i686/libc.so.6
--
Edit bug report at http://bugs.php.net/?id=29108&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29108&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29108&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29108&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29108&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29108&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29108&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29108&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29108&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29108&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29108&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29108&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29108&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29108&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29108&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29108&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29108&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29108&r=float