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#58042: 29.0.50; ASAN use-after-free in re_match_2_internal Date: Tue, 09 May 2023 08:30:45 +0300 Message-ID: <83mt2eax6i.fsf@gnu.org> References: <83edvnv965.fsf@gnu.org> <83pmf6u76i.fsf@gnu.org> <83mtaau43p.fsf@gnu.org> <83ilkytyif.fsf@gnu.org> <877d1ewnx0.fsf@yahoo.com> <87o7muiad8.fsf@yahoo.com> 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="26893"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, alan@idiocy.org, 58042@debbugs.gnu.org, monnier@iro.umontreal.ca To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 09 07:31:17 2023 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 1pwFwS-0006ol-Ss for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 May 2023 07:31:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pwFwI-00017H-1P; Tue, 09 May 2023 01:31:06 -0400 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 1pwFwE-000174-No for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 01:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pwFwE-0005oq-FO for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 01:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pwFwE-0006NJ-BS for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 01:31: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: Tue, 09 May 2023 05:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58042 X-GNU-PR-Package: emacs Original-Received: via spool by 58042-submit@debbugs.gnu.org id=B58042.168361020324004 (code B ref 58042); Tue, 09 May 2023 05:31:02 +0000 Original-Received: (at 58042) by debbugs.gnu.org; 9 May 2023 05:30:03 +0000 Original-Received: from localhost ([127.0.0.1]:42245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwFv5-0006Dw-1d for submit@debbugs.gnu.org; Tue, 09 May 2023 01:30:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwFv3-0006Db-TB for 58042@debbugs.gnu.org; Tue, 09 May 2023 01:29:50 -0400 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 1pwFux-0005Wp-Po; Tue, 09 May 2023 01:29:43 -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=jYshvT998DZ1lHqnOaL5+8WOFB8tVN7yolXpwpN6F9Q=; b=JF7a6YVHoTJYyTXzwgiS JzkBuBxRFvbNCfW8u6cbzSLlwBgR4RRITny7rwlrL+NW2h/sbrTY9N15HSnb5nLFzPMzfOY3ThU+U 5nIqkfpsFa5VuVrsFf4hE9oc5DbuM0WSpbzfAEMnai+30w+e3A8EjDEYvbDfDp/U+9tO0xsOBaMrP ITeuN1nefRDrIGcpb2jQiUMGCc+c2/h7WNaSz+rtYfznoVydX0mnWjFU+hmSn9irGQgJlMGtBcZN1 KKRQ7b/I7H0AdSmmILO0yMS4C4zTTsDUlAb2Q++0uwTIDmKRREE4ePezHPlGdhd9p/FXfvZfF5CRc Co6xkFPP0IkWGg==; 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 1pwFuw-0006P0-N4; Tue, 09 May 2023 01:29:43 -0400 In-Reply-To: <87o7muiad8.fsf@yahoo.com> (message from Po Lu on Tue, 09 May 2023 09:04:03 +0800) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261386 Archived-At: > From: Po Lu > Cc: Gerd Möllmann , Eli > Zaretskii , > 58042@debbugs.gnu.org, Alan Third > Date: Tue, 09 May 2023 09:04:03 +0800 > > Stefan Monnier writes: > > > Really? > > Yes. > > > The problem was not if it's run from within the GC, the problem was what > > this code does when *it* runs the GC (or other state-changing functions). > > [ And indeed, the fix Gerd installed was to prevent GC while running > > pending_signals. But I suspect this is not sufficient because there > > are other forms of global state that can get messed up. ] > > > > In bug#62732 we have a related problem when code run from `maybe_quit` > > (an atimer in that case) from the regexp engine, and that atimer > > itself performs a regexp-operation, which messes up the outer regexp > > engine invocation because the regexp engine is still not re-entrant (in > > that bug, the problem is the `gl_state` global variable). > > bug#62732? He meant bug#63253, I think.