GNU bug report logs - #71774
31.0.50; Hash table weakness broken?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: martin rudalics <rudalics@HIDDEN>; Done: martin rudalics <rudalics@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 71774 <at> debbugs.gnu.org:


Received: (at 71774) by debbugs.gnu.org; 26 Jun 2024 13:53:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 26 09:53:29 2024
Received: from localhost ([127.0.0.1]:38865 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMT5V-0000us-3q
	for submit <at> debbugs.gnu.org; Wed, 26 Jun 2024 09:53:29 -0400
Received: from mout.gmx.net ([212.227.15.19]:50121)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1sMT5R-0000ua-He
 for 71774 <at> debbugs.gnu.org; Wed, 26 Jun 2024 09:53:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at;
 s=s31663417; t=1719409991; x=1720014791; i=rudalics@HIDDEN;
 bh=DfU1nzIsZprIv3zFbrdvybKZk6UrLCQfcbTQ9Jl84eM=;
 h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc:
 References:From:In-Reply-To:Content-Type:
 Content-Transfer-Encoding:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=d9GTPdPsP7A8n1unGO0f3oaijD2MdhTstq1KhO747ZN/wCLahR0zMBJ64eg/f1QY
 OVrHialLh2S0bmlgXrh0krMVtAZzaPL6GamNlw5j8e8XXjtAdBdmlINAGKA9LXOXI
 XVTiOndXTvzWfYwjFVoIcnYeP2mcjFP/k4Icn6jkvED982iBbea8z0ilONYE1lMVX
 KeNI37rZdoMheL8uVsGKSig7zYc3lpz9JFyuYT+NQTuB4+3jsWdQ6JTmxelkU3zw5
 eKx23R7r/vQqPhUj9JIoVXFNU7u/bY+X5iluzmeI1rwPlErEOW9yFUwJ/YBF1zEdH
 NQbg6kfJsNCzFkI6RA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [192.168.31.113] ([213.142.97.45]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MwfWa-1sYCTt0ub4-00yUzi; Wed, 26
 Jun 2024 15:53:11 +0200
Message-ID: <3f911ee8-58c9-4ee2-9b88-046b1185e979@HIDDEN>
Date: Wed, 26 Jun 2024 15:53:09 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71774: 31.0.50; Hash table weakness broken?
To: Stefan Monnier <monnier@HIDDEN>, Pip Cet <pipcet@HIDDEN>
References: <f622d91d-4031-4ff6-8f34-ebe85db95160@HIDDEN>
 <sQr0C7mmHffGTUf-21UAudr3M9jkq4OZeAdirdQdQwndMvXWavcB0ENYocLNRWavU0Hp6GMJMvfghiukEIBERezgd4zMhp6d0pxNz6hq1-c=@protonmail.com>
 <538ef1ba-fc7a-482a-a469-4faf0ff3cfb5@HIDDEN>
 <eKJPoMx3sWbmmkBxb8MLNXcmmUQlc5Rf-ENAoFHYX1iNgtHgS-sV84Jf8g5jlYQ-g_2dKFw5hAayKhGEcfxyXGuXSitRODdhcRdYFgs7IFE=@protonmail.com>
 <0485afd0-9022-41d0-aaee-9ad080f7aace@HIDDEN>
 <cKBa-HkilR_7CpriVskQ_JfvtyPZ0t8cZRkllVeL-xAxZvsm3s-D_WvwrCoqtLEBTsXCoYywm2sB9MiS4FkGCRA7X8yn-Hyaf9wlohnXRpo=@protonmail.com>
 <jwvzfr7zvxw.fsf-monnier+emacs@HIDDEN>
Content-Language: en-US
From: martin rudalics <rudalics@HIDDEN>
In-Reply-To: <jwvzfr7zvxw.fsf-monnier+emacs@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:Bv4LS1UpxmKyPjhLFZUzBM4K9TfACPwu/DCvpxRpfC36Fec5Emr
 7w84XaUB+Oi6J1wevsYM57RsDdRIH2rrLte9ft7zGFFPRtn1hYyNgOuycKqKcp/+iPwh0PD
 C6lKm5z4ms28K6wB90NfL5dt3qhvFtoBJcGG0poY5cpZQgCflAabf4sRsdt7CsFdUCsLWFf
 unIn7+MSnJdHC+FfWvjZg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:k34FBSs7Nos=;btzmEKQC6JdDpveLFKV2pubb+GW
 EG1QK+9lcFaAS7Xs8GRUxiG97B9wKfzlHRFltokvWqqJupaqfyaUYSHABLvCGXrOIbEwWB/vX
 8Qi7T4j8BNFfb452CtP+p6ZNIDuXP3Vh72t1L7tNNGmoPYCGLiPTBEvgMfiFbqCL9boLnr5Hz
 N8gn04b94D4TtXnZF6qzJu11VvT/thsACNar7oWSSCDHEdViJ9j5l3yw8/65+NbnFvCUNVxEd
 YoEES34nAcELywAODmCtubCDFaW4aJl3+hyTnPaM1gb8v773muoETXUOZEmOmjlwwMQvEd1rk
 DmR8dYHnctNGEEmpU+j4Z8XoR2uQx4OPYTmPVZRzcm7Nyc5jM4rkIP5TGlw75GNSx8D7XPaYQ
 7cQ6o1U+ecsBGQgKjQJr7d176aK4uvZVsnfN2Ouf5rf2qMFCQKjb4CwplWtnl7e+lvM2wr5cb
 4V52V6W0ldYl+fh21yaayYnicuBJODNiaTs9P+RLxNNtPCzJpMa6/XVp+U3EYcCEhHtb4p1SO
 p2kzCARp54S27iXMhdjCnmT+FZxkL0HeXb2Dj0pIObjPsqj2F/5EvTW+7cnOHsaLffnime1/I
 eFDKI1o96DTg4vdts/BSu5m5XBuLqkoloZiuEqmtOjbo7a9xlX9EGt6gO9O3oe1ipoWR2Bu09
 n2NWcEMPjTL+gy2rd13TnEkEd6Dyph1P4CJJ02yVhVJS3n1aax7urkjfU4pSfCa87aa8ilAX2
 x+C8aT8G6dTf15BMcIDh2PbVA5RPvd9awTHRSb2kEM0yz/+4z2xVNO9do4X+4lSttY8hSw6uF
 MCmSbQyyEtCtMS94KnepEupYblo7akZJXqXB6PqHqSpJs=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 71774
Cc: 71774 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > Martin, can you confirm that it fixes the problem for you (so I can
 > install it on `emacs-30`)?

Unless I did something wrong it does not fix the problem for me.

 > I'd be in favor of just removing the call to `values--store-value` as
 > suggested by Matthias.

Removing that call fixes the problem for me.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71774; Package emacs. Full text available.

Message received at 71774 <at> debbugs.gnu.org:


Received: (at 71774) by debbugs.gnu.org; 26 Jun 2024 13:23:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 26 09:23:49 2024
Received: from localhost ([127.0.0.1]:38790 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMScn-0008RD-79
	for submit <at> debbugs.gnu.org; Wed, 26 Jun 2024 09:23:49 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:36369)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1sMScl-0008Qx-2I
 for 71774 <at> debbugs.gnu.org; Wed, 26 Jun 2024 09:23:48 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3EBB880C8E;
 Wed, 26 Jun 2024 09:23:37 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1719408215;
 bh=ia8GmOllUb76/RfRIu1JJxR9ZSeNzWO9aoMRT9Ze00A=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=iIIy9uH5hyPiDlAJMnfxcuAiEc0D1tXmrD4ElTwWUMC2rLIt7KUVdfe58qjbUDYvn
 GLqa+OmQT23H/i25zZdJi7M5WEVhKgAPAp9DKd1GsLkmuz7SJNVL3Cyc4ozWVBXpNa
 h/kJ4tWIU/KEgbtFWw2i+nRu+1EGmulkvxOkWNE/pNosBhsmjLlNBnVelyAtWdtY9+
 D7MZJf3IDsDsZKUnM/y3K9XeKKxBOZwCQaU0KvX4zqL45pM/eNRg7Q05RGUyyPhkcA
 gx1NNReJXOkCGDRzasBm1j60ih/ZQXd8moInsdagdtdp8+HJ3AN+8o57eZu/8wMa0V
 wT5vohsw+2VUA==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E661D80916;
 Wed, 26 Jun 2024 09:23:35 -0400 (EDT)
Received: from pastel (unknown [24.140.236.196])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B4079120635;
 Wed, 26 Jun 2024 09:23:35 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#71774: 31.0.50; Hash table weakness broken?
In-Reply-To: <cKBa-HkilR_7CpriVskQ_JfvtyPZ0t8cZRkllVeL-xAxZvsm3s-D_WvwrCoqtLEBTsXCoYywm2sB9MiS4FkGCRA7X8yn-Hyaf9wlohnXRpo=@protonmail.com>
 (Pip Cet's message of "Wed, 26 Jun 2024 09:12:45 +0000")
Message-ID: <jwvzfr7zvxw.fsf-monnier+emacs@HIDDEN>
References: <f622d91d-4031-4ff6-8f34-ebe85db95160@HIDDEN>
 <sQr0C7mmHffGTUf-21UAudr3M9jkq4OZeAdirdQdQwndMvXWavcB0ENYocLNRWavU0Hp6GMJMvfghiukEIBERezgd4zMhp6d0pxNz6hq1-c=@protonmail.com>
 <538ef1ba-fc7a-482a-a469-4faf0ff3cfb5@HIDDEN>
 <eKJPoMx3sWbmmkBxb8MLNXcmmUQlc5Rf-ENAoFHYX1iNgtHgS-sV84Jf8g5jlYQ-g_2dKFw5hAayKhGEcfxyXGuXSitRODdhcRdYFgs7IFE=@protonmail.com>
 <0485afd0-9022-41d0-aaee-9ad080f7aace@HIDDEN>
 <cKBa-HkilR_7CpriVskQ_JfvtyPZ0t8cZRkllVeL-xAxZvsm3s-D_WvwrCoqtLEBTsXCoYywm2sB9MiS4FkGCRA7X8yn-Hyaf9wlohnXRpo=@protonmail.com>
Date: Wed, 26 Jun 2024 09:23:27 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.047 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71774
Cc: martin rudalics <rudalics@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>,
 71774 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>> gets me nil too. So to make such tests work one has to tinker with
>> that obsolete variable 'values'. Worrisome.
> I believe that change, in commit 84f72f19e514db8f8f6e469340fb5fa0719d40b6,
> might have been unintentional. Stefan: is it intentional that the default
> behavior was changed to modify "values", even if
> eval-expression-debug-on-error is `t`?

No, indeed, it was an oversight.
The patch below should get us back to the previous behavior, tho I can't
see why we'd set `values` when `eval-expression-debug-on-error` is nil
and not when it's not.

Martin, can you confirm that it fixes the problem for you (so I can
install it on `emacs-30`)?

Apparently this was introduced by

    commit 4428c27c1ae7d5fe5233e8d7b001a8cd2fcdc56f
    Author: Lars Ingebrigtsen <larsi@HIDDEN>
    Date:   Mon Feb 8 08:15:45 2021 +0100
    
        Record the value of `C-x C-e' in `values'
        
        * lisp/progmodes/elisp-mode.el (eval-last-sexp): Record the value
        in `values' (bug#22066) since we're messaging it.

I'd be in favor of just removing the call to `values--store-value` as
suggested by Matthias.


        Stefan


diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 7d0312eb2a4..3423b9493f0 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -1633,7 +1633,8 @@ eval-last-sexp
 If `eval-expression-debug-on-error' is non-nil, which is the default,
 this command arranges for all errors to enter the debugger."
   (interactive "P")
-  (values--store-value
+  (funcall
+   (if eval-expression-debug-on-error #'values--store-value #'identity)
    (handler-bind ((error (if eval-expression-debug-on-error
                              #'eval-expression--debug #'ignore)))
      (elisp--eval-last-sexp eval-last-sexp-arg-internal))))





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71774; Package emacs. Full text available.

Message received at 71774 <at> debbugs.gnu.org:


Received: (at 71774) by debbugs.gnu.org; 26 Jun 2024 09:40:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 26 05:40:31 2024
Received: from localhost ([127.0.0.1]:38536 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMP8g-00087M-MI
	for submit <at> debbugs.gnu.org; Wed, 26 Jun 2024 05:40:30 -0400
Received: from mail-lj1-f174.google.com ([209.85.208.174]:59558)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mattias.engdegard@HIDDEN>) id 1sMP8e-00087A-TI
 for 71774 <at> debbugs.gnu.org; Wed, 26 Jun 2024 05:40:29 -0400
Received: by mail-lj1-f174.google.com with SMTP id
 38308e7fff4ca-2ebe0a81dc8so85618541fa.2
 for <71774 <at> debbugs.gnu.org>; Wed, 26 Jun 2024 02:40:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1719394760; x=1719999560; darn=debbugs.gnu.org;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject
 :date:message-id:reply-to;
 bh=K4Iq7tuZ4KYdoMo+BSd7VF+z7to1GQX093RHCAhftsQ=;
 b=hNRexdctdlGaDUIZfDWsgsL4O+KtQElBTE8BN7TyS/97qM/VAsF2+fO+tuPhp2oVPY
 WnofItdcE43WP3k3U8tv6dArdFH/J+m0JxdoHn+vqHnc8xaGMGpInH5sNhWm/CICQJxb
 EBbFQ3jU54G7J9SD4a9ScfYeYu0XkHYHXX59Ak3dNUJauSWH/XAOZ/dH2N6v8C5xPzF9
 aVuyMpOm/sYqAxSSsc9wxD3sDPRLY/vTdpq1T+hiVKRMsnBaFFg9vqhgWEpXQZZL3kP4
 MEVN2RcHKnJadsMXZHvuTiEIiGIYs7X2UWUmJizmU0NGK2+pTvHZ/55mSdz1J7Xn5F8H
 jBTA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1719394760; x=1719999560;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:sender:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=K4Iq7tuZ4KYdoMo+BSd7VF+z7to1GQX093RHCAhftsQ=;
 b=LOulQDoV1TonT5PLfxQzd7kfBLFNvkXW2bcUBia9d7dHCutk9yhwzCzPEzzi13nCHV
 GYdMnPRaxcxkaGI2w2lApTq+NSYSeHyJmVpb+AM2Ys6dzZBT3iIkyhg5h/j6Ze+A6NXe
 ArMwhv4Eqh+gGHY2WSfNf+582E+HxwW16NR2dFWDWgMP+VYUdXRvQMiSJq1fAYjZcHym
 Zrm2JosN90pigr25gDb8WS6K7Rf+pxCILdOXELJl3vHtFTYzLBmrdbdIxZPe86Y641lo
 d2GkM720wzAspksT/ThPfUnZOaffA5RcJ9wu3rPTN5tY0sKM9ZwgLzFe2PH40VuSJfp1
 pfEg==
X-Forwarded-Encrypted: i=1;
 AJvYcCXScw7ROSroohtPMWV0Jdh9U/7KnRC/vNhOmAEVgPsPqSgbeD8UUT60+LOsJF6zdCFbQj6IvXpjwd7Av75vLKMDskCnQJ0=
X-Gm-Message-State: AOJu0YzLA8pKI2mnAEzklBGoDWhwUg/p7dco6kRQ3wrCaECaSmHIn9Di
 0BExXCCz5mTbCTu3FmMu3IRLjCw3jtiBVJLkm4yB3iemsvqdJcS7
X-Google-Smtp-Source: AGHT+IFgUGxFOLCrOT3SrEEA9H6DqJgodYy2JXgYYAjtIzcWSJxLPD/mmEliBPukMVR7PINr1G/oGA==
X-Received: by 2002:a05:6512:3e0a:b0:52c:e3c7:941e with SMTP id
 2adb3069b0e04-52ce3c799f0mr9443928e87.47.1719394758940; 
 Wed, 26 Jun 2024 02:39:18 -0700 (PDT)
Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se.
 [80.217.1.132]) by smtp.gmail.com with ESMTPSA id
 2adb3069b0e04-52cd63bc576sm1518116e87.63.2024.06.26.02.39.18
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 26 Jun 2024 02:39:18 -0700 (PDT)
Content-Type: text/plain;
	charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\))
Subject: Re: bug#71774: 31.0.50; Hash table weakness broken?
From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>
In-Reply-To: <e45d851f-489a-478e-91c3-032e31e93397@HIDDEN>
Date: Wed, 26 Jun 2024 11:39:17 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <CCB404A3-13C1-4BEE-8044-821284AD0402@HIDDEN>
References: <f622d91d-4031-4ff6-8f34-ebe85db95160@HIDDEN>
 <86ikxx9ib6.fsf@HIDDEN> <FCCC1AB8-7D61-408A-AB40-8103A672764D@HIDDEN>
 <e45d851f-489a-478e-91c3-032e31e93397@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.15)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71774
Cc: 71774 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>, martin rudalics <rudalics@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Is it possible the problem is fixed by running (setq values nil) =
before (garbage-collect), or after it, or in between calls to =
(garbage-collect)? I've not had time to test on current emacs -Q, but on =
my running emacs session that appears to fix the problem.

Thank you, Pip! It's probably `values` indeed. The effect can also be =
circumvented by not returning the undead object to the REPL:

  (setq h (make-hash-table :weakness 'value))
  -> #s(hash-table weakness value)

  (progn (puthash t (list 3) h) nil)
  -> nil

  h
  -> #s(hash-table weakness value data (t (3)))

  (garbage-collect)

  h
  #s(hash-table weakness value)

> Of course I have no idea why it worked differently in older emacs =
versions.

It appears to be an effect of Stefan's change 84f72f19, possibly =
unintended.
Maybe we should take this opportunity to get rid of `values` altogether, =
or at least in `eval-last-sexp`.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71774; Package emacs. Full text available.

Message received at 71774-done <at> debbugs.gnu.org:


Received: (at 71774-done) by debbugs.gnu.org; 26 Jun 2024 09:08:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 26 05:08:42 2024
Received: from localhost ([127.0.0.1]:38476 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMOdt-0007LX-Ow
	for submit <at> debbugs.gnu.org; Wed, 26 Jun 2024 05:08:42 -0400
Received: from mout.gmx.net ([212.227.15.15]:36035)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1sMOdq-0007LI-Ah
 for 71774-done <at> debbugs.gnu.org; Wed, 26 Jun 2024 05:08:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at;
 s=s31663417; t=1719392908; x=1719997708; i=rudalics@HIDDEN;
 bh=AoK64Q67oJJGEmBQS1gk5nlgVu/wXdS2BVOH1vFcYuI=;
 h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc:
 References:From:In-Reply-To:Content-Type:
 Content-Transfer-Encoding:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=HqK3GJsseWmgJV0T26XQTeV5/OrMKVYkd1P53YvFlOvOar1otwEhfM/S8i13NJlB
 BPctBZFp4VwUgvQm4CJZ1QP4jTH/8SJfe4qTBRBuYGDXUOT1K90kdEM5QoJixGgig
 EeKZR8iLOvZpGd6C6tnWoD87D5pcana1IjShi9pbRPOXv9U9/U0FcTdPOHsSPA14x
 KEjkEQBZh3U63cxpy72m3QBRRlTRTjYyPpr4lEcLpORadaAV1EFaxaKKe4qlfjPYX
 YClroaRpCHAo8ZYLUoDnZhzf/ZLyUNMgI4Urns7zx6aCPR22xNUtp8MsbPrT7jP1u
 fG5eIF8LmwODq4Db0w==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [192.168.31.113] ([213.142.97.45]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N3se2-1sV1XY0JVI-011IrU; Wed, 26
 Jun 2024 11:08:28 +0200
Message-ID: <0485afd0-9022-41d0-aaee-9ad080f7aace@HIDDEN>
Date: Wed, 26 Jun 2024 11:08:27 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71774: 31.0.50; Hash table weakness broken?
To: Pip Cet <pipcet@HIDDEN>
References: <f622d91d-4031-4ff6-8f34-ebe85db95160@HIDDEN>
 <sQr0C7mmHffGTUf-21UAudr3M9jkq4OZeAdirdQdQwndMvXWavcB0ENYocLNRWavU0Hp6GMJMvfghiukEIBERezgd4zMhp6d0pxNz6hq1-c=@protonmail.com>
 <538ef1ba-fc7a-482a-a469-4faf0ff3cfb5@HIDDEN>
 <eKJPoMx3sWbmmkBxb8MLNXcmmUQlc5Rf-ENAoFHYX1iNgtHgS-sV84Jf8g5jlYQ-g_2dKFw5hAayKhGEcfxyXGuXSitRODdhcRdYFgs7IFE=@protonmail.com>
Content-Language: en-US
From: martin rudalics <rudalics@HIDDEN>
In-Reply-To: <eKJPoMx3sWbmmkBxb8MLNXcmmUQlc5Rf-ENAoFHYX1iNgtHgS-sV84Jf8g5jlYQ-g_2dKFw5hAayKhGEcfxyXGuXSitRODdhcRdYFgs7IFE=@protonmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:rpFxG001dWns6Q/Ne61a2ZcJbJ48c3onkNmlkjXEaODecUvCali
 nLOUyaaereFcAID70hUCJbWOe6Re2lpY7d+O9C4CsJalQ3TDbXQ6uVUPLTGIhKnyrsxpsk+
 /EoIgwzbB/Irb4zgZPSe5Fq2X/bGL1UW468PyTnrUMms2hi67r9NGg7gx5OWmYVoHZjRLmT
 bgdB8hAsez0hl/O5VEDHg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:+Z4w0RJkDbs=;G+hAaPZvas/c6YxyKiilcOgT31S
 B0uIfrIzIqRWJNhxm9fmhD2BPMABTUYD+m20mSKmFdZZWoon7jGGm26A/55vqabUWSnxGS2OZ
 82mc076iylb15hHzZ7VjlBfGwZQO2YAiXKYvbS7wQtq4q0SZU/+sLW97EMU/1Luf0HOGEKQeb
 mi/3BKC+E5NF+uKPmglgHnAwfURjjppc17NBALAEPCYfaonEztLj5vJ367IdDQowsVjBSnq+c
 wM8AsNYVxwaN8VAvjmT21g4xseK+4jitLNEP30JcfJ+ppWotjUdS8k4v9aJGI/QaCimWi2ckL
 HbvEpTOEAgIwYtDDoape/NXmr+hNXyGWvSoVtWAR7ERzc70LtW4zCz888GxFEniMyVhveS8DL
 2VdpDElljCsYov/++eAXXlw+wpA2IXrPtD6PVoTEOsK2WOdzdr6V15PYVM+w8zvjpPrwaQERq
 GNff/j/PLH0dDOM9JvNJ5j+dYhrUq0EDj27boy3PyoyHno0M+sLpM1/DOiQM+orweSTyrZVw/
 2kD10PmEn9bDDefgeSR+JpgkNBh52A1UzdTZPhUrMZPm8m9lwl3M0pKT0rxjFRo8lVuciCXOS
 ydscXT5jHDy7Qzcj/YJH5mG7AJYPRwB0W5zwJpaLZyu53/o5iKUkTirX1Xn9EX/sodtO8SJCh
 9YSygTYZC3bFKCojONAIhjN3g1y8xbjWjpOBNSzc4b2mb7WgF3U12i6itYVmU9+cm+JoSj1Ag
 dKxXxrjPFXEAOIF1W3l2IQkhRNjlt017htU73bgHFF+opYwrqcrWg9/qAgJDAKHVWC2paSc6y
 Il6/LgZlNMQxREt/5dhJc5CwL5LK7V+ySGH2NshQniRzM=
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71774-done
Cc: 71774-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 >> Which "values" would you set to nil?
 >
 > The global variable "values", which the REPL uses to store evaluated values.
 >
 >> What precisely did you do?
 >
 > Here's my *scratch* buffer in emacs -Q:
 >
 >
 > (defvar table (make-hash-table :weakness t))
 >
 > (puthash t (split-window) table)
 >
 > (delete-other-windows)
 >
 > (garbage-collect)
 >
 > (gethash t table)
 >
 > (setq values nil)
 >
 > (garbage-collect)
 >
 > (gethash t table)
 >
 >
 > What I did is go through this buffer line by line, using C-x C-e after each line. The first gethash produces the window, the second returns nil.

You're right.  So here the scenario

(defvar table (make-hash-table :weakness t))

(progn
   (puthash t (split-window) table)
   (delete-other-windows))

(garbage-collect)

(gethash t table)

gets me nil too.  So to make such tests work one has to tinker with
that obsolete variable 'values'.  Worrisome.

Closing this bug and many thanks, martin




Notification sent to martin rudalics <rudalics@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to martin rudalics <rudalics@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 71774 <at> debbugs.gnu.org:


Received: (at 71774) by debbugs.gnu.org; 26 Jun 2024 08:39:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 26 04:39:19 2024
Received: from localhost ([127.0.0.1]:38446 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMOBT-0006f9-8D
	for submit <at> debbugs.gnu.org; Wed, 26 Jun 2024 04:39:19 -0400
Received: from mout.gmx.net ([212.227.15.19]:56891)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1sMOB2-0006a5-Q0
 for 71774 <at> debbugs.gnu.org; Wed, 26 Jun 2024 04:38:53 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at;
 s=s31663417; t=1719391124; x=1719995924; i=rudalics@HIDDEN;
 bh=RC0jVplhXUr2edYMPzcSDdZs0dZCtCBujEMmGx89aaY=;
 h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc:
 References:From:In-Reply-To:Content-Type:
 Content-Transfer-Encoding:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=r+cSb7qCPCmqHLOQhJC8PqbEs5MKKbhQ5hbq6W0xUjPX+7tlrt5KughvRxL822HC
 EEVBOEXUm/80NSRdS/3TZv8fNmigaxzQnSn5/z7JuYmPyFM5d+9o8kRCZn8qf4aCn
 b5RH5h54rU9hE32tk0pOrFuHPhyLIfpI6aG0oMkV/FXm/ary+5v0gnAK/Q1HF3VAp
 vmflvFtFtZIqlFBj67so+8bCi8kxm71CrmF1y65TIEZ9z9Tkz655PG6og16aF1h7f
 /jkI+8y7DtqnMeEygSJxvhxnEI4UxbARJJz+69rUG4w/AWL059XRPstp9AJqBtGhp
 lMr9QMepGSVyRewPxg==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [192.168.31.113] ([213.142.97.45]) by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M89Gj-1sH8yd0dtb-00BKME; Wed, 26
 Jun 2024 10:38:44 +0200
Message-ID: <e45d851f-489a-478e-91c3-032e31e93397@HIDDEN>
Date: Wed, 26 Jun 2024 10:38:42 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71774: 31.0.50; Hash table weakness broken?
To: =?UTF-8?Q?Mattias_Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>
References: <f622d91d-4031-4ff6-8f34-ebe85db95160@HIDDEN>
 <86ikxx9ib6.fsf@HIDDEN> <FCCC1AB8-7D61-408A-AB40-8103A672764D@HIDDEN>
Content-Language: en-US
From: martin rudalics <rudalics@HIDDEN>
In-Reply-To: <FCCC1AB8-7D61-408A-AB40-8103A672764D@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:tsBZtOfWmh9sGpxg+kxuUnOZJ4v6F0InoQQzR0X0Ty2McJYCSEA
 qM601FDQ7VV5jUNpYNsHbCzubQLe8tKaF7E0ehvShhdoop9Iks37Q2Li9nPSMcDwR9RFE+4
 it3ah4Ou/nR8PwOn7hbzBaiUAeVOQWsvHBaBuGbLztZWrSaJ0znbC1rXKlx3DUbwhQDKmeQ
 +gEIBnaqk8M2gvWq1jzjw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:VU9+CMbQrQA=;faJ+ZLRfVae1L8KpTY2Shw1Uenz
 EnM8u4adOAX5F+7euWJ6vL+I1jNwFchsVB8ypxW+d4Sng5TJXgfj6NpWODtmngRTzVPyCtuly
 +Y/ivhGtxSl28EiYVF9t0iFjHxDmLTx+EBPCGIVtNbDHesLePYtAtZ6OmVyGjmgclRFfCAO12
 SurWkzub1FGRieLk/BJDuzoVpeMlpXGFqQlieL6OQ6Ev6G79DaTfu+HADQ1Udcb5XVNlVXhiE
 iwb3WnxYGww7OIVy0Rmo9+YjESIihqpGZ7L9HHF9V5B2DUsN/QeFKWTPYbf+9q9k8fbLANdP1
 /RXiNrkc7A497XvMiQO8XU8hPHlRwe9wcJdauVkeuK21xAvLEbsy20p7CCnChWjd3d+DX8U+e
 Qe8egLy2zazVyhOtbn3d7eKIHMGpdBfravuXMSdZM6tPf89izCx98FzocPJCSROCoUR/UAjf7
 NorRhhjEeLGKS/Bfrb/At249szizoOBbQFZrFZySsjA3suGdVawDNGFSs1bFoVHiKZt6XXBwU
 Ne1pUuKCGXi9xy+JR4x5/IDExhBG6Nrp4a8/iju8M9ZboSFJK4Pna/ggmZKe5iTEHsocC5XOc
 Ff6aH+j1QpQ9PnILdC+/jjMtDcROF6K1wNufOJxywosm79qO0P5ACfGie5E3ssdH72OARX5gp
 1XI2n5PVXWqleank3IvW/ZTN5Kcdx2oeoCdMaeUHrxMaH0IKCtKkfd4FrHJzvQWVxB3kNH7i7
 JPTxMh59o47dRzq+niJRgQo9NGhxQ+GxlvjxdR7OcITm3S5iojcQmvGKTFDNEs6hizKCs+EsW
 UO4zxUxcLiGBEMhqm5EDbB+jcAB0Jm1Y/FAXZPlrXgBs8=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 71774
Cc: 71774 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > Thanks for the report, but I wouldn't read too much into that. There
 > could always be a stray reference to an object that is otherwise
 > expected to be dead. Sometimes because of the conservative roots,
 > sometimes from internal state we don't think about.

I tried once more with some 10 runs of automatic garbage collection
triggered in between and the result is the same.  Neither ambiguous
roots nor internal state can explain that new behavior IMHO.

 > There is never a guarantee that any particular object is treated as
 > dead by the GC. It's more of a general ambition.

A dead object that survives several collection cycles qualifies as a
leak in my view.

 > As far as I can tell, it works as expected. Sometimes there is a
 > stubborn value that just doesn't seem to want to be collected, but
 > it's probably just a stray value on the stack, or a hidden reference
 > that got stashed somewhere by the REPL.

This does not explain the change in behavior from all versions from
Emacs 24 up to and including Emacs 29 here to the current behavior.  A
version of Emacs 30 from early October 2023 still works correctly here.
A version from November 9th exhibits the new behavior.  I can try to
bisect from there but this takes much time on my slow machines.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71774; Package emacs. Full text available.

Message received at 71774 <at> debbugs.gnu.org:


Received: (at 71774) by debbugs.gnu.org; 26 Jun 2024 08:37:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 26 04:37:50 2024
Received: from localhost ([127.0.0.1]:38326 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMOA2-0006TO-0V
	for submit <at> debbugs.gnu.org; Wed, 26 Jun 2024 04:37:50 -0400
Received: from mout.gmx.net ([212.227.15.19]:33863)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1sMO9z-0006TB-GS
 for 71774 <at> debbugs.gnu.org; Wed, 26 Jun 2024 04:37:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at;
 s=s31663417; t=1719391057; x=1719995857; i=rudalics@HIDDEN;
 bh=byB/CDRVagby/3u+Zj4ZP5VftEPxOPI7MsTUXWbFMLA=;
 h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc:
 References:From:In-Reply-To:Content-Type:
 Content-Transfer-Encoding:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=fHW5JhqyGnwwhqkdIXP4Gl3qiCwNhpdTBDk2wZVNiU+yzZveZ905nchWoUi28mpT
 qitDZFzo/jkApa8NpJXCh+p/eX1bwlpkNrqKw2OOhqFhAOnzuvX1Z6Ij6F7KhxgCF
 gwIOevO2c91pXnIVycP20cJXrM3w/yR8RdB1zW5jXxN5O6N6I7DLvg7HXaUZrQsuV
 T8aFE4PbHT7oBBPhYw114quI/CZEMcTsJEsUSSTmEIOBAwLsoBCUVT3d8hurMIbe0
 jGgHZEzKr2pTDjHxB1WJ5ABTAiQgtv5AM7mxl7Y65IRN9uCMkjjo6iW1eUDi+8qlB
 nLGETUFLbzLe2ljnlA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [192.168.31.113] ([213.142.97.45]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M2f9h-1sKTPy0pwt-002hc8; Wed, 26
 Jun 2024 10:37:37 +0200
Message-ID: <538ef1ba-fc7a-482a-a469-4faf0ff3cfb5@HIDDEN>
Date: Wed, 26 Jun 2024 10:37:35 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71774: 31.0.50; Hash table weakness broken?
To: Pip Cet <pipcet@HIDDEN>
References: <f622d91d-4031-4ff6-8f34-ebe85db95160@HIDDEN>
 <sQr0C7mmHffGTUf-21UAudr3M9jkq4OZeAdirdQdQwndMvXWavcB0ENYocLNRWavU0Hp6GMJMvfghiukEIBERezgd4zMhp6d0pxNz6hq1-c=@protonmail.com>
Content-Language: en-US
From: martin rudalics <rudalics@HIDDEN>
In-Reply-To: <sQr0C7mmHffGTUf-21UAudr3M9jkq4OZeAdirdQdQwndMvXWavcB0ENYocLNRWavU0Hp6GMJMvfghiukEIBERezgd4zMhp6d0pxNz6hq1-c=@protonmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:MJpoC3xGTxY6UbA4lAkExjMNyfnXgJUecz/BIIDZlu2mWFHrwcA
 QG97iC17iVQN3AoHrdqoLYoM7i1Sxem62dJexQ2cBmKGOGNwLV7/7gAc00t3nXSx71Kk2dl
 ThrTNF0/esgPPRCK40MhOP+hDlFlQQ1NiUNBKqY1J2s8R9hFDK9R1p4AuUlqy7ZUQ7dhpFQ
 K0AyYJd4pYINT703pGlIw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:v18KtjwOgg0=;PRJ69yAz9zEKxeGmXj0rgNTOEao
 o4dz9nOid7vlJbVztFiDMTYCdgCxRFDa03XDnTQPft2V6wGo20x6DFcqJ2WeqU/fbdx63sdiB
 Ihvz5GLl+0idnX8rmcFUIyLhSLLE4+liaOfiuJT7Iv9YVJvvXrqUGrtMdon3lHlvoFLvrBhdk
 04SOO+xbQvUDGnKhRzaqFXE/8xbzrXh9tamuvXC7EUboe+gOra2XOH37M/Zat21921qLd8l6v
 PBwBwqARYPVkoCpD1cR/VlfVNJD68EroiLna0Q7EBxgK+aQL0TdxS/2WmbsGlFvzxN+2x9snJ
 i+AdiHJQeMoJgRh11EZfRUTVH/768UcxwInB3Ly9klBkrhEJbZ+bB0fY8YVEoIpOjuIL60WUV
 F7NkURDT0kSrE2edNejtDsL5sID3/oTrjoYPAqfAc1MjytxEruy7sUlec9BcYoS0hLdvx+dXJ
 YrYs5etM1oC/eYjgmi3KA88kfU+FX/j4EKABxBTyxvlgLn0ROdJ2WvQGbxJAwAG1rXs5m4TUW
 bwTF9E/U/H1csR0Pyv24aWgsY4pXbixgAi2edYIcSfdOK/Otfml4ghD9ZL+oQtsdIA/611NLY
 zSvIFZ3IKCp5OGoqW2zqF3nsaWY9CeaMpemT32ap02sPldiks/p80qBAIuwzpIt9bZtlE+t5z
 r/cZSlzpdCBUEVpquREeMav5FllzG0DcrR89XSIi2BTjaHfuiiO9H6Gxd4PZ/O+jrCJEr1uN2
 bmM/p7xoO20vOPScz0lT4AMyhPuzeCmUAyyZoJeqkNzbODWi2wqJ8UbHdpGsDNtzN9Ln85dxV
 BOHDkCVbX51CjxaFPE4SOqv5o2k8BP8OgbLVKlMZSAxkY=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 71774
Cc: 71774 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > Is it possible the problem is fixed by running (setq values nil)

Which "values" would you set to nil?

 > before (garbage-collect), or after it, or in between calls to
 > (garbage-collect)? I've not had time to test on current emacs -Q, but
 > on my running emacs session that appears to fix the problem.

What precisely did you do?

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71774; Package emacs. Full text available.

Message received at 71774 <at> debbugs.gnu.org:


Received: (at 71774) by debbugs.gnu.org; 26 Jun 2024 07:19:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 26 03:19:50 2024
Received: from localhost ([127.0.0.1]:38029 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMMwX-0004Gv-H9
	for submit <at> debbugs.gnu.org; Wed, 26 Jun 2024 03:19:50 -0400
Received: from mail-40131.protonmail.ch ([185.70.40.131]:19413)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pipcet@HIDDEN>) id 1sM833-0007ED-JU
 for 71774 <at> debbugs.gnu.org; Tue, 25 Jun 2024 11:25:37 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1719329125; x=1719588325;
 bh=ncVeGFOBSt2VSUPyD5H2C+v8nS9ek3e1J0FBwatAoVg=;
 h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
 Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
 Message-ID:BIMI-Selector;
 b=P/1PeJa7hQnQsPYrBv9Bv/vQwwiStChNyfC6yxvZbelxvqXq6NzrRmjTtAPGGEKGr
 rtAJdYCiPO5dP+w8Bc3TYsGUJ3QNbvRdnMNXRVVPafwPHR0Zg9Nh3KimHOOMes+h4l
 Or+RKmSyhUXUsbmG6Ou7TNyCPn9OPyEIfUITU41XecNMADMjcpx2oHdqzATIMUF6k0
 hwQmqrjaIp165h4VR2FNOAPW3ZdpEnH21ufN3JYt90PRpqEgj54IVyQH++NJcWYDJk
 HQKTcU4eDloD5YbEit8r4BFZNP2DWS/2GJn1ZkFdgSTgPMMOZLxR92n3shCHHkUxVU
 X8o0Vl5+TWrlQ==
Date: Tue, 25 Jun 2024 15:25:21 +0000
To: martin rudalics <rudalics@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#71774: 31.0.50; Hash table weakness broken?
Message-ID: <sQr0C7mmHffGTUf-21UAudr3M9jkq4OZeAdirdQdQwndMvXWavcB0ENYocLNRWavU0Hp6GMJMvfghiukEIBERezgd4zMhp6d0pxNz6hq1-c=@protonmail.com>
In-Reply-To: <f622d91d-4031-4ff6-8f34-ebe85db95160@HIDDEN>
References: <f622d91d-4031-4ff6-8f34-ebe85db95160@HIDDEN>
Feedback-ID: 112775352:user:proton
X-Pm-Message-ID: 978eb2505bf97be6f668043dd52cc3e37d5bcc8a
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71774
X-Mailman-Approved-At: Wed, 26 Jun 2024 03:19:45 -0400
Cc: 71774 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Tuesday, June 25th, 2024 at 13:57, martin rudalics via "Bug reports for =
GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> wr=
ote:
> With Emacs -Q evaluate the following forms in scratch step by step:
>=20
>=20
> (defvar table (make-hash-table :weakness t))
>=20
> (puthash t (split-window) table)
>=20
> (delete-other-windows)
>=20
> (garbage-collect)
>=20
> (gethash t table)

Is it possible the problem is fixed by running (setq values nil) before (ga=
rbage-collect), or after it, or in between calls to (garbage-collect)? I've=
 not had time to test on current emacs -Q, but on my running emacs session =
that appears to fix the problem.

Of course I have no idea why it worked differently in older emacs versions.

Pip




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71774; Package emacs. Full text available.

Message received at 71774 <at> debbugs.gnu.org:


Received: (at 71774) by debbugs.gnu.org; 25 Jun 2024 17:22:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 25 13:22:14 2024
Received: from localhost ([127.0.0.1]:37635 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sM9rq-0001Xo-Fe
	for submit <at> debbugs.gnu.org; Tue, 25 Jun 2024 13:22:14 -0400
Received: from [209.85.167.43] (port=50233 helo=mail-lf1-f43.google.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mattias.engdegard@HIDDEN>) id 1sM9rO-0001Wg-H8
 for 71774 <at> debbugs.gnu.org; Tue, 25 Jun 2024 13:22:02 -0400
Received: by mail-lf1-f43.google.com with SMTP id
 2adb3069b0e04-52cdea1387eso3515460e87.0
 for <71774 <at> debbugs.gnu.org>; Tue, 25 Jun 2024 10:21:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1719335987; x=1719940787; darn=debbugs.gnu.org;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject
 :date:message-id:reply-to;
 bh=UvJvUFNGXWrDSXqhbb+qSaHKfdFmciA399y5rJ9DurY=;
 b=Jy5Zpq0+TbTVxX/zdvTUL91+FhmoI71hlNRwllfhU6rNCHk7ZyaNtcDF6qHdYLs2N7
 pyahy5VIaj0J+XesdQh/vcLcBsf/IYVmISMlW/R4Ch+c//FEShJp8Wkh+FWxokqdKwsw
 IxOS5j5522LuDhkexZf5itHmIRjcOWp9/sw4TwEEnbi+pkg0j6OGPE6654d1V704e6hb
 Kgn3kyLDtzbJLSIQioZUi+I8ebynjUdgRWFjL4WMIxmu72MTvgOcQFC4rvrJL43uU2Bf
 nSIvg/vYSaLGwfyXWRAIeamrECj1NYqcmVNJ0QsEInY6W/NzzsFjU6QKCSqKkQMEimZ4
 Vv+A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1719335987; x=1719940787;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:sender:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=UvJvUFNGXWrDSXqhbb+qSaHKfdFmciA399y5rJ9DurY=;
 b=uiD6cAfGgDqck9zmPXDpEa2ELsPzhBCr0ac5+LGpuQ4qYa9e6m6e/+IO1zJGDo+fPu
 K4JXiBzXZzBVo+DPMP8E26cGN90H0BS+1ZDP/cWEhNSMxEAdQNVj0kFTNkQjNkX0Pn2c
 iZX+jT5la+PyLqWEyagTYBasCz1ld4Cc3RQe9YrMkJ5mqUtfPIVewHhpja4mi+fVdofr
 SXNjB6ASoxdJ3WuByU9YmYnqrMa2gurzHa/aAPh0uQoDxcjAzKd2O3c8226pYbLEn2NP
 Okq/Ri5vko/ej7tQgEuJ7378q/1SQakIoNSFRj0eeeY55zL6NlUk9kIcNJRTm3BZnNeE
 wuCA==
X-Forwarded-Encrypted: i=1;
 AJvYcCVdpIZ84cRu7dTrQkRfUxQKXsHvw6aBtRx23am33B5jKZCzQKnLU17tpS3ik0si9YgBnhw18zxfykTIivv8SQaDo+HJSqQ=
X-Gm-Message-State: AOJu0YxtyzEEsr5F2sHuOWOn1Zj9eITwzBHcGrWew8nK9Tl1qDOleIpH
 94TOBbATyYy5PUoPdunY9IiUs5U3lwjpdOzxSlpb081ghdPwIcoS
X-Google-Smtp-Source: AGHT+IG8Elaqhl0l3NE2b8MzrPbhPninWsv+BMh7Bwx6a/CA6sjOElu8gCWpuXMlJKeolA7A/+cyLg==
X-Received: by 2002:ac2:4838:0:b0:52b:c27c:ea1f with SMTP id
 2adb3069b0e04-52ce185faa8mr4291073e87.55.1719335987008; 
 Tue, 25 Jun 2024 10:19:47 -0700 (PDT)
Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se.
 [80.217.1.132]) by smtp.gmail.com with ESMTPSA id
 2adb3069b0e04-52cec5db055sm300161e87.69.2024.06.25.10.19.46
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 25 Jun 2024 10:19:46 -0700 (PDT)
Content-Type: text/plain;
	charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\))
Subject: Re: bug#71774: 31.0.50; Hash table weakness broken?
From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>
In-Reply-To: <86ikxx9ib6.fsf@HIDDEN>
Date: Tue, 25 Jun 2024 19:19:45 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <FCCC1AB8-7D61-408A-AB40-8103A672764D@HIDDEN>
References: <f622d91d-4031-4ff6-8f34-ebe85db95160@HIDDEN>
 <86ikxx9ib6.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.15)
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: > The last form evaluates to #<window 7> here. In all prior
 Emacs > versions I have it evaluates to nil. IIUC this means that either
 hash > table weakness is broken or there is a bug in the collector. [...] 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 T_SPF_HELO_TEMPERROR   SPF: test of HELO record failed (temperror)
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.85.167.43 listed in wl.mailspike.net]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (mattias.engdegard[at]gmail.com)
 0.0 T_SPF_TEMPERROR        SPF: test of record failed (temperror)
 -0.0 T_SCC_BODY_TEXT_LINE   No description available.
 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
 0.0 PDS_HP_HELO_NORDNS     High profile HELO with no sender rDNS
 0.0 SPOOFED_FREEMAIL_NO_RDNS From SPOOFED_FREEMAIL and no rDNS
X-Debbugs-Envelope-To: 71774
Cc: martin rudalics <rudalics@HIDDEN>, 71774 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

> The last form evaluates to #<window 7> here.  In all prior Emacs
> versions I have it evaluates to nil.  IIUC this means that either hash
> table weakness is broken or there is a bug in the collector.  To =
exclude
> that the behavior is specific to the window handling code, note that =
the
> recipe you can find here
>=20
> https://nullprogram.com/blog/2012/12/17/
>=20
> is now broken too.

Thanks for the report, but I wouldn't read too much into that. There =
could always be a stray reference to an object that is otherwise =
expected to be dead. Sometimes because of the conservative roots, =
sometimes from internal state we don't think about.

There is never a guarantee that any particular object is treated as dead =
by the GC. It's more of a general ambition.

As far as I can tell, it works as expected. Sometimes there is a =
stubborn value that just doesn't seem to want to be collected, but it's =
probably just a stray value on the stack, or a hidden reference that got =
stashed somewhere by the REPL.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71774; Package emacs. Full text available.

Message received at 71774 <at> debbugs.gnu.org:


Received: (at 71774) by debbugs.gnu.org; 25 Jun 2024 15:02:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 25 11:02:53 2024
Received: from localhost ([127.0.0.1]:37549 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sM7h7-0006cR-Ej
	for submit <at> debbugs.gnu.org; Tue, 25 Jun 2024 11:02:53 -0400
Received: from eggs.gnu.org ([209.51.188.92]:48990)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sM7h3-0006cB-2K
 for 71774 <at> debbugs.gnu.org; Tue, 25 Jun 2024 11:02:52 -0400
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 <eliz@HIDDEN>)
 id 1sM7gv-0005PO-Fv; Tue, 25 Jun 2024 11:02:41 -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=FEqODALYyRLsMqKI6/hxwlWdcXH5oBsmsIDyEraJ870=; b=rM7YzgxEePi70Bz6UKCE
 Jk+wfGNS/3yjzQvRwrsze1synuJdTp+em8qfNpTa/R6diVfFA+2QoYZQwcXweXGIfyXvFgQSAc2W9
 KQrLM4dn9CoRv4wCocOI9GTQnnyja0M6RMuneAv4pB3Ly58RVmSVv7Ucd3GnEbswfCzFO7N3/uYMl
 JJtlT4rmh5aW9ZjM2yWgOkTRlVfyfLC0aYiDLPJOm+Jw4o9EIf8yt7H1KP4Rll8Q2xg4f3mI8mpjB
 5FXq1CBvCB/ck5sJtwPqmGTcQIhbFuXPX9CM20KjaWexxRXXyxEzlIaLqRmAkugSxMFHKSIrbNsYj
 q3G152a85u2S6A==;
Date: Tue, 25 Jun 2024 18:02:37 +0300
Message-Id: <86ikxx9ib6.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>, Mattias =?utf-8?Q?Engdeg=C3=A5rd?=
 <mattiase@HIDDEN>
In-Reply-To: <f622d91d-4031-4ff6-8f34-ebe85db95160@HIDDEN>
 (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#71774: 31.0.50; Hash table weakness broken?
References: <f622d91d-4031-4ff6-8f34-ebe85db95160@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71774
Cc: 71774 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Tue, 25 Jun 2024 15:57:55 +0200
> From:  martin rudalics via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> With Emacs -Q evaluate the following forms in *scratch* step by step:
> 
> 
> (defvar table (make-hash-table :weakness t))
> 
> (puthash t (split-window) table)
> 
> (delete-other-windows)
> 
> (garbage-collect)
> 
> (gethash t table)
> 
> 
> The last form evaluates to #<window 7> here.  In all prior Emacs
> versions I have it evaluates to nil.  IIUC this means that either hash
> table weakness is broken or there is a bug in the collector.  To exclude
> that the behavior is specific to the window handling code, note that the
> recipe you can find here
> 
> https://nullprogram.com/blog/2012/12/17/
> 
> is now broken too.

Mattias, could you perhaps look into this?  I presume the same happens
on the emacs-30 branch, which makes the fix more important.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71774; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Jun 2024 13:58:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 25 09:58:08 2024
Received: from localhost ([127.0.0.1]:37497 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sM6gS-0004zV-2X
	for submit <at> debbugs.gnu.org; Tue, 25 Jun 2024 09:58:08 -0400
Received: from lists.gnu.org ([209.51.188.17]:58504)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1sM6gN-0004zI-R3
 for submit <at> debbugs.gnu.org; Tue, 25 Jun 2024 09:58:06 -0400
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 <rudalics@HIDDEN>) id 1sM6gL-0002f4-U2
 for bug-gnu-emacs@HIDDEN; Tue, 25 Jun 2024 09:58:01 -0400
Received: from mout.gmx.net ([212.227.17.20])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rudalics@HIDDEN>) id 1sM6gJ-0000Pa-2k
 for bug-gnu-emacs@HIDDEN; Tue, 25 Jun 2024 09:58:01 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at;
 s=s31663417; t=1719323875; x=1719928675; i=rudalics@HIDDEN;
 bh=5BPzkAWJeJaltYczF/JFlERV0/9GHAibKVGtzER199Q=;
 h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:From:Subject:
 Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=N46xyP8qXSXLUFoJire5FFIE8dpYC4Z+q3xDL9xhdOUVHKSRxgTDDQLeVDCfZCtq
 fDOtv1PQvYIG/GRY7Ps7jRFjuR4kjaKRC0iZjmcGaS6JbYW9/GXMXIweixA6gKLtM
 PJBM/ygsel83xKbFWmcPnF2ZuZw7GZGJvAFlJr+8+TfXgl82h/+CU1nZ5Y9mGcJT/
 EfAcZvRY/J7xsKESOf9YNqxbw19zVOGRMXLkRZKPqpVyPSPsgJBhRxOKy/2Ub7GfW
 KvFARis4tdl1+OJ3ICnt6b/hpApGYI0Sn3an0EEMYZZ4OJKK6Q8CHulfR20x5iRU7
 xYcw4XXBwmsPsHX2RQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [192.168.31.113] ([213.142.96.160]) by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mq2jC-1shTGL2Mh0-00oseP for
 <bug-gnu-emacs@HIDDEN>; Tue, 25 Jun 2024 15:57:55 +0200
Message-ID: <f622d91d-4031-4ff6-8f34-ebe85db95160@HIDDEN>
Date: Tue, 25 Jun 2024 15:57:55 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: Bug-Gnu-Emacs <bug-gnu-emacs@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Subject: 31.0.50; Hash table weakness broken?
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:dIU5SJjmLdRVAbKW4Bnbtp6K4vnXsRy2CofJCNB5DIdCg2amVPA
 5NlZnJu2416n8LOTUG9OGOZpRNz6A0PP6zSE7z/RjcpiCLxFzbiPYx/QhHtciugvHMmizxX
 dG/RwmI7XocHZ/BoP0z2rgAsKWdaYr5shvP4NwKLrsln0Ff2QRuXwTqEzT5UbROrUBgv6+Z
 DSINmqwkAm74MVoSe7dBA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:q15kGkrOnLc=;B5oBauutrliyZb7txK/j/eg59GF
 QEdA7UWX9Zb1y8x5hBIbGEp+A9dhVSJOSn+DoPZzNj3khon41Uezty6MefTGiRmX3mHm1EEGK
 SNMvh7Ba6m8WlbScxbO50OeO3Ph9SgwSsUuQiipezamHjExlRRxauuwxU9W9dauBFZUpWTIdN
 S8yn2jQzJroKQ+rLtEZEqCX/hXsVK1pmk+PkY5srsk8xpC7e9XZNFj8rJCwnM0GdAjaZOlYFO
 i5uXB5j/UWRvTwO6Zvcp/njI3dUUDejYA9nl0TMzrjINvy7dUfA72yH3mDFak5AOnRr/CmN2N
 pLYQrkq/gQwJ1ZFu9J3MjoP8apBlpH8r85waygOV7M8Ikq0szNm3FiiPJ6cIorikZlUqTUMy3
 154i77fFf7u89Aj3XPymAFPPhrEEzOPwIISHRn50STTmMCpXe3liWmEMWD8oJaTPW7Ztn2kph
 At7Wu9ZLJWWuQlJaT35g0V6tbx9jrSZZIFNI+wXHQxvixEPGMvX8wXlqOoKhEA+fFveyfeoxs
 OvRVwSoNFMSOn+DcyMnCbkrCnWRXX2rpeQ/suIRtWGwot5yM1g2eJCkEkZO4Y3ZOiu8pQTQe8
 D0MqDJz7XR0paGF0WVqkORSWtht538wwbScS6AT87GLSmHOcZOWuy+PMhsDf9L5CJJ4zouQj+
 HdMH5e3VbNOAUKMW5iwVV73Gd32oTiW5PFgkpII62CMge3E5xX4LDc1HNBIgZr5eAYvVPYy5C
 pUb+nKgxXP5q4oJF5jXVvWf1XTyoFZsRpb8akMZofeCihPfxNiiVxo/WIiNlwdnS41Tze1rhS
 gY/iwfPoGCLVYsFebRKwcgni5kqDo9dciC5RRB+rHBJAcTqIXoTrV/pmAZZoMuJPYt
Received-SPF: pass client-ip=212.227.17.20; envelope-from=rudalics@HIDDEN;
 helo=mout.gmx.net
X-Spam_score_int: 5
X-Spam_score: 0.5
X-Spam_bar: /
X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.2 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: With Emacs -Q evaluate the following forms in *scratch* step
 by step: (defvar table (make-hash-table :weakness t)) (puthash t
 (split-window) table) 
 Content analysis details:   (2.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
 medium trust [209.51.188.17 listed in list.dnswl.org]
 3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
 [213.142.96.160 listed in zen.spamhaus.org]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (rudalics[at]gmx.at)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 T_SCC_BODY_TEXT_LINE   No description available.
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  With Emacs -Q evaluate the following forms in *scratch* step
    by step: (defvar table (make-hash-table :weakness t)) (puthash t (split-window)
    table) 
 
 Content analysis details:   (1.2 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [213.142.96.160 listed in zen.spamhaus.org]
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
                             medium trust
                             [209.51.188.17 listed in list.dnswl.org]
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (rudalics[at]gmx.at)
  1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 T_SCC_BODY_TEXT_LINE   No description available.
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

With Emacs -Q evaluate the following forms in *scratch* step by step:


(defvar table (make-hash-table :weakness t))

(puthash t (split-window) table)

(delete-other-windows)

(garbage-collect)

(gethash t table)


The last form evaluates to #<window 7> here.  In all prior Emacs
versions I have it evaluates to nil.  IIUC this means that either hash
table weakness is broken or there is a bug in the collector.  To exclude
that the behavior is specific to the window handling code, note that the
recipe you can find here

https://nullprogram.com/blog/2012/12/17/

is now broken too.


In GNU Emacs 31.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version
  3.24.38, cairo version 1.16.0) of 2024-06-25 built on restno
Repository revision: b9da5ee06f2e4ae807336dd6a641ae797831d097
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101007
System Description: Debian GNU/Linux 12 (bookworm)

Configured using:
  'configure --with-gif=ifavailable --with-tiff=ifavailable
  --with-gnutls=no --without-pop --enable-gcc-warnings=warn-only
  --enable-checking=yes,glyphs,structs
  --enable-check-lisp-object-type=yes 'CFLAGS=-O0 -g3 -no-pie
  -Wno-missing-braces''

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GSETTINGS HARFBUZZ JPEG LIBSELINUX MODULES
NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Important settings:
   value of $LANG: de_AT.UTF-8
   value of $XMODIFIERS: @im=ibus
   locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
   tooltip-mode: t
   global-eldoc-mode: t
   eldoc-mode: t
   show-paren-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   minibuffer-regexp-mode: t
   line-number-mode: t
   indent-tabs-mode: t
   transient-mark-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date subr-x mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo gtk
x-toolkit xinput2 x multi-tty move-toolbar make-network-process emacs)

Memory information:
((conses 16 39683 9012) (symbols 48 5369 0) (strings 32 12780 1387)
  (string-bytes 1 312604) (vectors 16 9423)
  (vector-slots 8 113146 8563) (floats 8 25 29) (intervals 56 255 0)
  (buffers 984 11))




Acknowledgement sent to martin rudalics <rudalics@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#71774; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 26 Jun 2024 14:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.