From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#58042: 29.0.50; ASAN use-after-free in re_match_2_internal Date: Wed, 05 Oct 2022 13:35:02 +0200 Message-ID: References: <83edvnv965.fsf@gnu.org> <83pmf6u76i.fsf@gnu.org> <83mtaau43p.fsf@gnu.org> <83ilkytyif.fsf@gnu.org> <87y1tuv851.fsf@yahoo.com> <87pmf6v7hy.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21182"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: Eli Zaretskii , 58042@debbugs.gnu.org, Alan Third To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 05 13:36:57 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 1og2ht-0005P3-31 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 13:36:57 +0200 Original-Received: from localhost ([::1]:58570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1og2hs-0002xO-2P for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 07:36:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1og2h2-0002wi-D4 for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 07:36:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1og2h1-0008DV-KC for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 07:36:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1og2h0-0001DX-5m for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 07:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2022 11:36: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.16649697144611 (code B ref 58042); Wed, 05 Oct 2022 11:36:02 +0000 Original-Received: (at 58042) by debbugs.gnu.org; 5 Oct 2022 11:35:14 +0000 Original-Received: from localhost ([127.0.0.1]:56104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og2gE-0001CH-6P for submit@debbugs.gnu.org; Wed, 05 Oct 2022 07:35:14 -0400 Original-Received: from mail-ej1-f47.google.com ([209.85.218.47]:43522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og2gA-0001Bx-98 for 58042@debbugs.gnu.org; Wed, 05 Oct 2022 07:35:12 -0400 Original-Received: by mail-ej1-f47.google.com with SMTP id a2so14696887ejx.10 for <58042@debbugs.gnu.org>; Wed, 05 Oct 2022 04:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date; bh=BWRjya7fcq6s+44vnUsfNHJQf3F6b44hDlGXGnFL1A8=; b=apq/upiMtxN7oBA+KgSA5So/96bVW8clV8y+4Pity4s6pBcOBu606THgEoxOy6OYRe NKLGkUqSmFg4T/tHfpXwyGE2dm9wKS+63Ot2Yciyje8ptVDwsE+ErNBytNreD2TdTnbS YR5plwoNnDme7kvrBk9ECSFs6VMWHeJ1axEzWjPnI5UvShMbkz4SUKfXdO0iykG4pHkP tPBatairfmdcBpxwHVm+Wi3UQP/N6X2abH+vLM04C8P7zkMzT+rgEAMoM56FH4SkYojU eHClMKmYjoRnBg+ltRWvfVYSyqB7mmk/rellFLAW2Vh9+6B+wS6M49DmpoCv7DieN2OB g57w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date; bh=BWRjya7fcq6s+44vnUsfNHJQf3F6b44hDlGXGnFL1A8=; b=ioHzdefFViWre2ULezH7t0EgJDoPPET1w3ZV3zxudKr6GoDCmxt6LClenSRs/MaH7m IwsCixH9BP8hrtUUx2UozYu1uqUlPNjxxfseBIpnzyt43R8bTcZkD9f2yT37V0ELYpE+ FFVFB0owXDheO5o4WNluXAJwYb3xALOKCA8hui/l2gXsV3SVvApfl8qlVkdzNlBA1yCb iPb2aaOdPEmXCdFWYxw8A5mmNO3miV06LEJTQztOQmiH2kxtgybOTZrJSR6ffMTHzbzD uLRWOKmoGi6rFWYgaj9BOXtXrgEkO2bJaMiHTDQX1y+7wJxwm/SYB9/U3Yf6JrNlst7V Cmlg== X-Gm-Message-State: ACrzQf1qk45TEd8opxYU5zSrEPfeOXs2C14BQSWybU73KWKa6uVr7RPM y+T/uy7QnyFpBfA55HjVa5WzK8PXo97tsQ== X-Google-Smtp-Source: AMsMyM50HUPBMpcOYfyqHk5eCrwYPW6WUd1ZEdE+3uGjZeO0Ep4CZXc2QkRLk29AMSjH8Ds6z7I1ZA== X-Received: by 2002:a17:907:9627:b0:78b:ffbb:ad5 with SMTP id gb39-20020a170907962700b0078bffbb0ad5mr2519448ejc.113.1664969703972; Wed, 05 Oct 2022 04:35:03 -0700 (PDT) Original-Received: from Mini.fritz.box (pd9e36cc6.dip0.t-ipconnect.de. [217.227.108.198]) by smtp.gmail.com with ESMTPSA id vj23-20020a170907131700b0078d261f9f44sm1204371ejb.224.2022.10.05.04.35.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 04:35:03 -0700 (PDT) In-Reply-To: <87pmf6v7hy.fsf@yahoo.com> (Po Lu's message of "Wed, 05 Oct 2022 19:23:53 +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" Xref: news.gmane.io gmane.emacs.bugs:244520 Archived-At: Po Lu writes: >> Indeed, that seems to work! > > Right. I've not had the time to investigate why unmarked windows remain > in the window tree, so I have the equivalent of that in my incremental > garbage collector. Thanks! At least one GC-related bug less, if you put that in. And with Eli's proposed patch 2. I've added that to my local branch, but it took long for the re_match case to re-appear, so maybe it should be put into master as well, so that more people test if it has adverse effects.