Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89185 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93711 invoked from network); 11 Nov 2015 20:02:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2015 20:02:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:35141] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/F1-16149-0FE93465 for ; Wed, 11 Nov 2015 15:02:56 -0500 Received: by h1123647.serverkompetenz.net (Postfix, from userid 1006) id 8DDE36D2001; Wed, 11 Nov 2015 21:02:53 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on h1123647.serverkompetenz.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.5 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from w530phpdev (p579F3911.dip0.t-ipconnect.de [87.159.57.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by h1123647.serverkompetenz.net (Postfix) with ESMTPSA id 6487223D6162; Wed, 11 Nov 2015 21:02:51 +0100 (CET) To: "'Frank M. Kromann'" , "'Dmitry Stogov'" Cc: "'PHP Internals'" References: <56428A30.4060803@php.net> <56439392.2020608@php.net> <01ab01d11cb7$f9605d10$ec211730$@belski.net> <5643993C.3020908@php.net> <5643999D.2070207@webbypixel.com> <56439C2D.70600@webbypixel.com> In-Reply-To: <56439C2D.70600@webbypixel.com> Date: Wed, 11 Nov 2015 21:02:47 +0100 Message-ID: <01b701d11cbb$f1fd33a0$d5f79ae0$@belski.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQJ5HGM2ljvp3xddncYWLchr5DRS2QKbCiEpAkKHQ4ECg06+ZgEVbecCAgOdeIkBXKIVyJzoicgA Content-Language: en-us Subject: RE: [PHP-DEV] PHP 7 Segmentation fault From: anatol.php@belski.net ("Anatol Belski") > -----Original Message----- > From: Frank M. Kromann [mailto:fmk@webbypixel.com] > Sent: Wednesday, November 11, 2015 8:51 PM > To: Anatol Belski ; 'Dmitry Stogov' = > Cc: 'PHP Internals' > Subject: Re: [PHP-DEV] PHP 7 Segmentation fault >=20 > Just switched to PHP-7.0 and there is no longer any references to = _live_range > but the problem with the segfault is still there. Here is a new = backtrace. >=20 > #0 zend_mm_alloc_small (size=3D, bin_num=3D, > heap=3D) at /home/frank/Source/php-src- > 7/Zend/zend_alloc.c:1291 > #1 zend_mm_alloc_heap (size=3D, heap=3D) at > /home/frank/Source/php-src-7/Zend/zend_alloc.c:1358 > #2 _emalloc (size=3D2) at = /home/frank/Source/php-src-7/Zend/zend_alloc.c:2442 > #3 0x00000000007e724d in _safe_emalloc (nmemb=3Dnmemb@entry=3D24, > size=3D, offset=3Doffset@entry=3D0) at > /home/frank/Source/php-src-7/Zend/zend_alloc.c:2510 > #4 0x00000000007f0b93 in zend_compile_params > (ast=3Dast@entry=3D0x7ffff0ab7250, > return_type_ast=3Dreturn_type_ast@entry=3D0x0) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:4429 > #5 0x00000000007fa240 in zend_compile_func_decl = (result=3Dresult@entry=3D0x0, > ast=3Dast@entry=3D0x7ffff0ab7668) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:4879 > #6 0x00000000007f799a in zend_compile_stmt (ast=3D0x7ffff0ab7668) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:7048 > #7 0x00000000007f8487 in zend_compile_stmt_list > (ast=3Dast@entry=3D0x7ffff0ab8388) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:4347 > #8 0x00000000007f781e in zend_compile_stmt > (ast=3Dast@entry=3D0x7ffff0ab8388) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:6992 > #9 0x00000000007f88bf in zend_compile_class_decl > (ast=3Dast@entry=3D0x7ffff0ab8720) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:5289 > #10 0x00000000007f7938 in zend_compile_stmt > (ast=3Dast@entry=3D0x7ffff0ab8720) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:7060 > #11 0x00000000007fa67a in zend_compile_top_stmt (ast=3D0x7ffff0ab8720) = at > /home/frank/Source/php-src-7/Zend/zend_compile.c:6966 > #12 0x00000000007fa6bf in zend_compile_top_stmt (ast=3D0x7ffff0ab4018) = at > /home/frank/Source/php-src-7/Zend/zend_compile.c:6961 > #13 0x00000000007cde07 in compile_file (file_handle=3D, > type=3D) at Zend/zend_language_scanner.l:607 > #14 0x000000000065434e in phar_compile_file (file_handle=3D out>, type=3D) at > /home/frank/Source/php-src-7/ext/phar/phar.c:3311 > #15 0x00000000007cdf35 in compile_filename (type=3D2, > filename=3Dfilename@entry=3D0x7ffff0a14550) at > Zend/zend_language_scanner.l:647 > #16 0x0000000000899a2f in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER () > at > /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:29114 > #17 0x000000000084cecb in execute_ex (ex=3D) at > /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:414 > #18 0x00000000007fe607 in zend_call_function (fci=3D0x7ffff0a89aa0, > fci@entry=3D0x7fffffffa8f0, = fci_cache=3Dfci_cache@entry=3D0x7fffffffa8c0) > at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:854 > #19 0x000000000082b244 in zend_call_method (object=3D0x7ffff0aa38d8, > obj_ce=3D, fn_proxy=3D, > function_name=3D0x7ffff0aaf108 > "composer\\autoload\\classloader::loadclass\001", > function_name_len=3D, = retval_ptr=3Dretval_ptr@entry=3D0x0, > param_count=3Dparam_count@entry=3D1, arg1=3D0x7ffff0a14430, > arg2=3Darg2@entry=3D0x0) at > /home/frank/Source/php-src-7/Zend/zend_interfaces.c:104 > #20 0x00000000006c1324 in zif_spl_autoload_call = (execute_data=3D out>, return_value=3D) at > /home/frank/Source/php-src-7/ext/spl/php_spl.c:425 > #21 0x00000000007fe6a0 in zend_call_function = (fci=3Dfci@entry=3D0x7fffffffab40, > fci_cache=3Dfci_cache@entry=3D0x7fffffffab10) > at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:873 > #22 0x00000000007feec9 in zend_lookup_class_ex > (name=3Dname@entry=3D0x7ffff0a55e80, key=3D0x7ffff0a70420, > use_autoload=3Duse_autoload@entry=3D1) > at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:1036 > #23 0x00000000007ffa18 in zend_fetch_class_by_name > (class_name=3D0x7ffff0a55e80, key=3D, > fetch_type=3Dfetch_type@entry=3D512) > at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:1383 > #24 0x000000000089af51 in ZEND_NEW_SPEC_CONST_HANDLER () at > /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:3354 > #25 0x000000000084cecb in execute_ex (ex=3D) at > /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:414 > #26 0x000000000089d969 in zend_execute (op_array=3D, > return_value=3D) at > /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:458 > #27 0x000000000080db37 in zend_execute_scripts (type=3Dtype@entry=3D8, > retval=3Dretval@entry=3D0x0, file_count=3Dfile_count@entry=3D3) at > /home/frank/Source/php-src-7/Zend/zend.c:1428 > #28 0x00000000007a2ae0 in php_execute_script > (primary_file=3Dprimary_file@entry=3D0x7fffffffd070) at > /home/frank/Source/php-src-7/main/main.c:2471 > #29 0x000000000089f78a in do_cli (argc=3D4, argv=3D0x1167c60) at > /home/frank/Source/php-src-7/sapi/cli/php_cli.c:974 > #30 0x0000000000443467 in main (argc=3D4, argv=3D0x1167c60) at > /home/frank/Source/php-src-7/sapi/cli/php_cli.c:1345 >=20 Ok, but in master there's no zend_add_live_range() as well, so that is = what was strange. Could you please USE_ZEND_ALLOC=3D0 to collect the BT? = Thanks Anatol