#42666 [Fbk-Opn]: Loading XSL stylesheet with syntactical problem causes Apache to segfault.

2007-09-16 Thread per dot jessen at enidan dot com
 ID:   42666
 User updated by:  per dot jessen at enidan dot com
 Reported By:  per dot jessen at enidan dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Linux
 PHP Version:  5.2.4
 New Comment:

The reproduce script requires virtual() which isn't available in CLI.


Previous Comments:


[2007-09-16 14:51:24] [EMAIL PROTECTED]

Does the crash happen in CLI?



[2007-09-14 12:13:45] per dot jessen at enidan dot com

I ran apache with gdb to produce this backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1214642496 (LWP 26256)]
0xb77fa792 in zend_get_executed_lineno () from
/usr/lib/apache2/mod_php5.so
(gdb) bt
#0  0xb77fa792 in zend_get_executed_lineno () from
/usr/lib/apache2/mod_php5.so
#1  0xbfa1fcd8 in ?? ()
#2  0xb7809e05 in zend_error_noreturn () from
/usr/lib/apache2/mod_php5.so
#3  0xb7809e05 in zend_error_noreturn () from
/usr/lib/apache2/mod_php5.so
#4  0xb77c0fd4 in php_verror () from /usr/lib/apache2/mod_php5.so
#5  0xb77c14df in php_error_docref0 () from
/usr/lib/apache2/mod_php5.so
#6  0xb76e6656 in php_libxml_structured_error_handler () from
/usr/lib/apache2/mod_php5.so
#7  0xb76e66bc in php_libxml_error_handler () from
/usr/lib/apache2/mod_php5.so
#8  0xb6bfbcac in xsltTransformError () from /usr/lib/libxslt.so.1
#9  0xb6bf87e4 in xsltParseStylesheetProcess () from
/usr/lib/libxslt.so.1
#10 0xb6bf92cd in xsltParseStylesheetImportedDoc () from
/usr/lib/libxslt.so.1
#11 0xb6bf939a in xsltParseStylesheetDoc () from /usr/lib/libxslt.so.1
#12 0xb6ca3918 in zif_xsl_xsltprocessor_import_stylesheet () from
/usr/lib/php5/extensions/xsl.so
#13 0xb783909b in execute () from /usr/lib/apache2/mod_php5.so
#14 0xb7829a98 in execute () from /usr/lib/apache2/mod_php5.so
#15 0xb78087e3 in zend_execute_scripts () from
/usr/lib/apache2/mod_php5.so
#16 0xb77c2570 in php_execute_script () from
/usr/lib/apache2/mod_php5.so
#17 0xb788ea4d in php_ap2_register_hook () from
/usr/lib/apache2/mod_php5.so
#18 0x800327ad in ap_run_handler () from /usr/sbin/httpd2-prefork
#19 0x80036217 in ap_invoke_handler () from /usr/sbin/httpd2-prefork
#20 0x8004247e in ap_process_request () from /usr/sbin/httpd2-prefork
#21 0x8003f278 in ap_register_input_filter () from
/usr/sbin/httpd2-prefork
#22 0x8003a83d in ap_run_process_connection () from
/usr/sbin/httpd2-prefork
#23 0x80046c67 in ap_graceful_stop_signalled () from
/usr/sbin/httpd2-prefork
#24 0x80046f4a in ap_graceful_stop_signalled () from
/usr/sbin/httpd2-prefork
#25 0x80047e51 in ap_mpm_run () from /usr/sbin/httpd2-prefork
#26 0x8001dd4b in main () from /usr/sbin/httpd2-prefork



[2007-09-14 10:14:59] per dot jessen at enidan dot com

OK, I've updated the tar ball:

http://jessen.ch/files/php-problem-sep2007.tar.gz

There are now only 5 lines of PHP code. The included file is empty as
is the XSLT stylesheet. I'm pretty certain the problem is actually
caused by the virtual() call, but it doesn't manifest itself till later.



[2007-09-14 09:55:01] [EMAIL PROTECTED]

Please cut the script down to minimum code (and without the HTML) that
can reproduce the error. Is this reproduceable running via CLI instead
of within apache? Also a backtrace would be useful as I cant reproduce
this in Linux or Windows.



[2007-09-14 09:02:49] per dot jessen at enidan dot com

Description:

Loading an XSLT stylesheet with a syntactical problem causes Apache to
segfault.  Looks like bad error-handling. 

Reproduce code:
---
http://jessen.ch/files/php-problem-sep2007.tar.gz

Let me know if you need a core dump or anything else. The above will
produce a segfault every time problem.phtml.en is loaded. 

Expected result:

Apache segfault. 






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


#42666 [Fbk-Opn]: Loading XSL stylesheet with syntactical problem causes Apache to segfault.

2007-09-14 Thread per dot jessen at enidan dot com
 ID:   42666
 User updated by:  per dot jessen at enidan dot com
 Reported By:  per dot jessen at enidan dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Linux
 PHP Version:  5.2.4
 New Comment:

OK, I've updated the tar ball:

http://jessen.ch/files/php-problem-sep2007.tar.gz

There are now only 5 lines of PHP code. The included file is empty as
is the XSLT stylesheet. I'm pretty certain the problem is actually
caused by the virtual() call, but it doesn't manifest itself till later.


Previous Comments:


[2007-09-14 09:55:01] [EMAIL PROTECTED]

Please cut the script down to minimum code (and without the HTML) that
can reproduce the error. Is this reproduceable running via CLI instead
of within apache? Also a backtrace would be useful as I cant reproduce
this in Linux or Windows.



[2007-09-14 09:02:49] per dot jessen at enidan dot com

Description:

Loading an XSLT stylesheet with a syntactical problem causes Apache to
segfault.  Looks like bad error-handling. 

Reproduce code:
---
http://jessen.ch/files/php-problem-sep2007.tar.gz

Let me know if you need a core dump or anything else. The above will
produce a segfault every time problem.phtml.en is loaded. 

Expected result:

Apache segfault. 






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