From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: building/using address-sanitizer-enabled emacs? Date: Wed, 17 May 2017 05:24:36 +0300 Message-ID: <83r2zo5ifv.fsf@gnu.org> References: <83wp9scbwi.fsf@gnu.org> <83shkfct06.fsf@gnu.org> <83fugfcp3b.fsf@gnu.org> <9089f9ef-5312-2d82-a671-b63269a3312b@cs.ucla.edu> <83bmr1bfhj.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1494987899 29389 195.159.176.226 (17 May 2017 02:24:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 May 2017 02:24:59 +0000 (UTC) Cc: jim@meyering.net, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 17 04:24:52 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAodw-0007Tj-9K for ged-emacs-devel@m.gmane.org; Wed, 17 May 2017 04:24:52 +0200 Original-Received: from localhost ([::1]:45111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAoe1-0007kH-RF for ged-emacs-devel@m.gmane.org; Tue, 16 May 2017 22:24:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAodw-0007kC-02 for emacs-devel@gnu.org; Tue, 16 May 2017 22:24:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAodr-0005Ph-Fa for emacs-devel@gnu.org; Tue, 16 May 2017 22:24:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAodr-0005Pd-BY; Tue, 16 May 2017 22:24:47 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2759 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dAodq-0000vo-Hn; Tue, 16 May 2017 22:24:46 -0400 In-reply-to: (message from Paul Eggert on Tue, 16 May 2017 14:49:46 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214899 Archived-At: > Cc: emacs-devel@gnu.org > From: Paul Eggert > Date: Tue, 16 May 2017 14:49:46 -0700 > > > Indeed, I believe the problem you reported is unrelated to unexec. > > You're right, I didn't read Jim's message carefully enough. I see that > the AddressSanitizer code suffered some bitrot since I last got it > working; among other things its output was being discarded on Fedora 25 > x86-64, which at first gave me a false sense of security.... I installed > the attached patches to work around the GCC problem that Jim reported, > the improper output discard, and one minor memory leak uncovered by > AddressSanitizer. When I run Emacs with AddressSanitizer now, it > reports some other minor memory leaks, almost all from the fontconfig > library. I do not observe any problems with SAFE_ALLOCA. Thanks. But isn't it strange that none of the changes you made is related to starting a sub-process, which was where the original report came from?