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: Thu, 06 Oct 2022 21:30:47 +0300 Message-ID: <837d1cpzxk.fsf@gnu.org> References: <83fsg1osb1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27957"; 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 Thu Oct 06 21:01:43 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 1ogW7r-00076K-3R for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 21:01:43 +0200 Original-Received: from localhost ([::1]:42546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogW7o-00089F-KF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 15:01:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogVfC-0002tB-LS for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 14:32:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogVf8-0003CF-TZ for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 14:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogVf8-0001Ww-Jc for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 14:32: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: Thu, 06 Oct 2022 18:32: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.16650810875838 (code B ref 58334); Thu, 06 Oct 2022 18:32:02 +0000 Original-Received: (at 58334) by debbugs.gnu.org; 6 Oct 2022 18:31:27 +0000 Original-Received: from localhost ([127.0.0.1]:33555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVeZ-0001W6-Dg for submit@debbugs.gnu.org; Thu, 06 Oct 2022 14:31:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVeX-0001Vt-Mp for 58334@debbugs.gnu.org; Thu, 06 Oct 2022 14:31:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34784) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogVeS-000382-7h; Thu, 06 Oct 2022 14:31:20 -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=QIW6OP3iUWHPF/9QB3wzqaomUQUs4Fb+p576b//43Ik=; b=csjhy2uXjcAv8sOOym6n c8QmZ5yJ7mfFrv7WZQ3vsjX0V/rs2f/4/RgGbtf3WTgEGEJnAIPEfb+jcWQOWaBq+TZ/nxU0cvJJG q5DMJPFTtCpZWG9LYphwXdVHQ1+qz/aJDe0YH6oEN0nBv7aczLxIZ4vka7NP2J4txVfC8T7VVqVqH EGVt/4Llr1PDrifZ3KYMQcMitpPkss4447UKyl84doHLMe/+fRi80xTqb1vJzWOgioFxLG3yddPHc zJqJG62B2kftZKmtCbSWIsL57RFzF92n4zpeKVWEcKZgHNuSryTj1pW2lWwMEp+6IElpD9+eMAQi/ qGRh4Ry3da9wow==; Original-Received: from [87.69.77.57] (port=2874 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 1ogVdy-00005m-1M; Thu, 06 Oct 2022 14:31:14 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Thu, 06 Oct 2022 20:01:21 +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:244708 Archived-At: > From: Gerd Möllmann > Cc: 58334@debbugs.gnu.org, Po Lu > Date: Thu, 06 Oct 2022 20:01:21 +0200 > > Eli Zaretskii writes: > > >> Is there a way to prevent freeing realized faces? > > > > Yes: set inhibit_free_realized_faces non-zero (and record > > unwind_protect to restore it). > > Thanks. Actually, I no longer think this will help, because redisplay_internal sets inhibit_free_realized_faces to zero at the beginning... 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?