Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89188 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97087 invoked from network); 11 Nov 2015 20:17:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2015 20:17:00 -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:50044] helo=mail.webbypixel.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/A2-16149-A32A3465 for ; Wed, 11 Nov 2015 15:16:59 -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 1AE7560E0; Wed, 11 Nov 2015 12:16:55 -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> <5643999D.2070207@webbypixel.com> <56439C2D.70600@webbypixel.com> <01b701d11cbb$f1fd33a0$d5f79ae0$@belski.net> Cc: 'PHP Internals' Message-ID: <5643A237.8050906@webbypixel.com> Date: Wed, 11 Nov 2015 12:16:55 -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: <01b701d11cbb$f1fd33a0$d5f79ae0$@belski.net> Content-Type: multipart/alternative; boundary="------------000007030003040706090605" Subject: Re: [PHP-DEV] PHP 7 Segmentation fault From: fmk@webbypixel.com ("Frank M. Kromann") --------------000007030003040706090605 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi Anatol, That's odd. I switched back to master and the references to _live_range() shows up again. I'll try to do a clean checkout and see what happens. Still on the PHP-7.0 branch with USE_ZEND_alloc=0 set in the environment I get this backtrace. #0 0x00007ffff4786563 in malloc_consolidate () from /usr/lib64/libc.so.6 #1 0x00007ffff47880b9 in _int_malloc () from /usr/lib64/libc.so.6 #2 0x00007ffff478abaa in calloc () from /usr/lib64/libc.so.6 #3 0x00007ffff7de60cf in _dl_new_object () from /lib64/ld-linux-x86-64.so.2 #4 0x00007ffff7de11cc in _dl_map_object_from_fd () from /lib64/ld-linux-x86-64.so.2 #5 0x00007ffff7de3581 in _dl_map_object () from /lib64/ld-linux-x86-64.so.2 #6 0x00007ffff7dee891 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2 #7 0x00007ffff7dea2f4 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2 #8 0x00007ffff7dee21b in _dl_open () from /lib64/ld-linux-x86-64.so.2 #9 0x00007ffff483a962 in do_dlopen () from /usr/lib64/libc.so.6 #10 0x00007ffff7dea2f4 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2 #11 0x00007ffff483aa22 in __libc_dlopen_mode () from /usr/lib64/libc.so.6 #12 0x00007ffff4813fd5 in init () from /usr/lib64/libc.so.6 #13 0x00007ffff4ad7be0 in pthread_once () from /usr/lib64/libpthread.so.0 #14 0x00007ffff48140ec in backtrace () from /usr/lib64/libc.so.6 #15 0x00007ffff477fe24 in __libc_message () from /usr/lib64/libc.so.6 #16 0x00007ffff47871fd in _int_free () from /usr/lib64/libc.so.6 #17 0x00007ffff4789a50 in _int_realloc () from /usr/lib64/libc.so.6 #18 0x00007ffff478a702 in realloc () from /usr/lib64/libc.so.6 #19 0x000000000083ba45 in virtual_file_ex (state=state@entry=0x7fffffff6ed0, path=path@entry=0x1383028 "/var/www/web20.webbypixel.com/include/autoload/cCache.inc", verify_path=verify_path@entry=0x0, use_realpath=use_realpath@entry=2) at /home/frank/Source/php-src-7/Zend/zend_virtual_cwd.c:1361 #20 0x000000000083cb97 in tsrm_realpath (path=path@entry=0x1383028 "/var/www/web20.webbypixel.com/include/autoload/cCache.inc", real_path=real_path@entry=0x7fffffff7fe0 "/var/www/web20.webbypixel.com/vendor/composer/ClassLoader.php") at /home/frank/Source/php-src-7/Zend/zend_virtual_cwd.c:1942 #21 0x00000000007a72c0 in php_resolve_path (filename=0x1383028 "/var/www/web20.webbypixel.com/include/autoload/cCache.inc", filename_length=57, path=0x117f648 ".:../include:../vendor:/var/www/ZendFramework/library:/usr/local/lib/php") at /home/frank/Source/php-src-7/main/fopen_wrappers.c:510 #22 0x000000000063805d in phar_find_in_include_path (filename=0x1383028 "/var/www/web20.webbypixel.com/include/autoload/cCache.inc", filename_len=57, pphar=0x7fffffffa068) at /home/frank/Source/php-src-7/ext/phar/util.c:291 #23 0x00000000007be84e in _php_stream_open_wrapper_ex (path=path@entry=0x1383028 "/var/www/web20.webbypixel.com/include/autoload/cCache.inc", mode=mode@entry=0xde5883 "rb", options=137, opened_path=opened_path@entry=0x7fffffffa630, context=context@entry=0x0) at /home/frank/Source/php-src-7/main/streams/streams.c:2035 #24 0x00000000007a0648 in php_stream_open_for_zend_ex (filename=0x1383028 "/var/www/web20.webbypixel.com/include/autoload/cCache.inc", handle=0x7fffffffa5d0, mode=) at /home/frank/Source/php-src-7/main/main.c:1336 #25 0x000000000082a64c in zend_stream_fixup (file_handle=file_handle@entry=0x7fffffffa5d0, buf=buf@entry=0x7fffffffa290, len=len@entry=0x7fffffffa298) at /home/frank/Source/php-src-7/Zend/zend_stream.c:186 #26 0x00000000007cd7b5 in open_file_for_scanning (file_handle=file_handle@entry=0x7fffffffa5d0) at Zend/zend_language_scanner.l:508 #27 0x00000000007cdbde in compile_file (file_handle=0x7fffffffa5d0, type=2) at Zend/zend_language_scanner.l:578 #28 0x000000000065434e in phar_compile_file (file_handle=, type=) at /home/frank/Source/php-src-7/ext/phar/phar.c:3311 #29 0x00000000007cdf35 in compile_filename (type=2, filename=filename@entry=0x7ffff7f4e560) at Zend/zend_language_scanner.l:647 #30 0x0000000000899a2f in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER () at /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:29114 #31 0x000000000084cecb in execute_ex (ex=) at /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:414 #32 0x00000000007fe607 in zend_call_function (fci=0x13a4230, fci@entry=0x7fffffffa8d0, fci_cache=fci_cache@entry=0x7fffffffa8a0) at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:854 #33 0x000000000082b244 in zend_call_method (object=0x139ad68, obj_ce=, fn_proxy=, function_name=0x139bb08 "composer\\autoload\\classloader::loadclass\001", function_name_len=, retval_ptr=retval_ptr@entry=0x0, param_count=param_count@entry=1, arg1=0x7ffff7f4e440, arg2=arg2@entry=0x0) at /home/frank/Source/php-src-7/Zend/zend_interfaces.c:104 #34 0x00000000006c1324 in zif_spl_autoload_call (execute_data=, return_value=) at /home/frank/Source/php-src-7/ext/spl/php_spl.c:425 #35 0x00000000007fe6a0 in zend_call_function (fci=fci@entry=0x7fffffffab20, fci_cache=fci_cache@entry=0x7fffffffaaf0) at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:873 #36 0x00000000007feec9 in zend_lookup_class_ex (name=name@entry=0x138ac50, key=0x1391b80, use_autoload=use_autoload@entry=1) at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:1036 #37 0x00000000007ffa18 in zend_fetch_class_by_name (class_name=0x138ac50, key=, fetch_type=fetch_type@entry=512) at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:1383 #38 0x000000000089af51 in ZEND_NEW_SPEC_CONST_HANDLER () at /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:3354 #39 0x000000000084cecb in execute_ex (ex=) at /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:414 #40 0x000000000089d969 in zend_execute (op_array=, return_value=) at /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:458 #41 0x000000000080db37 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 #42 0x00000000007a2ae0 in php_execute_script (primary_file=primary_file@entry=0x7fffffffd050) at /home/frank/Source/php-src-7/main/main.c:2471 #43 0x000000000089f78a in do_cli (argc=4, argv=0x1167ca0) at /home/frank/Source/php-src-7/sapi/cli/php_cli.c:974 #44 0x0000000000443467 in main (argc=4, argv=0x1167ca0) at /home/frank/Source/php-src-7/sapi/cli/php_cli.c:1345 - Frank On 11/11/15 12:02, Anatol Belski wrote: > >> -----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 >> >> 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. >> >> #0 zend_mm_alloc_small (size=, bin_num=, >> heap=) at /home/frank/Source/php-src- >> 7/Zend/zend_alloc.c:1291 >> #1 zend_mm_alloc_heap (size=, heap=) at >> /home/frank/Source/php-src-7/Zend/zend_alloc.c:1358 >> #2 _emalloc (size=2) at /home/frank/Source/php-src-7/Zend/zend_alloc.c:2442 >> #3 0x00000000007e724d in _safe_emalloc (nmemb=nmemb@entry=24, >> size=, offset=offset@entry=0) at >> /home/frank/Source/php-src-7/Zend/zend_alloc.c:2510 >> #4 0x00000000007f0b93 in zend_compile_params >> (ast=ast@entry=0x7ffff0ab7250, >> return_type_ast=return_type_ast@entry=0x0) at >> /home/frank/Source/php-src-7/Zend/zend_compile.c:4429 >> #5 0x00000000007fa240 in zend_compile_func_decl (result=result@entry=0x0, >> ast=ast@entry=0x7ffff0ab7668) at >> /home/frank/Source/php-src-7/Zend/zend_compile.c:4879 >> #6 0x00000000007f799a in zend_compile_stmt (ast=0x7ffff0ab7668) at >> /home/frank/Source/php-src-7/Zend/zend_compile.c:7048 >> #7 0x00000000007f8487 in zend_compile_stmt_list >> (ast=ast@entry=0x7ffff0ab8388) at >> /home/frank/Source/php-src-7/Zend/zend_compile.c:4347 >> #8 0x00000000007f781e in zend_compile_stmt >> (ast=ast@entry=0x7ffff0ab8388) at >> /home/frank/Source/php-src-7/Zend/zend_compile.c:6992 >> #9 0x00000000007f88bf in zend_compile_class_decl >> (ast=ast@entry=0x7ffff0ab8720) at >> /home/frank/Source/php-src-7/Zend/zend_compile.c:5289 >> #10 0x00000000007f7938 in zend_compile_stmt >> (ast=ast@entry=0x7ffff0ab8720) at >> /home/frank/Source/php-src-7/Zend/zend_compile.c:7060 >> #11 0x00000000007fa67a in zend_compile_top_stmt (ast=0x7ffff0ab8720) at >> /home/frank/Source/php-src-7/Zend/zend_compile.c:6966 >> #12 0x00000000007fa6bf in zend_compile_top_stmt (ast=0x7ffff0ab4018) at >> /home/frank/Source/php-src-7/Zend/zend_compile.c:6961 >> #13 0x00000000007cde07 in compile_file (file_handle=, >> type=) at Zend/zend_language_scanner.l:607 >> #14 0x000000000065434e in phar_compile_file (file_handle=> out>, type=) at >> /home/frank/Source/php-src-7/ext/phar/phar.c:3311 >> #15 0x00000000007cdf35 in compile_filename (type=2, >> filename=filename@entry=0x7ffff0a14550) 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=) at >> /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:414 >> #18 0x00000000007fe607 in zend_call_function (fci=0x7ffff0a89aa0, >> fci@entry=0x7fffffffa8f0, fci_cache=fci_cache@entry=0x7fffffffa8c0) >> at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:854 >> #19 0x000000000082b244 in zend_call_method (object=0x7ffff0aa38d8, >> 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 >> #20 0x00000000006c1324 in zif_spl_autoload_call (execute_data=> out>, return_value=) at >> /home/frank/Source/php-src-7/ext/spl/php_spl.c:425 >> #21 0x00000000007fe6a0 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 >> #22 0x00000000007feec9 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 >> #23 0x00000000007ffa18 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 >> #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=) at >> /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:414 >> #26 0x000000000089d969 in zend_execute (op_array=, >> return_value=) at >> /home/frank/Source/php-src-7/Zend/zend_vm_execute.h:458 >> #27 0x000000000080db37 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 >> #28 0x00000000007a2ae0 in php_execute_script >> (primary_file=primary_file@entry=0x7fffffffd070) at >> /home/frank/Source/php-src-7/main/main.c:2471 >> #29 0x000000000089f78a in do_cli (argc=4, argv=0x1167c60) at >> /home/frank/Source/php-src-7/sapi/cli/php_cli.c:974 >> #30 0x0000000000443467 in main (argc=4, argv=0x1167c60) at >> /home/frank/Source/php-src-7/sapi/cli/php_cli.c:1345 >> > 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=0 to collect the BT? > > Thanks > > Anatol > > -- 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 --------------000007030003040706090605--