Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91091 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46387 invoked from network); 5 Feb 2016 18:58:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2016 18:58:30 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.53 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 74.125.82.53 mail-wm0-f53.google.com Received: from [74.125.82.53] ([74.125.82.53:36798] helo=mail-wm0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/75-07203-3D0F4B65 for ; Fri, 05 Feb 2016 13:58:29 -0500 Received: by mail-wm0-f53.google.com with SMTP id p63so39452206wmp.1 for ; Fri, 05 Feb 2016 10:58:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=l7KXA3HdZ0dmIAuY1zFER8ZHYInjPbmO29Im1jrUGf8=; b=xnZfpnosxku+hUTZMBfgIHyPuf9EwltZ5JzWkQmDQ0E7qiTk/H0963UwLt+kYklexC o3xQf4txcJ8s8WzHuBqrNaXLmc6QD0M0MDKO1/5EV8p4KNnyQr3pa1l/LkSUR6oxM0OR 2yU5hBQPZh4ZgKjnXVudN9BYYkugrjyq/gLfA0x4Q6bk/StskbOO8gUc8ISsWgJOuQ0r rl2CATHC4MKZ2B4cfFAdnMs9dIqpikI4qn+9CYCqxviA60hFtCRVrNu7duv5yZpS0ma7 JPvOA59N0CUBlcYlopXbzYyVgh3eGIxprmNHlBSaVj1iQS12bj5612TS9rMKCXGxExSH V/Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=l7KXA3HdZ0dmIAuY1zFER8ZHYInjPbmO29Im1jrUGf8=; b=OlhnEllsWeZQOoGTnWNCxd/BcDG/d6NTXW8RydzwU9FIKPQK7iiYDo0TxEPXOO8fZQ zOUHxyJoIlqqWAjS9xgFdPoxr3i2Y3L9tFRuQ+heknODtyl6q36Hp5JIWiqLCkMVKPhy MuGFAVHl3t0JqnEEDzymcEuFPl4+psCVfEILd71nrioIlT3rcF49CYI+JxHA8rk6QMMN fkoi7opMzpdSB+bqdNNcHVRMzpxh7tmU6HtcQuDT/qRFtkNDaZwzqUAz7fOVQ057NcY8 wrdNualFPzFoAhjsvcOGa1OCCJMV3fy3+woRFYt4G9GyvLpPS4ovB+deljXhPYJw1CwW rB5g== X-Gm-Message-State: AG10YOQKLoGOapRsfKwToJusvtRxt9to7VNTyOt2fDMrwo4uZ1TGKSVQd1T1JOYnrB8HHIcRT6QE0GRggpKZJQ== X-Received: by 10.194.243.103 with SMTP id wx7mr16974234wjc.136.1454698704409; Fri, 05 Feb 2016 10:58:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.80.42 with HTTP; Fri, 5 Feb 2016 10:57:45 -0800 (PST) In-Reply-To: <4E.05.07203.40CE4B65@pb1.pair.com> References: <4E.05.07203.40CE4B65@pb1.pair.com> Date: Fri, 5 Feb 2016 19:57:45 +0100 Message-ID: To: Simon Svensson Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Segmentation fault in PHP 7.0.3 (and earlier versions) From: julienpauli@gmail.com (julien PAULI) On Fri, Feb 5, 2016 at 7:37 PM, Simon Svensson wrote: > Hi, > > I'm using Ond=C5=99ej Sur=C3=BD's ppa which was recently upgraded to PHP = 7.0.3. My > test-suite is causing segmentation faults since 7.0.0 RC5, including the > 7.0.3 release. > > I can reproduce this consistently by running my test-suite in PHPUnit. > Identifying the tests executing when the fault occurs (using --debug) > and rerunning them one-by-one does not reproduce the segmentation faults. > > I'm running this on Ubuntu 14.04.3 LTS. My application is built on with > Laravel 5.1 and Doctrine 2.5. I'm using PHPUnit 4.8 and an in-memory > sqlite database for the tests. (I'm mentioning this to convey what type > of code is running.) > > My test-suite works on PHP 5.6 and HHVM. > > I've got a gist with a gdb backtrace, with and without opcache. (There's > no difference.) > With: https://gist.github.com/sisve/0f75be357e557d439c19 > Without: https://gist.github.com/sisve/01542193a27fd9da2b7b > > I've verified that the opcache is disabled by '/usr/bin/php7.0 -i | grep > "opcache.enable"' not returning anything, and '/usr/bin/php7.0 -m' does > not contain any entry for opcache. (I'm unsure if this is enough.) > > I've got some older backtraces from my previous failures. These may be > related, or related to something totally different. These have unknown > opcache-status (probably enabled). > PHP 7.0.2: https://gist.github.com/sisve/05b4c4075ef223c4ab52 > PHP 7.0.0-RC?: https://gist.github.com/sisve/fe8e1b85b4cc488ff457 > PHP 7.0.0-RC5: https://gist.github.com/sisve/7ce5980e05068972b8e6 > PHP 7.0.0-RC5: https://gist.github.com/sisve/ad318ca820a38bdb8133 > > I've been whining some time on irc about this, and finally got my thumb > out of my behind to write this email. > > I doubt that these traces are enough to identify and solve the problem. > What can I do to gather more information and debug this further? > Interesting. The traces tell us some really vague clue, we'd really need a reproducer. It seems to be involving generators triggered through reflection, faulting on a foreach() by value. However, can you confirm that you *don't* reproduce with a debug build of PHP ? (exact same reproducer) This is really weird. You may try -O0 -g only. Julien.Pauli