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: Tue, 26 Dec 2023 03:32:11 -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="7680"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 67900@debbugs.gnu.org, Chang Xiaoduan To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 26 09:33:19 2023 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 1rI2sJ-0001lU-DX for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Dec 2023 09:33:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rI2ry-0002VC-Ic; Tue, 26 Dec 2023 03:32:58 -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 1rI2rw-0002V0-Cq for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 03:32:56 -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 1rI2rv-0008Tc-Er for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 03:32:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rI2s2-0000P1-Fl for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 03:33: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: Tue, 26 Dec 2023 08:33: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.17035795511505 (code B ref 67900); Tue, 26 Dec 2023 08:33:02 +0000 Original-Received: (at 67900) by debbugs.gnu.org; 26 Dec 2023 08:32:31 +0000 Original-Received: from localhost ([127.0.0.1]:55809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rI2rX-0000OA-7G for submit@debbugs.gnu.org; Tue, 26 Dec 2023 03:32:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rI2rU-0000Nm-Ju for 67900@debbugs.gnu.org; Tue, 26 Dec 2023 03:32:29 -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 1rI2rE-0008Qd-W2; Tue, 26 Dec 2023 03:32:13 -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=UTijiMo7HQ0VTc5+vQznkvxhTrJD1GdWi7NFXJkm+HA=; b=UaBoJjyvWXFscdccu9We +o0PdF45MLhDI18LInUoyRQCv5nrQ4yP+6oEp/zHB59uks3nKYNJGkpF82nmMNPzp8Dmm9RQ2T5E8 WuS8N5U+SyY9b10/n0+uPo6nPJCcgkOM6WUQCPxuTb1X2w1vaBZqGYzpfmoQhuC6U+YPyszlDaUjv vMEwwwr/Q/fhZmuM5fKV7Q4AXgFRmcG5vSqwxgdbrRWpg4kHDNrtZCziTtYoe2MCsasxVTFI07ef2 srY5ZfgZc/pW9bde+vnC3NUuGJonWCPwO4c2fq4Xa1Q/onxDes8kgfgW4rVkWf24w3GAHrBeojtA+ z8tVpvZOsM46xQ==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rI2rD-0003WX-EH; Tue, 26 Dec 2023 03:32:11 -0500 In-Reply-To: <834jg9fk2j.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Dec 2023 09:35:00 +0200") 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:276904 Archived-At: Eli Zaretskii writes: >> From: Chang Xiaoduan >> Cc: acorallo@gnu.org, 67900@debbugs.gnu.org >> Date: Sat, 23 Dec 2023 10:30:14 +0800 >> >> I have added a file-local prop-line to each of bytecomp.el, mule.el and >> startup.el, which sets the `native-comp-speed` to 1. Then I rebuilt >> Emacs and test with a cosnult.el with `native-comp-speed` as 2. Is this >> the correct setup to test? The result: Emacs still crashes when >> executing `consult-buffer`. Yes if consult.el was recompiled in this setup. >> Further more, I have another test with `native-comp-speed` in comp.el >> set to 1. That is, the default optimizaiton level for all >> native-compiled lisp code is 1. Then, I add a file-local prop-line in >> consult.el and set the `native-comp-speed` to 2. The result: Emacs still >> crashes when executing `consult-buffer`. >> >> I guess this is enough to confirm that the miscompiled code is in >> consult.el. > > I think so, yes. Andrea, do you agree? Yes I think so. >> What should I do next? > > If Andrea agrees, I hope he will be able to propose a way of narrowing > this down, tailored specifically to the code in consult.el. I think the next step is to narrow down the miss-compiled function. For that we can tweak speed on function basis like: (defun foo (x y) (declare (speed 1)) (+ x y)) As usual I'd start probing the suspect function `consult-buffer` and if we find is not the coolprint I'd probably bisect all the functions in the compilation unit. Thanks Andrea