Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89175 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57696 invoked from network); 11 Nov 2015 12:41:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2015 12:41:51 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.213.179 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.213.179 mail-ig0-f179.google.com Received: from [209.85.213.179] ([209.85.213.179:36627] helo=mail-ig0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/21-48205-E8733465 for ; Wed, 11 Nov 2015 07:41:51 -0500 Received: by igcph11 with SMTP id ph11so71272291igc.1 for ; Wed, 11 Nov 2015 04:41:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zend_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DansCH1ERHO3TIq3NT0RI6M6+m3Js6Ov6rTXD47i56E=; b=Uj/ZW/AZvy8w5ayZEVUHcB7skuvv+fU3+MJ5PUyOKk7eT9XIfty6wt1axgx/4D+XrF G3OVQ//iQ3SA2Q6fXpA539Nt2vHtOP9S8vY3EbLfOiYE1FdrZkosht9w5YHAC8uE28Ok BgqIlQZtR9KWLjlfwhbildDOnCv4PFdxqQ5k0LUtC7Riz1zauDls4qkd+PBvyLu6WBBb 7o1e4As3RN+Selm1ImNJXy0OL1JGrsQFcGtFnBABjRt2kYfOWiTeqP6oL8TG9mZ9iFFG D5ASK39X7iBJsxKBl+qPITDRtaxmXP1NxUyvacUooWoNV1HAqpKmPKDR1D303SG/5qEp aI6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=DansCH1ERHO3TIq3NT0RI6M6+m3Js6Ov6rTXD47i56E=; b=dQH10Y4lNTSi1bnHOtwQWkmfNRXYgZLXAGR+qqTKEcVlMURWk688nj1396L98tKwMK aC3RFpb9NNy/okgTavgeHi9KmjyZ2AbApeTLJnO+W6dRChnwPIDdOUmgERv7aTmf9B64 zuuNuDbmDLTipCEq1klhzV52TRCNz/FitTlrXwYC+MWj5Dkr3HsLmJZL1ydM1ItQCF1t KyRfRc2zd2tjzjElUVbXTsvYGdfP8icHzRTkweGgBgb/9qwekmetG/SXGlZzjI/JTbNi N2oxwWYnLTa1qcd8W3eZjHuixVYa4ePg8WRUqhUGy9SwdC1BgyithLJ1Bo6kheAfEbYR tPdw== X-Gm-Message-State: ALoCoQmwlOin9eclJsO+r2MBDICXVMriBUgAkm0I0+h+MmJSZvTHudB9rXwb5hK/obYBGcnHsNeq1KpJ1BPd9ZT/LWqgz5iZ0aFHqUJxSIb0DLEbUn7zxog0v2/np0fIt0/F92jFZa7htH6sK8Y8kMu2QD9CYYyZVt+W2ybePjqXmLoHa7rQjmM= MIME-Version: 1.0 X-Received: by 10.50.176.166 with SMTP id cj6mr31054206igc.74.1447245708276; Wed, 11 Nov 2015 04:41:48 -0800 (PST) Received: by 10.50.73.166 with HTTP; Wed, 11 Nov 2015 04:41:48 -0800 (PST) In-Reply-To: <56428A30.4060803@php.net> References: <56428A30.4060803@php.net> Date: Wed, 11 Nov 2015 15:41:48 +0300 Message-ID: To: "Frank M. Kromann" Cc: PHP Internals Content-Type: multipart/alternative; boundary=e89a8f6435a25858040524432698 Subject: Re: [PHP-DEV] PHP 7 Segmentation fault From: dmitry@zend.com (Dmitry Stogov) --e89a8f6435a25858040524432698 Content-Type: text/plain; charset=UTF-8 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=, > 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= out>, 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 > > --e89a8f6435a25858040524432698--