From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150075.outbound.protection.outlook.com [40.107.15.75]) by sourceware.org (Postfix) with ESMTPS id 1627C3858D28 for ; Fri, 17 Dec 2021 16:07:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1627C3858D28 Received: from AS9PR06CA0227.eurprd06.prod.outlook.com (2603:10a6:20b:45e::16) by AS8PR08MB6693.eurprd08.prod.outlook.com (2603:10a6:20b:39c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14; Fri, 17 Dec 2021 16:07:33 +0000 Received: from AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45e:cafe::ab) by AS9PR06CA0227.outlook.office365.com (2603:10a6:20b:45e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.14 via Frontend Transport; Fri, 17 Dec 2021 16:07:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT016.mail.protection.outlook.com (10.152.16.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.14 via Frontend Transport; Fri, 17 Dec 2021 16:07:33 +0000 Received: ("Tessian outbound 157533e214a9:v110"); Fri, 17 Dec 2021 16:07:33 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3d60f7236ee55670 X-CR-MTA-TID: 64aa7808 Received: from 354f50539ba8.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E67D3352-FA19-41FA-B650-6C9CCB9C730A.1; Fri, 17 Dec 2021 16:07:25 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 354f50539ba8.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 17 Dec 2021 16:07:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FYo0TCAoDUtsVD8vWZYDWnApsdBNkTYXBhJPuYaRy/Jo9pZIOkO051onUojl/iqNLkHL8thAQMmPAy1taRBAzzcWpaWBraWDXkr/hE8wwgx0EU69Sz9unOjuX18tdlihVRz24zs8pZz6SNTELZbYq8ljgmCHJLxGG/sZp3NzBryamhZwXPlHwRLM0GTeM71vHqu6z5ncjy4IijWT60D1MWFLhqBY9fQMtpVShIntKSo7ymWtjwbp08vf21yMLTOUfQQH6fBpHs4Dw/BhmnIKH4S1tExuQBjwr8mcSMaC83I/5sSNohN/cBu7YQ4szij3+ME1DBmX/KHSS0kCVKUViA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5uBfhFfZMMXyr8+IvR95ylPYnz4Jq+NeKOJUdc9psMc=; b=BiT+jAGPdCo306MB36foW5TBWMMw2Sig7KPe0fE5bFr/SXxRTzGNwRGQXOxXYk4IzjHEirDzxlinJBPVn5v2XdbFPZ/8IZSHwfHIJaQHLpGv8yw071EZhdlvhoZnW0MiUku1D0ZFNVPUFCjhqmON5AYCHMBJiBSjiPPCTUbpNM/neP9ROg4wZZIc2L+iNhLjnVq1jM3tmBX75WUVGe/VPNaZjg0bTuvkndmVDJvkmmtiichTX6NSnknneBYfGN2gYBou8r8OohhAGUiGxOr02vTHHEF+betvQPH5fDowuV9SdQSHt4/B4tclyeHKdHv0eW/HBwLNc1lYmvMcORjtHg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=klomp.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from AM5PR0502CA0009.eurprd05.prod.outlook.com (2603:10a6:203:91::19) by DB9PR08MB6443.eurprd08.prod.outlook.com (2603:10a6:10:261::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.20; Fri, 17 Dec 2021 16:07:23 +0000 Received: from VE1EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:91:cafe::1f) by AM5PR0502CA0009.outlook.office365.com (2603:10a6:203:91::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.15 via Frontend Transport; Fri, 17 Dec 2021 16:07:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT059.mail.protection.outlook.com (10.152.19.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4801.14 via Frontend Transport; Fri, 17 Dec 2021 16:07:22 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Fri, 17 Dec 2021 16:07:11 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.20; Fri, 17 Dec 2021 16:07:11 +0000 Received: from e124257 (10.34.101.64) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Fri, 17 Dec 2021 16:07:11 +0000 From: Andrea Corallo To: Marc =?utf-8?Q?Nieper-Wi=C3=9Fkirchen?= CC: Marc =?utf-8?Q?Nieper-Wi=C3=9Fkirchen?= via Jit , "Alex Coplan" , Mark Wielaard Subject: Re: Memory leaks (detected by Valgrind) References: Date: Fri, 17 Dec 2021 17:07:10 +0100 In-Reply-To: ("Marc =?utf-8?Q?Nieper-Wi=C3=9Fkirchen=22's?= message of "Fri, 17 Dec 2021 16:11:06 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: b32bd65b-0e5c-4a11-4ed4-08d9c177559e X-MS-TrafficTypeDiagnostic: DB9PR08MB6443:EE_|AM5EUR03FT016:EE_|AS8PR08MB6693: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:9508;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: ScBRsFu/nL6YSyw/ys++325xNfI2Ok/vsoup3AczLAH754B1Ejx2sC0A301+api+AmacBaSodYJTJff1YwbUdd+c0JnK/EFOL4uoHW/7ZOYK8F1PkYGdubf7jiGEYGPeg5dXQAD7v6CnFmByLMXpvLworCVwQF+bHo6+Qhu7hFAbNKEAQLLdMupUwKlqmAKWyBQLC7bdNrar7aJ+Pnm2/8PL7UpdZp9+jFKwP+IeeKrYyhR73Be3p2DCI02G97afXbmCEdNgYusmqvnpQ5r9O8Fdx9uvauij3ydOb1L4vrc+g7eAN+Xa6YCEe7rwtCpByqUPZOPyZPQ04gJ8B+pCb1U6I+9XEKgCsmpHGta9ienITyU4Bw2Aiy53ULNAxw5tBCYj2ARitCJIH+MwbR6gAzX841mZwAk4+6okrayA4fBDo9F+TPByj5fm1gQkvjf3f3swEP+2FkUQpm66YtgEJOu5O8mdf+ML3tsxCdsCVyEZMf8kn5hxBl7xWvi2shBbk/iMhsmtOkmw+kG1gsF40KQZOEC+pcM1EyqxxZtD+JY8LRttXafAuyjt/5dtUbFCcNZgZ+fPB73WfOjF9NVXlvsu1tp0EK/gW6oEwhDcx4pVzftRJGhRLppa8rf32dZkK3SyIpTbWolfRmape9daB1j1v8D0pT2VkRtoYNmGiX1jKkz5Z7T51sMxb3VCogpz+++rv7Mvh68mRSqMd2lXM/G6l8XD8z++Xji+OerW35+sQlV9AOqAQ5u5aDTJ2dBmyZ7FI9eOgfOVBDvCM+ubM3LGGadksSWLqNxaj2PExawzI9tZ1bSysZc3KPjDAOjzJbHH37QtRmbuvHRQj9QFH4h9EYe9jtqQnSkg7tD6LVARUMNa5u3zsJaiQCtEADEr X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(40470700001)(83380400001)(5660300002)(86362001)(66574015)(54906003)(2616005)(966005)(82310400004)(40460700001)(2906002)(316002)(8936002)(336012)(70206006)(4326008)(508600001)(70586007)(44832011)(81166007)(47076005)(356005)(426003)(36756003)(36860700001)(26005)(186003)(8676002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB6443 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ddcffd49-7808-482b-9028-08d9c1774f57 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Uzvn943BScrkq3x3LFBNXo2pIHixb8kehKe9No6TNIrcqdsldTvK1MsR/8tqgFSBo+GHaRvAMUlHmiGvRYAldT7pQJAGBlgLBsCNukPAofz5rsMSYPzpBoz1HEiKISs3TJENs7WYlPV9WeBLNZyEeLS5oMi8X20V385OZQ99ob3TVSiFdABSBmIpgO8XryLSsTEu6O+v+NTLpjdQi38PuPLfXKOumbTHh/iA1+l0W4fF1rOlpjebiLw0Kw4sspLTnq9/B5OPagkjFgK0N4Z9unEaY3qwGzflrAvbzmIBis4wiE1vmQlF3W2uqn2ZPhMIq1CFY/+kiZuUk9ws8yeCHebsG3jYMYPpWw8M8Tf7ZNDJABox9gyOgIoWLnlVvV5aWwvYfIH1/VVJ7fYXND+0HzrirzBzdgHE/l2YLC1WkSrhlfTtI5tv/sdjhXV9w5OZJCREJw1r9UZzko+DbrgeG8tVkO5+AUcQumU0nTlnQwSazsYFq3QdFj1b8xA/dbzOOPraAPZCVVP7hjEKHjssGcUanZTL0CT+pL4ymGEjHb7znCY1YWeAdzPk3+pO2KzxKDkKu8yreSwT4S8Y1thwkLO5VGbM01fcZhGT9QYyRHlICxapqeSZ+OUoQOA39+M44n1THExDNP1nlSdY4DMwmVyMwa9UF/fHDmyfXpLctcawqQ6mEuQkj3uBoRnLO9SU3PCRU8Oq2LOs4riq16CHQ7DYsg9VlT/No4DV5I9bkRD7Kw5ReT5qExpGJRe4bg4mNRr+XupdOPd8q26QGfMX92+XfaXaYF9IiSPIKZfzZFc/nPyWx+jIb8lFYZkAWYRFNyIs/+We59ns8etNi6GcYLEFp83AxQ7zcWjvaQzPj0Y= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(40470700001)(2616005)(36756003)(508600001)(186003)(4326008)(82310400004)(2906002)(54906003)(40460700001)(5660300002)(70206006)(83380400001)(8936002)(316002)(6862004)(26005)(70586007)(336012)(66574015)(8676002)(81166007)(966005)(86362001)(44832011)(426003)(36860700001)(107886003)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2021 16:07:33.0718 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b32bd65b-0e5c-4a11-4ed4-08d9c177559e X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6693 X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: jit@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Jit mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2021 16:07:37 -0000 Marc Nieper-Wi=C3=9Fkirchen writes: > Am Fr., 17. Dez. 2021 um 15:54 Uhr schrieb Andrea Corallo :Marc Nieper-Wi=C3=9Fkirchen via Jit writes: > >> Am Fr., 17. Dez. 2021 um 11:52 Uhr schrieb Alex Coplan >>: >> >>> Hi, >>> >>> > -----Original Message----- >>> > From: Jit On B= ehalf Of >>> Marc >>> > Nieper-Wi=C3=9Fkirchen via Jit >>> > Sent: 17 December 2021 10:29 >>> > To: Mark Wielaard >>> > Cc: Marc Nieper-Wi=C3=9Fkirchen ;= mailto:jit@gcc.gnu.org >>> > Subject: Re: Memory leaks (detected by Valgrind) >>> > >>> > Thanks! >>> > >>> > With `--enable-valgrind-annotations`, the "uses of uninitialized valu= es" >>> > have gone away, but a lot of small leaks are still present: >>> >>> Memory leaks with libgccjit are a known issue, see >>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63854 >> >> >> Oh, that the bug has been open so long and is still open is unfortunate = as >> a process using libgccjit usually lasts a lot longer than a single compi= ler >> run by gcc. > > This weakens the usefulness of libgccjit considerably, doesn't it? Agree, IMO it does. > If I have to start a new process to invoke it, only a bit is won > compared to writing out C and using the C frontend of GCC through > exec, no? Correct. We leave with that also because we use subprocesses to obtain parallelism (we have no posix thread exposure in Elisp) *and* in any case we would not be able to backport the hypothetical fix to old distros. > How to you pass back the result of the compilation from the > subprocess to the original process in Emacs? For us it's easy as the output of the compilation is a file (we'll reuse it in different sessions). > PS How difficult is it to fix the memory leaks? Good question. Andrea IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.