On Sun, 11 Jan 2009, Dmitry Stogov wrote:

> Stanislav Malyshev wrote:
>
> > Derick Rethans wrote: 
> >
> >> Not beyond running it from the test dir:
> >>
> >> export ZEND_ALLOC=0
> >> wget http://files.derickrethans.nl/test.tar.gz
> >> tar -xvzf test.tar.gz
> >> cd test
> >> #php-5.2dev test.php
> >> php test.php
> >>
> >> echos:
> >> Segmentation fault
> > 
> > COuldn't get segfault, but got valgrind complaining. Looks like 
> > something to do with zend_ptr_stack_push reallocating function stack 
> > but call_user_func using it afterwards with old address. Will look 
> > into it, thanks.
> 
> The crash is definitely caused by argument stack reallocation.
> 
> PHP-5.3 has a segmented stack which solves the issue.
> 
> I don't think we should try to solve it in 5.2 as it may be a
> significant BC break for PHP debuggers.

I'd rather have PHP not crash, than having to do a little work on making 
a debugger work again. 

regards,
Derick

-- 
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org
twitter: derickrethans

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to