Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81042 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5769 invoked from network); 23 Jan 2015 13:57:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2015 13:57:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.174 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.174 mail-vc0-f174.google.com Received: from [209.85.220.174] ([209.85.220.174:51833] helo=mail-vc0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D2/52-25368-55352C45 for ; Fri, 23 Jan 2015 08:57:41 -0500 Received: by mail-vc0-f174.google.com with SMTP id le20so2537830vcb.5 for ; Fri, 23 Jan 2015 05:57:39 -0800 (PST) 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=RYUL3HnGsrXnLSNhW9kfBGSKr+s7JmRqMk3WTW4/Uos=; b=WJ09lj4pJrQwM9UM3TAUqXtgDykIOjDtZ5wxkP3z1/tBEnc80ndKNLDLZb/Y4O0Wa6 Auzt8m7YbU/4QQAQJNYlZXsXgnlzLKB+7uhvd8TQCZgXoXNolEN6qE5v8gvxYv9Gp8y4 Uq3uAMl8P/XwovII2rNB+GgaaephvxIHUjH9g7gat5XjxPbIjfC8e/SwezxLDai0kXy8 L9kZNeyo5xohM2enkdICv/g3ixEr5l+OKVEfiwGtvSzM/cWayneRj/t6YfoPXzDtBvrB SmFB6Xvj6DJ2M5P2BLFgT6DWcui7U8DN8a4POkDoH4F2RlSg11IYxEOxn/cX+Bcg/Sz/ U/4Q== X-Gm-Message-State: ALoCoQnHFGh1yd/gvQDTDQGBkEin3ozzyn+GegXgUaP5Thx6iJAZVauHGY0qOpCaUK8IA23sBTsZJqmogYiutoqRkkadD61TuSYqjDzKHhHAq5HUl0B3dmUPu5JXHj77uOqXQaO9K+kKSpon+wl0zx14AkxFyQo3wg== MIME-Version: 1.0 X-Received: by 10.52.139.7 with SMTP id qu7mr2928302vdb.68.1422021459297; Fri, 23 Jan 2015 05:57:39 -0800 (PST) Received: by 10.52.26.40 with HTTP; Fri, 23 Jan 2015 05:57:39 -0800 (PST) In-Reply-To: References: <54C12DD8.7020800@lerdorf.com> <54C16698.4080203@lsces.co.uk> <54C193A6.7060206@lerdorf.com> Date: Fri, 23 Jan 2015 17:57:39 +0400 Message-ID: To: Juan Basso Cc: Rasmus Lerdorf , Dan Ackroyd , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=bcaec52d53abf1e1ea050d522ba5 Subject: Re: [PHP-DEV] PHP7 Homework for everyone reading this list From: dmitry@zend.com (Dmitry Stogov) --bcaec52d53abf1e1ea050d522ba5 Content-Type: text/plain; charset=UTF-8 Thanks. This problem was introduced yesterday and must be already fixed. Dmitry. On Fri, Jan 23, 2015 at 7:45 AM, Juan Basso wrote: > Trying to run phpunit on the latest CakePHP 3 gives a lot of errors of this > type (not on every test case): > > php: /.../php-src/Zend/zend_gc.c:144: gc_possible_root: Assertion > `((zend_refcounted*)(ref))->u.v.type == 7 || > ((zend_refcounted*)(ref))->u.v.type == 8' failed. > > This errors happens after the test is completed and all output from PHPUnit > is done. > I am using Ubuntu 12.04 with and the last commit of my php > is b8e262901e56a4d9a6664d348c9878246579239e (Thu Jan 22 14:04:49 2015 > -0800). > > This is the gdb backtrace: > > (gdb) bt > #0 0x00007ffff61840d5 in raise () from /lib/x86_64-linux-gnu/libc.so.6 > #1 0x00007ffff618783b in abort () from /lib/x86_64-linux-gnu/libc.so.6 > #2 0x00007ffff617cd9e in ?? () from /lib/x86_64-linux-gnu/libc.so.6 > #3 0x00007ffff617ce42 in __assert_fail () from > /lib/x86_64-linux-gnu/libc.so.6 > #4 0x000000000090ed19 in gc_possible_root (ref=0x7ffff4038820) at > /.../php-src/Zend/zend_gc.c:144 > #5 0x00000000008f1b25 in gc_check_possible_root (z=0x7ffff40302e0) at > /.../php-src/Zend/zend_gc.h:145 > #6 0x00000000008f1b83 in i_zval_ptr_dtor (zval_ptr=0x7ffff40302e0, > __zend_filename=0xe493f0 "/.../php-src/Zend/zend_hash.c", > __zend_lineno=929) at /.../php-src/Zend/zend_variables.h:54 > #7 0x00000000008f4824 in zend_array_destroy (ht=0x7ffff40391e8) at > /.../php-src/Zend/zend_hash.c:929 > #8 0x00000000008de252 in _zval_dtor_func_for_ptr (p=0x7ffff40391e0, > __zend_filename=0xe46470 "/.../php-src/Zend/zend_opcode.c", > __zend_lineno=158) at /.../php-src/Zend/zend_variables.c:105 > #9 0x00000000008c76d4 in i_zval_ptr_dtor (zval_ptr=0x7ffff43e3130, > __zend_filename=0xe46470 "/.../php-src/Zend/zend_opcode.c", > __zend_lineno=158) at /.../php-src/Zend/zend_variables.h:52 > #10 0x00000000008c8b43 in _zval_ptr_dtor (zval_ptr=0x7ffff43e3130, > __zend_filename=0xe46470 "/.../php-src/Zend/zend_opcode.c", > __zend_lineno=158) at /.../php-src/Zend/zend_execute_API.c:483 > #11 0x00000000008cdbce in zend_cleanup_user_class_data (ce=0x7ffff400e918) > at /.../php-src/Zend/zend_opcode.c:158 > #12 0x00000000008c84b2 in shutdown_executor () at > /.../php-src/Zend/zend_execute_API.c:318 > #13 0x00000000008e08ce in zend_deactivate () at > /.../php-src/Zend/zend.c:886 > #14 0x0000000000851d09 in php_request_shutdown (dummy=0x0) at > /.../php-src/main/main.c:1856 > #15 0x00000000009861e2 in do_cli (argc=3, argv=0x11b1990) at > /.../php-src/sapi/cli/php_cli.c:1159 > #16 0x000000000098696a in main (argc=3, argv=0x11b1990) at > /.../php-src/sapi/cli/php_cli.c:1361 > > > Any idea? I am trying to isolate the problem, but may take a while. > > On Thu, Jan 22, 2015 at 7:19 PM, Rasmus Lerdorf > wrote: > > > On 01/22/2015 02:30 PM, Dan Ackroyd wrote: > > > On 22 January 2015 at 21:07, Lester Caine wrote: > > >> imagick is now available? > > > > > > Not yet. I'll try to finish it off before the end of the weekend. Most > > > of the work was done earlier, but I need to add the changes for the > > > Native TLS. > > > > > > btw this request to update the PHPNG upgrading guide is still open: > > > > > >> Thanks. I think the TSRM changes need to be added, which could be > > copied from: > > >> > > > https://github.com/php/php-src/commit/dec8eb431adee340fb8dfb9ff33ed29d3279c35f > > >> Providing a link to a commit that implemented the TSRM changes for an > > >> extension, so that people could see the actual changes needed, would > > >> be awesome. > > > > For most extensions that just do something simple like imagick does: > > > > #ifdef ZTS > > # define IMAGICK_G(v) TSRMG(imagick_globals_id, zend_imagick_globals *, > v) > > #else > > # define IMAGICK_G(v) (imagick_globals.v) > > #endif > > > > There is absolutely nothing to do. You can, just for your own amusement > > and because it makes the code look prettier, go through and remove all > > instances of TSRMLS_* macros in all your C files. But it isn't critical > > since they are just defined to nothing in PHP7. Just leave that TSRMG > > define in your .h file and it will do the right thing. > > > > -Rasmus > > > > > --bcaec52d53abf1e1ea050d522ba5--