Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89180 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85012 invoked from network); 11 Nov 2015 19:14:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2015 19:14:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=fmk@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=fmk@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 173.255.241.80 as permitted sender) X-PHP-List-Original-Sender: fmk@php.net X-Host-Fingerprint: 173.255.241.80 mail.webbypixel.com Received: from [173.255.241.80] ([173.255.241.80:49933] helo=mail.webbypixel.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/20-16149-59393465 for ; Wed, 11 Nov 2015 14:14:30 -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 F1FDB60DD; Wed, 11 Nov 2015 11:14:26 -0800 (PST) To: Dmitry Stogov References: <56428A30.4060803@php.net> Cc: PHP Internals Message-ID: <56439392.2020608@php.net> Date: Wed, 11 Nov 2015 11:14:26 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP 7 Segmentation fault From: fmk@php.net ("Frank M. Kromann") 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). - Frank On 11/11/15 04:41, Dmitry Stogov wrote: > I suppose this is not PHP-7.0, but "master" branch. > PHP-7.0 doesn't have zend_add_live_range(). > > Please, make "git pull" and then full rebuild, "make clean; make; make > install" > > Thanks. Dmitry. > > On Wed, Nov 11, 2015 at 3:22 AM, Frank M. Kromann > wrote: > > Hello Everyone, > > I have a large application that segfaults on spl autoload function. > I have not had the time yet to create a small script that can be > used to reproduce the error, but it looks to be similar to the one > reported for PHPUnit. > > I'm using the autolaoder script from composer and I have tried > commenting out code to find the offending class but the problem just > moves around to the next call to autoload. Here is a backtrace. > > #0 zend_mm_alloc_small (size=, bin_num=2, > heap=0x7ffff0a00040) at > /home/frank/Source/php-src-7/Zend/zend_alloc.c:1291 > #1 zend_mm_alloc_heap (size=, heap=0x7ffff0a00040) > at /home/frank/Source/php-src-7/Zend/zend_alloc.c:1358 > #2 zend_mm_realloc_heap (heap=0x7ffff0a00040, ptr=0x7ffff0a60590, > size=, copy_size=24) at > /home/frank/Source/php-src-7/Zend/zend_alloc.c:1636 > #3 0x00000000007e8f4d in zend_add_live_range (start=start@entry=2, > end=end@entry=57, op_array=, op_array=) > at /home/frank/Source/php-src-7/Zend/zend_compile.c:582 > #4 0x00000000007fa275 in zend_add_live_range (op_array= out>, op_array=, end=57, start=) > at /home/frank/Source/php-src-7/Zend/zend_compile.c:580 > #5 zend_compile_switch (ast=ast@entry=0x7ffff0ab7188) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:4139 > #6 0x00000000007f8778 in zend_compile_stmt (ast=0x7ffff0ab7188) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:7087 > #7 0x00000000007f9287 in zend_compile_stmt_list > (ast=ast@entry=0x7ffff0ab6760) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:4411 > #8 0x00000000007f861e in zend_compile_stmt > (ast=ast@entry=0x7ffff0ab6760) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:7041 > #9 0x00000000007fa4b9 in zend_compile_func_decl > (result=result@entry=0x0, ast=ast@entry=0x7ffff0ab71a0) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:4947 > #10 0x00000000007f879a in zend_compile_stmt (ast=0x7ffff0ab71a0) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:7097 > #11 0x00000000007f9287 in zend_compile_stmt_list > (ast=ast@entry=0x7ffff0ab8388) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:4411 > #12 0x00000000007f861e in zend_compile_stmt > (ast=ast@entry=0x7ffff0ab8388) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:7041 > #13 0x00000000007f7ca2 in zend_compile_class_decl > (ast=ast@entry=0x7ffff0ab8720) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:5353 > #14 0x00000000007f8738 in zend_compile_stmt > (ast=ast@entry=0x7ffff0ab8720) at > /home/frank/Source/php-src-7/Zend/zend_compile.c:7109 > #15 0x00000000007fb03a in zend_compile_top_stmt (ast=0x7ffff0ab8720) > at /home/frank/Source/php-src-7/Zend/zend_compile.c:7015 > #16 0x00000000007fb07f in zend_compile_top_stmt (ast=0x7ffff0ab4018) > at /home/frank/Source/php-src-7/Zend/zend_compile.c:7010 > #17 0x00000000007ce6e7 in compile_file (file_handle=, > type=) at Zend/zend_language_scanner.l:607 > #18 0x0000000000654bde in phar_compile_file (file_handle= out>, type=) at > /home/frank/Source/php-src-7/ext/phar/phar.c:3311 > #19 0x00000000007ce815 in compile_filename (type=2, > filename=filename@entry=0x7ffff0a14550) at > Zend/zend_language_scanner.l:647 > #20 0x000000000089c4cf in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER () at > /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:29592 > #21 0x000000000084d9db in execute_ex (ex=) at > /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:414 > #22 0x00000000007fefe7 in zend_call_function (fci=0x7ffff0a899e0, > fci@entry=0x7fffffffa8f0, fci_cache=fci_cache@entry=0x7fffffffa8c0) > at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:854 > #23 0x000000000082bd54 in zend_call_method (object=0x7ffff0aa38a8, > obj_ce=, fn_proxy=, > function_name=0x7ffff0aaf108 > "composer\\autoload\\classloader::loadclass\001", > function_name_len=, retval_ptr=retval_ptr@entry=0x0, > param_count=param_count@entry=1, arg1=0x7ffff0a14430, > arg2=arg2@entry=0x0) at > /home/frank/Source/php-src-7/Zend/zend_interfaces.c:104 > #24 0x00000000006c1bb4 in zif_spl_autoload_call > (execute_data=, return_value=) at > /home/frank/Source/php-src-7/ext/spl/php_spl.c:425 > #25 0x00000000007ff080 in zend_call_function > (fci=fci@entry=0x7fffffffab40, > fci_cache=fci_cache@entry=0x7fffffffab10) at > /home/frank/Source/php-src-7/Zend/zend_execute_API.c:873 > #26 0x00000000007ff8a9 in zend_lookup_class_ex > (name=name@entry=0x7ffff0a55e80, key=0x7ffff0a70420, > use_autoload=use_autoload@entry=1) > at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:1036 > #27 0x00000000008003f8 in zend_fetch_class_by_name > (class_name=0x7ffff0a55e80, key=, > fetch_type=fetch_type@entry=512) > at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:1383 > #28 0x000000000089dbf1 in ZEND_NEW_SPEC_CONST_HANDLER () at > /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:3359 > #29 0x000000000084d9db in execute_ex (ex=) at > /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:414 > #30 0x00000000008a0619 in zend_execute (op_array=, > return_value=) at > /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:458 > #31 0x000000000080e607 in zend_execute_scripts (type=type@entry=8, > retval=retval@entry=0x0, file_count=file_count@entry=3) at > /home/frank/Source/php-src-7/Zend/zend.c:1428 > #32 0x00000000007a33c0 in php_execute_script > (primary_file=primary_file@entry=0x7fffffffd070) at > /home/frank/Source/php-src-7/main/main.c:2471 > #33 0x00000000008a243a in do_cli (argc=4, argv=0x116bc60) at > /home/frank/Source/php-src-7/sapi/cli/php_cli.c:974 > #34 0x0000000000443617 in main (argc=4, argv=0x116bc60) at > /home/frank/Source/php-src-7/sapi/cli/php_cli.c:1345 > > - Frank > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >