[xdebug-dev] Bug 0000171: set_time_limit stack overflow on 2nd request

From: <xdebug-dev[@]lists.xdebug.org>
Date: Fri, 10 Mar 2006 13:10:49 +0100

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000171
======================================================================
Reporter: Xuefer
Handler:
======================================================================
Project: Xdebug
Bug ID: 171
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: closed
Operating System:
PHP Version: 4.3.11
Xdebug Version: 2.0.0beta4
======================================================================
Date Submitted: 2006-03-10 12:35 CET
Last Modified: 2006-03-10 13:10 CET
======================================================================
Summary: set_time_limit stack overflow on 2nd request
Description:
sorry, this is another lazy bug report with only a few notes, i promise to
attach a clean, patch if the bug system allow me. but the fix is simple, i
think. just check xdebug.c, look for set_time_limit.

orig->internal_function.handler is already set to
zif_xdebug_set_time_limit in the 1st request, and
XG(orig_set_time_limit_func) = orig->internal_function.handler
can be wrong
and PHP_FUNCTION(xdebug_set_time_limit) will call itself until stack
overflow

suggested fix:
override of set_time_limit (and var_dump) in RINIT should be moved to
MINIT, with EG changed to CG.

======================================================================

----------------------------------------------------------------------
 derick - 2006-03-10 13:10 CET
----------------------------------------------------------------------
Thanks for this report. I fixed this differently be simply restoring the
function pointers in RSHUTDOWN.

Bug History
Date Modified Username Field Change
======================================================================
2006-03-10 12:35Xuefer New Bug
2006-03-10 12:35Xuefer Bug Monitored: Xuefer
2006-03-10 13:10derick Bugnote Added: 0000384
2006-03-10 13:10derick Status new => closed
======================================================================
Received on Fri Mar 10 2006 - 13:10:53 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST