From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#68668: 30.0.50; Invalid hash table test: tab-bar--auto-width-hash-test Date: Wed, 31 Jan 2024 05:13:49 -0500 Message-ID: References: <8734uovhj6.fsf@gmail.com> <87a5onhhik.fsf@posteo.de> <86o7d32ep3.fsf@gnu.org> <87v87a7qbd.fsf@pub.pink> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5269"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Mekeor Melire , Eli Zaretskii , Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 68668@debbugs.gnu.org To: john muhl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 31 11:15:08 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 1rV7cY-0000zl-Kf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Jan 2024 11:15:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rV7cL-0006oU-Tk; Wed, 31 Jan 2024 05:14:54 -0500 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 1rV7cK-0006oK-NZ for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 05:14:52 -0500 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 1rV7cK-0002Dh-8y for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 05:14:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rV7cT-0001un-LM for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 05:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Jan 2024 10:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68668 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 68668-submit@debbugs.gnu.org id=B68668.17066960507277 (code B ref 68668); Wed, 31 Jan 2024 10:15:01 +0000 Original-Received: (at 68668) by debbugs.gnu.org; 31 Jan 2024 10:14:10 +0000 Original-Received: from localhost ([127.0.0.1]:37480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rV7be-0001tI-4v for submit@debbugs.gnu.org; Wed, 31 Jan 2024 05:14:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rV7bc-0001t5-EE for 68668@debbugs.gnu.org; Wed, 31 Jan 2024 05:14:09 -0500 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 1rV7bL-0002A5-Pp; Wed, 31 Jan 2024 05:13:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=CKOng3DXuSreJ8kuKSgdnIJox8OTxthMe6u0dqmK3+8=; b=Q88E1yB0ELAyZoOkKsUt 5q4cbS4W0kU12Wq06raggtNyKGQ7a+2Jm7TRVtUnObDQAVNvveSpNSU1TOBLzLZpRJTkiD1Vn2Zd9 2LnrCmAvziUa1nb05dZGM9OEqBjWXTHQspoYEq1DZs3WW0zG6NVjdK5pct+hX+oJhkU8l4lCeXxjd xWJv9W+G01sX9bULI6oIKPKrjOV9KuX2uCMgFHf4klLDfgOGg7U5pvbsublv61d/NOiWFwWVxYHtM +Y60t1cKeU+IzQQwEHHG/GqOXke1PkWL95sVIf46BriPPRn39xLQqJ+eINYwlkW1iV9W+Qqq+BR6O TuTnjeNlnq9g2A==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rV7bJ-0001va-Pl; Wed, 31 Jan 2024 05:13:51 -0500 In-Reply-To: (Andrea Corallo's message of "Wed, 31 Jan 2024 04:56:02 -0500") 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:279216 Archived-At: Andrea Corallo writes: > Andrea Corallo writes: > >> john muhl writes: >> >>> Eli Zaretskii writes: >>> >>>>> From: Mekeor Melire >>>>> Date: Mon, 29 Jan 2024 22:53:45 +0000 >>>>> >>>>> Hello, I just wanted to share a work-around for this bug, even though it >>>>> is probably bad for performance: >>>>> >>>>> (setopt native-comp-enable-subr-trampolines nil) >>>> >>>> Can someone please post a recipe for reproducing this? Does this >>>> happen if you say "make bootstrap"? >>> >>> This most reliable way to reproduce it for me is: >>> >>> git clone https://git.savannah.gnu.org/git/emacs.git >>> cd emacs >>> make bootstrap >>> make test/src/keymap-tests.log >>> >>> It reproduces on 32 & 64bit systems, x86_64, armv7l and aarch64. >>> The problem first shows up with keymap-tests in 54d3de64e19. >>> Attached is the keymap-tests.log. >> >> I can reproduce this recipe, smells of some some function being moked >> that the native compiler needs in order to work. I'll try to have a >> look. >> >> Andrea > > Okay investigation in progress, here a minimal reproducer: > > (describe-buffer-bindings (current-buffer)) > (comp-trampoline-compile 'message) > > What is going on is that for some reason after calling > 'describe-buffer-bindings' an hash table with > 'tab-bar--auto-width-hash-test' as test is leaked into the compilation > environment. > > As this is passed to the spawned process we fail as there > 'tab-bar--auto-width-hash-test' is not defined. > > Andrea Okay something very wierd hash related is going on here: If I evaluate: (progn (describe-buffer-bindings (current-buffer)) (require 'comp) (make-comp-data-container)) I get #s(comp-data-container nil #s(hash-table test tab-bar--auto-width-hash-test)) In place of the expected #s(comp-data-container nil #s(hash-table test comp-imm-equal-test)) Adding Mattias in Cc. Thanks Andrea