Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42607 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87510 invoked from network); 13 Jan 2009 15:54:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2009 15:54:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi-ict.nl Linux 2.6 Received: from [82.94.239.7] ([82.94.239.7:49993] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/9B-42308-A29BC694 for ; Tue, 13 Jan 2009 10:54:19 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id n0DFsEPr023500; Tue, 13 Jan 2009 16:54:14 +0100 Date: Tue, 13 Jan 2009 16:54:14 +0100 (CET) X-X-Sender: derick@kossu.ez.no To: Dmitry Stogov cc: PHP Developers Mailing List , Stanislav Malyshev , Andi Gutmans In-Reply-To: <4969C4B1.5090004@zend.com> Message-ID: References: <49627FCF.80108@zend.com> <49628CEF.2070807@zend.com> <4969C4B1.5090004@zend.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] call_user_func segfault From: derick@php.net (Derick Rethans) 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