Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91101 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27543 invoked from network); 6 Feb 2016 18:50:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2016 18:50:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.220.45 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.220.45 mail-pa0-f45.google.com Received: from [209.85.220.45] ([209.85.220.45:36749] helo=mail-pa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/A3-28222-F6046B65 for ; Sat, 06 Feb 2016 13:50:24 -0500 Received: by mail-pa0-f45.google.com with SMTP id yy13so51509059pab.3 for ; Sat, 06 Feb 2016 10:50:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lerdorf-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type; bh=Mny64XocikGAt49pe4LHTUI7f2iNtzoJy1ay2Ircm4Y=; b=I6OCHaEUInbSRO6kaOFJVgRmEWjtF1hRjX8ZeN/5FxmQlMvJPiLi3M5KDMuW9iANsV L8Xj4Lhj86HIlovq2XC2gmXPgNrPwTnwj+Okfsad/w61V7TmVlsdZIwdD6Sj84B5wNAZ kyUm8g+o5QRTezD0Ohn/ChSKty+4DKqu5jnO1+HHu/e9gVeLnfZutla+g7vQqSLe+SaW CzPGrJXIwNRUnVfFQMVlwxHRXN9SJgVCcb362wVXhfYGUyXeKafQmR93/l++eWX4DnoG hp7arn7bgTlPzeJTSKAJumeKxoMMIrDFe6759y16kf46PjHCpg1NNrk4FSMaD3l7OTXK b1Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type; bh=Mny64XocikGAt49pe4LHTUI7f2iNtzoJy1ay2Ircm4Y=; b=BNbQ7iSYJSDnjiYgUOXqsZg5ndPs9rEePTkNSC2TeWxbWQ9zJOjuL56GRcC52r/NMw 8SRxKkG0ErRJGKXNky3CbCAPN6Xku5RliQnx2hu4gkS63zziXtalqqwADzr1l+/feXAw WczxOVNzCBaCvk+MYqRZhIJSAmkz04976h5IsX+WeDsS/bwkmwkg/gplD+FSQP6bRAjx q8OguCWIwOvxwtQs/PI+120uWlylFfw5ixPpX9ZtantKUbinNthItpI+KzrQUaIZf00v a0G8blEU2COR+vyBXeKD/1Tr84zHWVxozzDBUFV7hrD2KYqm4W86wBQrBOHpeSAwIJHE +vWA== X-Gm-Message-State: AG10YOTAwgDjIRZwz3F1ZquvmvHjFJe5sNUCV9XkPpKTa+4pXfmXmcSQyQziRkFx1JVePg== X-Received: by 10.67.15.73 with SMTP id fm9mr30057516pad.130.1454784619483; Sat, 06 Feb 2016 10:50:19 -0800 (PST) Received: from ?IPv6:2601:647:4802:1669:f941:924a:d1e6:cf17? ([2601:647:4802:1669:f941:924a:d1e6:cf17]) by smtp.googlemail.com with ESMTPSA id fa3sm32736671pab.45.2016.02.06.10.50.16 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 06 Feb 2016 10:50:17 -0800 (PST) To: Simon Svensson , internals@lists.php.net References: <4E.05.07203.40CE4B65@pb1.pair.com> <5B.F5.07203.F5AF4B65@pb1.pair.com> <56B5143E.1010101@lerdorf.com> <21.43.28222.03736B65@pb1.pair.com> Message-ID: <56B64063.9050705@lerdorf.com> Date: Sat, 6 Feb 2016 10:50:11 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <21.43.28222.03736B65@pb1.pair.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7FR3mDNxPKE4TcWFDB1NKgrQCna7qNUgV" Subject: Re: [PHP-DEV] Segmentation fault in PHP 7.0.3 (and earlier versions) From: rasmus@lerdorf.com (Rasmus Lerdorf) --7FR3mDNxPKE4TcWFDB1NKgrQCna7qNUgV Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/06/2016 10:10 AM, Simon Svensson wrote: > 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 (bu= t >>> 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) t= o >>> 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 sourc= es >> 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 >> >> >=20 > An update to avoid leaving the thread hanging in suspense. >=20 > I was in contact with Ond=C5=99ej Sur=C3=BD, the author of the PPA I wa= s 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. >=20 > My test-suite now terminates like this: >=20 > PHPUnit 4.8.21 by Sebastian Bergmann and contributors. >=20 > Runtime: PHP 7.0.3 > Configuration: /root/web/phpunit.xml >=20 > ........................................... 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) <=3D > (executor_globals.vm_stack_end)' failed. > Aborted (core dumped) >=20 > The failed assertion and my backtrace matches exactly that of > https://bugs.php.net/bug.php?id=3D71474 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. >=20 > I've recompiled using the PHP-7.0 branch, and my test-suite works there= =2E > I look forward to the 7.0.4 release! Thank you very much for your persistence on this. It is motivating for us when people put a bit of effort into tracking down issues. And yes, that fix will be in 7.0.4. It came in too late to be part of 7.0.3. -Rasmus --7FR3mDNxPKE4TcWFDB1NKgrQCna7qNUgV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAla2QGgACgkQlxayKTuqOuAn1QCdGsMg9sVRthnxKrqsEl0VYr/F xLEAn2HF38sxrmDnliJi7UVtHIPmdJiw =G7nB -----END PGP SIGNATURE----- --7FR3mDNxPKE4TcWFDB1NKgrQCna7qNUgV--