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#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer' Date: Thu, 04 Jan 2024 04:51:26 -0500 Message-ID: References: <838r5qib7l.fsf@gnu.org> <83plz1ggua.fsf@gnu.org> <8334vwgezh.fsf@gnu.org> <83msu2fzvc.fsf@gnu.org> <834jg9fk2j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17766"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 67900@debbugs.gnu.org, Eli Zaretskii To: Chang Xiaoduan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 04 10:52:18 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 1rLKOf-0004Qe-Sz for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Jan 2024 10:52:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLKOO-0004ZT-TV; Thu, 04 Jan 2024 04:52:00 -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 1rLKON-0004ZJ-91 for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 04:51:59 -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 1rLKON-0003YQ-0b for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 04:51:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rLKOQ-0005Ep-Ce for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 04:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jan 2024 09:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67900 X-GNU-PR-Package: emacs Original-Received: via spool by 67900-submit@debbugs.gnu.org id=B67900.170436190820115 (code B ref 67900); Thu, 04 Jan 2024 09:52:02 +0000 Original-Received: (at 67900) by debbugs.gnu.org; 4 Jan 2024 09:51:48 +0000 Original-Received: from localhost ([127.0.0.1]:53590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLKOA-0005EL-AR for submit@debbugs.gnu.org; Thu, 04 Jan 2024 04:51:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLKO5-0005E2-8v for 67900@debbugs.gnu.org; Thu, 04 Jan 2024 04:51:45 -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 1rLKNs-0003Vh-8X; Thu, 04 Jan 2024 04:51:28 -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=9QDHsn6KVFIQV4ATOFFLyK6myqI78MSO93kuFBnu6+A=; b=UKy4IaL7rOye4+XRJz0J rmYjZkqjP3sUSJEzuUB/FbRabWxb2tHZaZ7eiyEuaksVkCbhcjRHXgJQpRRN4sL6efwOn81pAR9/R Pu+cFwtPAjAjsqzubVVaRN3AwetOJLLF7z7yJf4dSrjvQ88+EcB1CggxmIH0exn2N+5miRlz81ksk TFNYWM/b1jjJiFwScZDvEI54IMW1FipHNy36jepiiqmlK36D89fuLQtg2e9XgcHWNSvEUPUNtlQTa gOwALlr+aL3kUYUi/Io+byx1QALTAf6bRnCj2medRxgALmO+qqp7pM7SNyZKVyTB9M0m9X+7+BaQv yPmYfiJ/uohH3Q==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rLKNq-0000sr-6c; Thu, 04 Jan 2024 04:51:27 -0500 In-Reply-To: (Chang Xiaoduan's message of "Tue, 02 Jan 2024 15:24:52 +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:277299 Archived-At: Chang Xiaoduan writes: > Andrea Corallo writes: > >> >> There could be some function generated by macros without the speed >> declaration? Dunno... >> >> Anyway please try the opposite strategy (CU at speed 2 and functions at >> speed 1) to narrow the function and let us know if it's more successful. >> >> Thanks >> >> Andrea > > Hello, > > I just confirmed that when Emacs is built with `native-comp-speed' set > to 2 and only `consult-buffer' has the form `(declare (speed 1))`, I can > still reproduce the crash. Okay then `consult-buffer' is not the misscompiled culprit. > However, when all `defun', `defmacro', > `cl-defun' and `defsubst' get the form `(declare (speed 1))`, then the > crash can not be reproduced. That's in line with the fact that you observed that compiling the whole file at speed 1 does not trigger the bug. > Before I investigate further, I am > wondering that is that only one function responsible to the crash? >From what you observed `consult-buffer' is not the problematic one. > Is it > possible that when 2 or more certain functions get compiled with > `native-comp-speed' set to 2 that the crash can be reproduced? It should not be the case, the only interactions we might observe is between defmacro/defsubst and functions. > If this > is ture, then I think mannually add declare forms to functions is some > how impossible to find the combination of such functions. See previous point, but anyway I think adding declarations only defun is a good start. Thanks Andrea