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.bugs Subject: bug#58334: 29.0.50; ASAN heap use after free in gui_produce_glyphs Date: Fri, 07 Oct 2022 15:01:47 +0300 Message-ID: <83czb3on9w.fsf@gnu.org> References: <83fsg1osb1.fsf@gnu.org> <837d1cpzxk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26191"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58334@debbugs.gnu.org, luangruo@yahoo.com To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 07 16:11:54 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ogo4w-0006fB-Oz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 16:11:54 +0200 Original-Received: from localhost ([::1]:34600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogo4v-0007FA-LP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 10:11:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogm3G-0006jg-Rc for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 08:02:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogm3G-0006pe-Hz for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 08:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogm3G-0003wI-4s for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 08:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Oct 2022 12:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58334 X-GNU-PR-Package: emacs Original-Received: via spool by 58334-submit@debbugs.gnu.org id=B58334.166514411715120 (code B ref 58334); Fri, 07 Oct 2022 12:02:02 +0000 Original-Received: (at 58334) by debbugs.gnu.org; 7 Oct 2022 12:01:57 +0000 Original-Received: from localhost ([127.0.0.1]:34580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogm39-0003vl-9R for submit@debbugs.gnu.org; Fri, 07 Oct 2022 08:01:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogm37-0003vX-IL for 58334@debbugs.gnu.org; Fri, 07 Oct 2022 08:01:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52718) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogm32-0006kZ-47; Fri, 07 Oct 2022 08:01:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=+aUeDXpLU+Q8rzuW6Us+d/pFZ0ljGPGF4VAoQE51cmU=; b=eAORmaln3ZtT1qRkRaqg pp+icd4ZT9xZJx3nFyopMBRI7+EN4YzgG7DeVwxyx4+hob4U7+T39JmEWAYaIwzOsMlDezcZ6te59 atwQC5HuOGxghW3MQJ+zsML5ABVxGisE8n7S8SBQMaxiVtHWPKSIMta42H8MX1G9jNqW2EHOOVt4k BwyY8EOhYwtxptMh2s1L/PiZd8NCDvLQWY4uKIEGU1Nahi5l/adGl+4D6w+sIBazlvpdACrQoORHz fcbPFHMA5uv1g6mw7eiFEvtJqtiiu/4J97iliEpLN+NXPUWiSU4YvPOIVXWmFkGRzVya+Ylglvb+v n/DPvdk5U5Cnyw==; Original-Received: from [87.69.77.57] (port=3575 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 1ogm31-0003HS-I3; Fri, 07 Oct 2022 08:01:47 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Thu, 6 Oct 2022 20:36:22 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:244775 Archived-At: > Date: Thu, 6 Oct 2022 20:36:22 +0200 > Cc: 58334@debbugs.gnu.org, luangruo@yahoo.com > From: Gerd Möllmann > > On 22-10-06 20:30 , Eli Zaretskii wrote: > > Actually, I no longer think this will help, because redisplay_internal > > sets inhibit_free_realized_faces to zero at the beginning... > > Yeah, I've seen the specbind right now. > > > Any way of figuring out which face is it that triggers the ASAN? Is > > it one of the basic faces, or some non-basic face? > > I'm afraid no. What about the idea to additionally check for inhibited > GC? That is, free faces only if not imhibit_free and not imhibit_gc? I don't see how "GC inhibited" is related, except by chance. It sounds wrong to conflate the two.