Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89158 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99243 invoked from network); 11 Nov 2015 00:22:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2015 00:22:13 -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:48344] helo=mail.webbypixel.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/C9-21426-43A82465 for ; Tue, 10 Nov 2015 19:22:12 -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 3D28E34A6 for ; Tue, 10 Nov 2015 16:22:09 -0800 (PST) To: internals@lists.php.net Message-ID: <56428A30.4060803@php.net> Date: Tue, 10 Nov 2015 16:22:08 -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 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: PHP 7 Segmentation fault From: fmk@php.net ("Frank M. Kromann") 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=, 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=, 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