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#67141: 30.0.50; Missing element in the backtrace Date: Mon, 20 Nov 2023 13:16:39 -0500 Message-ID: References: <83sf59u4vy.fsf@gnu.org> <834jhgk4hv.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="30886"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 67141@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 20 19:18:21 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 1r58qi-0007l1-Br for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Nov 2023 19:18:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r58qR-0002a7-IE; Mon, 20 Nov 2023 13:18:03 -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 1r58qN-0002Zp-S1 for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2023 13:17: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 1r58qN-0007SM-K4 for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2023 13:17:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r58qP-0001ti-O3 for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2023 13:18: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: Mon, 20 Nov 2023 18:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67141 X-GNU-PR-Package: emacs Original-Received: via spool by 67141-submit@debbugs.gnu.org id=B67141.17005042307234 (code B ref 67141); Mon, 20 Nov 2023 18:18:01 +0000 Original-Received: (at 67141) by debbugs.gnu.org; 20 Nov 2023 18:17:10 +0000 Original-Received: from localhost ([127.0.0.1]:54513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r58pa-0001sc-0Y for submit@debbugs.gnu.org; Mon, 20 Nov 2023 13:17:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r58pX-0001sP-D7 for 67141@debbugs.gnu.org; Mon, 20 Nov 2023 13:17:08 -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 1r58pK-0007NZ-6e; Mon, 20 Nov 2023 13:16:59 -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=3PxBbKWSTz2pWB05Uz4Knimf8Ag5tVFieZATy8QHmm0=; b=pAqZxrkrrDn5ijc0ZqZL UJIsONraRhhq2j8D7OAfl8FStYRzK70q+4KtMsQH1gte5Airh+CdnaW6h7xgflD5X789T+/R4aN0L Nwrscf5AAkqUZGayfentiCp471lTXfo7g3hdphJgJXeuQOvkQjRUMtycvUEe616HLP7yqgTdgF0pG 7SRg4FojnerAWAuSpgEs5X6mGvcMpuuVUILCi8Scn+kxS8TEjJh5X5AH/X6e7E88lzU+zonvyY5E+ UJ6ERpPezl6V3oPXfucqSCxCugLMYbF1o2M4jPHHRWM16fa5/ln983tyaYA7BkSAYiUnjyvtLOfwB nWR46W8s/d+Kxg==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1r58p5-00049d-D0; Mon, 20 Nov 2023 13:16:42 -0500 In-Reply-To: (Stefan Monnier's message of "Mon, 20 Nov 2023 12:52:27 -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:274679 Archived-At: Stefan Monnier writes: >> If you want then I think we should consider this bug not only native >> comp related, as I explained we have this issue since long time in >> other circumstances. > > I think it's qualitatively different, but yes, this is not the only > occurrence of the problem. AFAICT, we have 3 different cases: > > A. Native compiled code making a "direct call" to a C primitive. > B. ELisp primitives with their own bytecode. > C. C code calling `Ffoo` instead of `Ffuncall (Qfoo, ...)`. > > (B) and (C) have been with us for ever. They also suffer from being > unaffected by advice. (A) on the other hand is new, but obeys advice. > > I think (C) is qualitatively very different from (A) because > (C) can be fixed by hand whenever we decide that it's a problem, Well ATM we can fix A by hand as well with a (declare (speed 0)) in the calling function. Admittedly would be nice to have a more narrowed way to handle this at call site. I'd e in favor of adding it. Do you think this would be sufficient? Andrea