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#71774: 31.0.50; Hash table weakness broken? Date: Tue, 25 Jun 2024 18:02:37 +0300 Message-ID: <86ikxx9ib6.fsf@gnu.org> References: 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="4099"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71774@debbugs.gnu.org To: martin rudalics , Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 25 17:03:16 2024 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 1sM7hU-0000ky-1H for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jun 2024 17:03:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sM7hI-0007UO-Ou; Tue, 25 Jun 2024 11:03:05 -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 1sM7hE-0007Tx-Si for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 11:03:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sM7hE-0005Qo-Km for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 11:03:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sM7hF-0006cp-SG for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 11:03:01 -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, 25 Jun 2024 15:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71774 X-GNU-PR-Package: emacs Original-Received: via spool by 71774-submit@debbugs.gnu.org id=B71774.171932777425451 (code B ref 71774); Tue, 25 Jun 2024 15:03:01 +0000 Original-Received: (at 71774) by debbugs.gnu.org; 25 Jun 2024 15:02:54 +0000 Original-Received: from localhost ([127.0.0.1]:37549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sM7h7-0006cR-Ej for submit@debbugs.gnu.org; Tue, 25 Jun 2024 11:02:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sM7h3-0006cB-2K for 71774@debbugs.gnu.org; Tue, 25 Jun 2024 11:02:52 -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 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==; In-Reply-To: (bug-gnu-emacs@gnu.org) 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:287897 Archived-At: > 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" > > 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 # 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.