#29108 [Opn->Csd]: xslt segfaults when ze1_compatibility_mode is on
| From: | sniper@php.net | Date: | Sun, 06 Mar 2005 21:08:01 +0000 |
| Subject: | #29108 [Opn->Csd]: xslt segfaults when ze1_compatibility_mode is on | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74974@lists.php.net to get a copy of this message | ||
ID: 29108
Updated by: sniper@php.net
Reported By: tony2001 at phpclub dot net
-Status: Open
+Status: Closed
Bug Type: XSLT related
Operating System: Linux 2.4.23
PHP Version: 5CVS-2004-07-12 (dev)
New Comment:
Seems to be fixed in CVS (does not crash for me)
Previous Comments:
------------------------------------------------------------------------
[2004-07-12 14:58:13] tony2001 at phpclub dot net
Yep, this patch fixes the problem.
At least it doesn't segfault anymore.
------------------------------------------------------------------------
[2004-07-12 14:52:32] chregu@php.net
Could you try the patch at
http://trash.chregu.tv/php_xsl.c.diff.txt
and see if it helps
(patch by Rob)
------------------------------------------------------------------------
[2004-07-12 12:37:09] tony2001 at phpclub dot net
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 this bug report at http://bugs.php.net/?id=29108&edit=1