Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89183 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89993 invoked from network); 11 Nov 2015 19:40:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2015 19:40:16 -0000 Authentication-Results: pb1.pair.com header.from=fmk@webbypixel.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=fmk@webbypixel.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain webbypixel.com designates 173.255.241.80 as permitted sender) X-PHP-List-Original-Sender: fmk@webbypixel.com X-Host-Fingerprint: 173.255.241.80 mail.webbypixel.com Received: from [173.255.241.80] ([173.255.241.80:49961] helo=mail.webbypixel.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/31-16149-F9993465 for ; Wed, 11 Nov 2015 14:40:16 -0500 Received: from PA004424MAC.local (206-190-75-9.static.twtelecom.net [206.190.75.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: frank) by mail.webbypixel.com (Postfix) with ESMTPSA id 1818B60DD; Wed, 11 Nov 2015 11:40:13 -0800 (PST) To: Anatol Belski , 'Dmitry Stogov' References: <56428A30.4060803@php.net> <56439392.2020608@php.net> <01ab01d11cb7$f9605d10$ec211730$@belski.net> <5643993C.3020908@php.net> Cc: 'PHP Internals' Message-ID: <5643999D.2070207@webbypixel.com> Date: Wed, 11 Nov 2015 11:40:13 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5643993C.3020908@php.net> Content-Type: multipart/alternative; boundary="------------080303030806080506080901" Subject: Re: [PHP-DEV] PHP 7 Segmentation fault From: fmk@webbypixel.com ("Frank M. Kromann") --------------080303030806080506080901 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi Anatol, Sorry, I fogot to include the output of the grep. [frank@dev php-src-7]$ grep -rn _live_range Zend/ Zend/zend_opcode.c:83: op_array->last_live_range = 0; Zend/zend_compile.h:176:typedef struct _zend_live_range { Zend/zend_compile.h:179:} zend_live_range; Zend/zend_compile.h:364: int last_live_range; Zend/zend_compile.h:366: zend_live_range *live_range; Zend/zend_compile.c:579:static uint32_t zend_start_live_range(zend_op_array *op_array, uint32_t start) /* {{{ */ Zend/zend_compile.c:581: zend_live_range *range; Zend/zend_compile.c:583: op_array->last_live_range++; Zend/zend_compile.c:584: op_array->live_range = erealloc(op_array->live_range, sizeof(zend_live_range) * op_array->last_live_range); Zend/zend_compile.c:585: range = op_array->live_range + op_array->last_live_range - 1; Zend/zend_compile.c:587: return op_array->last_live_range - 1; Zend/zend_compile.c:591:static void zend_end_live_range(zend_op_array *op_array, uint32_t offset, uint32_t end) /* {{{ */ Zend/zend_compile.c:593: zend_live_range *range = op_array->live_range + offset; Zend/zend_compile.c:595: if (range->start == end && offset == op_array->last_live_range - 1) { Zend/zend_compile.c:596: op_array->last_live_range--; Zend/zend_compile.c:619: info.u.live_range_offset = zend_start_live_range(CG(active_op_array), start); Zend/zend_compile.c:643: zend_end_live_range(CG(active_op_array), loop_var->u.live_range_offset, end); Zend/zend_compile.c:6472: range = zend_start_live_range(CG(active_op_array), get_next_op_number(CG(active_op_array))); Zend/zend_compile.c:6485: zend_end_live_range(CG(active_op_array), range, get_next_op_number(CG(active_op_array))); Zend/zend_compile.c:6807: uint32_t range = zend_start_live_range(CG(active_op_array), rope_init_lineno); Zend/zend_compile.c:6822: zend_end_live_range(CG(active_op_array), range, opline - CG(active_op_array)->opcodes); Zend/zend_execute.c:2552: for (i = 0; i < EX(func)->op_array.last_live_range; i++) { Zend/zend_execute.c:2553: const zend_live_range *range = &EX(func)->op_array.live_range[i]; - Frank On 11/11/15 11:38, Frank M. Kromann wrote: > Hi Anatol, > > Here is what I have > > [frank@dev php-src-7]$ git show > commit d1077f7a897d9267a0cad3d64663fd952dd1c6b2 > Merge: e88e3f2 a2e59e7 > Author: Anatol Belski > Date: Wed Nov 11 16:35:07 2015 +0100 > > Merge branch 'PHP-7.0' > > * PHP-7.0: > fix format macro names in UPGRADING.INTERNALS > > [frank@dev php-src-7]$ git status > # On branch master > # Untracked files: > > I think that is the latest from git.php.net? > > - Frank > > On 11/11/15 11:34, Anatol Belski wrote: >> Hi Frank, >> >>> -----Original Message----- >>> From: Frank M. Kromann [mailto:fmk@php.net] >>> Sent: Wednesday, November 11, 2015 8:14 PM >>> To: Dmitry Stogov >>> Cc: PHP Internals >>> Subject: Re: [PHP-DEV] PHP 7 Segmentation fault >>> >>> Hi Dmitry, >>> >>> Yes this is the master branch. I have previously tested it on the >>> PHP-7.0 branch with the same result. I will do that again to verify >>> that the >>> problem is the same. >>> >>> I run vcsclean, buildconf, configure, make at least once a day. I do >>> not run the >>> make install as that will break all the sites on my dev box. I'm >>> just testing the >>> new binary with a command line script. >>> >>> I just did all the steps above and the result is still the same. >>> I'll try to create a >>> small script that can be used to reproduce the problem, but it might >>> be tricky as >>> it seems to have to do with the number of autoloaded classes, a >>> problem with >>> my PHP code (although PHP should not seg fault in that case). >>> >> I've just checked for zend_add_live_range - it's even not in the >> current master. Also ` grep -rn _live_range Zend/` finds nothing in >> PHP-7.0. Could you please check that you're using up-to-date source >> tree and the correct branch? It could be pretty much like something >> in that direction. >> >> Thanks >> > -- Frank M. Kromann, M.Sc.E.E. Web by Pixel, Inc. Phone: +1 949 742 7533 Fax: +1 949 742 7534 Cell: +1 949 702 1794 Denmark: +45 78 79 11 48 Web: http://webbypixel.com --------------080303030806080506080901--