#42666 [Fbk-Opn]: virtual() causing Apache to segfault.

2007-10-23 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: Apache2 related
 Operating System: Linux
 PHP Version:  5.2.4
 New Comment:

Sorry, forgot to mention that - yes, I've removed the XSL calls, and
added a plain syntax error. The segfault still happens.


Previous Comments:


[2007-10-22 19:24:10] [EMAIL PROTECTED]

And does the problem occur without XSL (by causing some other error) ?
(I can't check the tar package right now)



[2007-10-22 11:35:37] per dot jessen at enidan dot com

My apache config is nothing particularly fancy, I just do plain
language negotiation. Still, I've updated the reproduce code:

http://jessen.ch/files/php-bug42666-oct2007.tar.gz



[2007-10-22 11:05:51] [EMAIL PROTECTED]

Cut'n'paste of the code needed:

?php
virtual(problem-include); // How?
if (FALSE===($xp=new XSLTProcessor())) die(unable to create xslt
engine);
$xsl=new DOMDocument;
$xsl-load(empty.xsl);
$xp-importStyleSheet($xsl);
?

I'm not sure how to use the files in that tar ball..I guess you have
some complex multiviews configuration also in there?
Can you please try to cut down all the external stuff to minimum, ie.
without using some fancy Apache configurations?

Does the crash happen if you have some other error? ie. without using
XSL?




[2007-10-01 12:25:27] per dot jessen at enidan dot com

Yes, I already did back on 14 September.  The tarball is the same:
http://jessen.ch/files/php-problem-sep2007.tar.gz



[2007-10-01 12:15:42] [EMAIL PROTECTED]

You need to provide us a short but complete example script which can be
used to reproduce this problem.



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

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


#42666 [Fbk-Opn]: virtual() causing Apache to segfault.

2007-10-23 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: Apache2 related
 Operating System: Linux
 PHP Version:  5.2.4
 New Comment:

Sure. 

problem.phtlm.en:

?php
virtual(problem-include.phtml.en);
klop
?

problem-include.phtml.en:

?php
?


Previous Comments:


[2007-10-23 09:45:27] [EMAIL PROTECTED]

So you should be able to now provide the reproducing script here
instead of the tar package?



[2007-10-23 06:19:35] per dot jessen at enidan dot com

Sorry, forgot to mention that - yes, I've removed the XSL calls, and
added a plain syntax error. The segfault still happens.



[2007-10-22 19:24:10] [EMAIL PROTECTED]

And does the problem occur without XSL (by causing some other error) ?
(I can't check the tar package right now)



[2007-10-22 11:35:37] per dot jessen at enidan dot com

My apache config is nothing particularly fancy, I just do plain
language negotiation. Still, I've updated the reproduce code:

http://jessen.ch/files/php-bug42666-oct2007.tar.gz



[2007-10-22 11:05:51] [EMAIL PROTECTED]

Cut'n'paste of the code needed:

?php
virtual(problem-include); // How?
if (FALSE===($xp=new XSLTProcessor())) die(unable to create xslt
engine);
$xsl=new DOMDocument;
$xsl-load(empty.xsl);
$xp-importStyleSheet($xsl);
?

I'm not sure how to use the files in that tar ball..I guess you have
some complex multiviews configuration also in there?
Can you please try to cut down all the external stuff to minimum, ie.
without using some fancy Apache configurations?

Does the crash happen if you have some other error? ie. without using
XSL?




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

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


#42666 [Fbk-Opn]: virtual() causing Apache to segfault.

2007-10-22 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: Apache2 related
 Operating System: Linux
 PHP Version:  5.2.4
 New Comment:

My apache config is nothing particularly fancy, I just do plain
language negotiation. Still, I've updated the reproduce code:

http://jessen.ch/files/php-bug42666-oct2007.tar.gz


Previous Comments:


[2007-10-22 11:05:51] [EMAIL PROTECTED]

Cut'n'paste of the code needed:

?php
virtual(problem-include); // How?
if (FALSE===($xp=new XSLTProcessor())) die(unable to create xslt
engine);
$xsl=new DOMDocument;
$xsl-load(empty.xsl);
$xp-importStyleSheet($xsl);
?

I'm not sure how to use the files in that tar ball..I guess you have
some complex multiviews configuration also in there?
Can you please try to cut down all the external stuff to minimum, ie.
without using some fancy Apache configurations?

Does the crash happen if you have some other error? ie. without using
XSL?




[2007-10-01 12:25:27] per dot jessen at enidan dot com

Yes, I already did back on 14 September.  The tarball is the same:
http://jessen.ch/files/php-problem-sep2007.tar.gz



[2007-10-01 12:15:42] [EMAIL PROTECTED]

You need to provide us a short but complete example script which can be
used to reproduce this problem.



[2007-09-17 11:48:37] [EMAIL PROTECTED]

updated summary.
The xsl code just exposes the problem caused by the virtual call.



[2007-09-16 16:50:31] per dot jessen at enidan dot com

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



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

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


#42666 [Fbk-Opn]: virtual() causing Apache to segfault.

2007-10-01 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: Apache2 related
 Operating System: Linux
 PHP Version:  5.2.4
 New Comment:

Yes, I already did back on 14 September.  The tarball is the same:
http://jessen.ch/files/php-problem-sep2007.tar.gz


Previous Comments:


[2007-10-01 12:15:42] [EMAIL PROTECTED]

You need to provide us a short but complete example script which can be
used to reproduce this problem.



[2007-09-17 11:48:37] [EMAIL PROTECTED]

updated summary.
The xsl code just exposes the problem caused by the virtual call.



[2007-09-16 16:50:31] per dot jessen at enidan dot com

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



[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



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

-- 
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-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 [NEW]: Loading XSL stylesheet with syntactical problem causes Apache to segfault.

2007-09-14 Thread per dot jessen at enidan dot com
From: per dot jessen at enidan dot com
Operating system: Linux
PHP version:  5.2.4
PHP Bug Type: Reproducible crash
Bug description:  Loading XSL stylesheet with syntactical problem causes Apache 
to segfault.

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 bug report at http://bugs.php.net/?id=42666edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42666r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42666r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42666r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42666r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42666r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42666r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42666r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42666r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42666r=support
Expected behavior:http://bugs.php.net/fix.php?id=42666r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42666r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42666r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42666r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42666r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42666r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42666r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42666r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42666r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42666r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42666r=mysqlcfg


#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


#42666 [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:   Open
 Bug Type: Reproducible crash
 Operating System: Linux
 PHP Version:  5.2.4
 New Comment:

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


Previous Comments:


[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