Re: call_user_func segfault
| From: | Derick Rethans | Date: | Tue, 13 Jan 2009 15:54:14 +0000 |
| Subject: | Re: call_user_func segfault | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42607@lists.php.net to get a copy of this message | ||
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