Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91100 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24489 invoked from network); 6 Feb 2016 18:10:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2016 18:10:58 -0000 X-Host-Fingerprint: 89.236.29.179 h59ec1db3.selucle.dyn.perspektivbredband.net Received: from [89.236.29.179] ([89.236.29.179:18611] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/43-28222-03736B65 for ; Sat, 06 Feb 2016 13:10:57 -0500 Message-ID: <21.43.28222.03736B65@pb1.pair.com> To: internals@lists.php.net References: <4E.05.07203.40CE4B65@pb1.pair.com> <5B.F5.07203.F5AF4B65@pb1.pair.com> <56B5143E.1010101@lerdorf.com> X-Enigmail-Draft-Status: N1110 Date: Sat, 6 Feb 2016 19:10:53 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56B5143E.1010101@lerdorf.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Posted-By: 89.236.29.179 Subject: Re: [PHP-DEV] Segmentation fault in PHP 7.0.3 (and earlier versions) From: sisve@devhost.se (Simon Svensson) On 05/02/16 22:29, Rasmus Lerdorf wrote: > On 02/05/2016 11:39 AM, Simon Svensson wrote: >> I am unable to reproduce the error with this recompiled source, both >> with the /usr/local/php70/bin/php and /usr/local/php70-debug/bin/php. >> This is the same experience I had with earlier releases, where I have >> been unable to reproduce the segmentation faults when recompiling (but >> always have them occur from the ppa). >> >> Is there any guide for compiling the source? I could attempt to setup a >> new virtual machine with Ubuntu 14.04 (instead of php7dev's Debian) to >> reproduce the error, but I do know know the steps needed to compile >> everything. >> >> The newly build, and working, versions: >> >> /usr/local/php70/bin/php --version: >> PHP 7.0.4-dev (cli) (built: Feb 5 2016 19:14:08) ( NTS ) >> Copyright (c) 1997-2016 The PHP Group >> Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies >> with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend >> Technologies >> >> /usr/local/php70-debug/bin/php --version: >> PHP 7.0.4-dev (cli) (built: Feb 5 2016 19:19:10) ( NTS DEBUG ) >> Copyright (c) 1997-2016 The PHP Group >> Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies >> with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend >> Technologies > > "php -i" will show you the configure flags that were used to build it, > so you could try to match those to see if you can reproduce with sources > from php.net. Otherwise, if it is something that only happens with the > distro build then there isn't a while lot we can do to help you. > > -Rasmus > > An update to avoid leaving the thread hanging in suspense. I was in contact with Ondřej Surý, the author of the PPA I was using, and got help in grabbing build-logs so that I should be able to reproduce the compile locally, this time without all the optimization. However, since I still do not speak configure-ish I failed to resolve all packages/libraries needed for a complete build, but I managed to smash my keyboard enough to get a working configure & make. My test-suite now terminates like this: PHPUnit 4.8.21 by Sebastian Bergmann and contributors. Runtime: PHP 7.0.3 Configuration: /root/web/phpunit.xml ........................................... 43 / 1229 ( 3%) ........................................... 86 / 1229 ( 6%) ........................................... 129 / 1229 ( 10%) ........................................... 172 / 1229 ( 13%) ........................................... 215 / 1229 ( 17%) ...............R........................... 258 / 1229 ( 20%) ........................................... 301 / 1229 ( 24%) ........................................... 344 / 1229 ( 27%) .R.R.....................R................. 387 / 1229 ( 31%) ........................................... 430 / 1229 ( 34%) ........................................... 473 / 1229 ( 38%) ........................................... 516 / 1229 ( 41%) ........................................... 559 / 1229 ( 45%) ........................................... 602 / 1229 ( 48%) ........................................... 645 / 1229 ( 52%) .php: /root/php-src/Zend/zend_execute.h:275: zend_vm_stack_free_call_frame_ex: Assertion `(executor_globals.vm_stack_top) > (zval *) (executor_globals.vm_stack) && (executor_globals.vm_stack_end) > (zval *) (executor_globals.vm_stack) && (executor_globals.vm_stack_top) <= (executor_globals.vm_stack_end)' failed. Aborted (core dumped) The failed assertion and my backtrace matches exactly that of https://bugs.php.net/bug.php?id=71474 which was fixed a few days ago, and is not part of the 7.0.3 release. It's part of the PHP-7.0 branch, so I presume this will be fixed in the 7.0.4 release. I've recompiled using the PHP-7.0 branch, and my test-suite works there. I look forward to the 7.0.4 release! // Simon