Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99614 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4788 invoked from network); 22 Jun 2017 18:45:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2017 18:45:59 -0000 Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.182 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.161.182 mail-yw0-f182.google.com Received: from [209.85.161.182] ([209.85.161.182:33600] helo=mail-yw0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/65-52620-5601C495 for ; Thu, 22 Jun 2017 14:45:58 -0400 Received: by mail-yw0-f182.google.com with SMTP id 63so9395821ywr.0 for ; Thu, 22 Jun 2017 11:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=MPGrLnz5oz/0eQ+fLVybSr1OPDcT9SebIq8gMCnhQtk=; b=Y+Fu7RIODfW9qoA4iFpvK8nfO97cmT4zD/QIwbavxBobNrMHb8S7LUNvvT2Ld57j4x yKcCW9UrwRlpM3+di2EWK2c0k0b3sGwhwlzk09QiHzzjrq6WkBzlrXSZrm4zK45rjCMh LefPGSyyIfi9XP3uenQ6na9peANgrt+LET5bkPt/wIcAFos9G6HOfp+tk+PvJoxBA9OL ETdTs86TQFg2n9KOivyhEXZYLKWtpiA0/+GhDjIFOVw0VqIY5dffvCx8a9yCtH5fQS3R 3xLj1OtKtPR2mGcgES9k/j55VU8YDrRc3POYPZgVYM9Q64QO9bvuCozCcljenurmVWRg hNOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=MPGrLnz5oz/0eQ+fLVybSr1OPDcT9SebIq8gMCnhQtk=; b=uMEBKgGQPWXcZegN/EO1RoclUIs2NMvrSLSvKdfExDsvjGtnhHAHS3Q9F94G2juDdk Y3hRR9Osr3kPiEFHf/kHISAi657ROmShn7QPeQ7+44BF23i5DGkjO8n1tTnx4HbT3log exNYLlRLQRv0dLgHjxlumJXJSa6Ngsux9WKtQbV/1hcbv63VtmynZXR05yFhLszgoViT inxyNS1ubsl4p+jwgKGJjEapmHEfgnLPMGKGoVtYR4173hbzWgOfJep4aA2COMVAXxOC 8/dPjVhAsUWYAEcOHPnC2Y1Sio+SgHi5mYmRLa/OINZ9IVTFwSofhnV92VjMQQU4KPoi lvag== X-Gm-Message-State: AKS2vOyBroHZ1BQKh7PUYED+Bm3ddLwpBECJCi8eBPK8W/2X3dPoEpFo RGd7EHBJSNs/OMfq2pBeopmpa+jMMQ== X-Received: by 10.13.200.67 with SMTP id k64mr3067726ywd.12.1498157154224; Thu, 22 Jun 2017 11:45:54 -0700 (PDT) MIME-Version: 1.0 Sender: jakub.php@gmail.com Received: by 10.129.85.72 with HTTP; Thu, 22 Jun 2017 11:45:53 -0700 (PDT) Date: Thu, 22 Jun 2017 19:45:53 +0100 X-Google-Sender-Auth: GVPPDLEAtKG7JdMBuJPrxjTgGvM Message-ID: To: Dmitry Stogov , PHP internals list Content-Type: multipart/alternative; boundary="001a114e4e8efed071055290e47d" Subject: Valgrind failures From: bukka@php.net (Jakub Zelenka) --001a114e4e8efed071055290e47d Content-Type: text/plain; charset="UTF-8" Hi Dmitry, I noticed that valgind reports a lot of memleaks for the master and it seems to be related to the freeing of registered classes on shutdown when running cli. I'm wondering if it can be related to your recent changes that were touching that parts. I haven't found the commit that caused but 7.1 is fine. If you don't think that it was related I will try to find it but wanted to check with you first. Here is a part of the output what I'm getting when running valgrind on debug build for master: valgrind --leak-check=full php ext/openssl/tests/openssl_digest_basic.phpt ... ... (simillar info like this for all loaded extensions like the below) ... ==4101== 648 bytes in 9 blocks are definitely lost in loss record 69 of 70 ==4101== at 0x4C2DB9D: malloc (vg_replace_malloc.c:299) ==4101== by 0xB7DC7D: zend_register_functions (zend_API.c:2304) ==4101== by 0xB7F209: do_register_internal_class (zend_API.c:2714) ==4101== by 0xB7F400: zend_register_internal_class (zend_API.c:2762) ==4101== by 0xB7F2BF: zend_register_internal_class_ex (zend_API.c:2734) ==4101== by 0x64EFAC: zm_startup_dom (php_dom.c:643) ==4101== by 0xB7C211: zend_startup_module_ex (zend_API.c:1873) ==4101== by 0xB7C29B: zend_startup_module_zval (zend_API.c:1888) ==4101== by 0xB8B6B1: zend_hash_apply (zend_hash.c:1507) ==4101== by 0xB7C907: zend_startup_modules (zend_API.c:1999) ==4101== by 0xAB2E71: php_module_startup (main.c:2269) ==4101== by 0xC6B159: php_cli_startup (php_cli.c:431) ==4101== ==4101== 5,592 bytes in 78 blocks are definitely lost in loss record 70 of 70 ==4101== at 0x4C2DB9D: malloc (vg_replace_malloc.c:299) ==4101== by 0xB7DC7D: zend_register_functions (zend_API.c:2304) ==4101== by 0xB7CBB0: zend_register_module_ex (zend_API.c:2062) ==4101== by 0xB7CC8B: zend_register_internal_module (zend_API.c:2077) ==4101== by 0xAB242E: php_register_extensions (main.c:1996) ==4101== by 0xC6A834: php_register_internal_extensions (internal_functions_cli.c:114) ==4101== by 0xAB2E30: php_module_startup (main.c:2253) ==4101== by 0xC6B159: php_cli_startup (php_cli.c:431) ==4101== by 0xC6D40D: main (php_cli.c:1362) ==4101== ==4101== LEAK SUMMARY: ==4101== definitely lost: 9,968 bytes in 142 blocks ==4101== indirectly lost: 0 bytes in 0 blocks ==4101== possibly lost: 0 bytes in 0 blocks ==4101== still reachable: 1,518 bytes in 30 blocks ==4101== suppressed: 0 bytes in 0 blocks ==4101== Reachable blocks (those to which a pointer was found) are not shown. ==4101== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==4101== ==4101== For counts of detected and suppressed errors, rerun with: -v ==4101== ERROR SUMMARY: 40 errors from 40 contexts (suppressed: 0 from 0) Please let me know! Or if anyone else has an idea about the changes that caused it that would be great. Currently it's quite difficult to use vlagrind and find the real issues though... Thanks Jakub --001a114e4e8efed071055290e47d--