From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: feature/asan-gc-poisoning 5c653d3ec9: Add support for additional memory checks using AddressSanitizer. Date: Wed, 30 Nov 2022 15:41:32 +0200 Message-ID: <83a648lfub.fsf@gnu.org> References: <166975768364.28465.5012752085318372072@vcs2.savannah.gnu.org> <20221129213444.5CC36C009EC@vcs2.savannah.gnu.org> <87h6yhujha.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1265"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, vibhavp@gmail.com To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 30 14:42:33 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0NM8-00005c-RJ for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Nov 2022 14:42:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0NLt-0003tW-M0; Wed, 30 Nov 2022 08:42:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0NLr-0003sp-N4 for emacs-devel@gnu.org; Wed, 30 Nov 2022 08:42:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0NLl-00012E-1P; Wed, 30 Nov 2022 08:42:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=189Qh1RXty2mvPaU7/kwoQ0FlSg4AxoqMaAzFxYYiUw=; b=AFypgBdPZEXi XKswUWP+yBqvK5cWQSTatHVT6wSLtjwYaIz97Ojob93AYHpTIKGvKv51ABU8Xfz+cPsoLOhBZsNyJ ahEoHmXWvIc/zWLJbKUSLKHNm98kThFev+9cYrpcv0uWNYf3CMQbvhYOMFnD/fRiworcT/MH9z7KE fXP2dHP+1KSCObMkvkT/BRjy75vWDOj3k31iur2ot5CDUC698GtibXm5tLGjcgbx44ZEjoqsLKJuQ Di26XBlW1jHlEGGhQwynQ/BdmVNRLeUzysoSJajVFplBIYguEaIqI/RJKZOQxlRs5w+t3OjEnDQ69 nZSTfue1aUrpDQnyrox17A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0NLc-0000nZ-UY; Wed, 30 Nov 2022 08:42:04 -0500 In-Reply-To: <87h6yhujha.fsf@yahoo.com> (message from Po Lu on Wed, 30 Nov 2022 12:58:09 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300765 Archived-At: > From: Po Lu > Cc: Vibhav Pant > Date: Wed, 30 Nov 2022 12:58:09 +0800 > > Vibhav Pant writes: > > > Add support for additional memory checks using AddressSanitizer. > > > > When Emacs is compiled with AddressSanitizer support, enable > > poisoning/unpoisoning freed/unused Lisp objects and other internal > > memory management structures. If enabled, this will mark freed bytes > > that have been put on free lists for future use, and initially > > allocated memory blocks/chunks as "poisoned", triggering an ASan error > > if they are accessed improperly. Structures are unpoisoned when they > > have been taken off their respective free lists. To be more useful, this should be mentioned in etc/DEBUG, where we describe how to build and run Emacs with memory-debugging facilities. Thanks.