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: Fri, 17 Nov 2023 15:48:28 -0500 Message-ID: References: <83sf59u4vy.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="6155"; 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 Fri Nov 17 21:49:34 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 1r45mQ-0001Mw-8S for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Nov 2023 21:49:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r45lv-0003Or-Sd; Fri, 17 Nov 2023 15:49:04 -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 1r45lu-0003Oh-Nb for bug-gnu-emacs@gnu.org; Fri, 17 Nov 2023 15:49:02 -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 1r45lu-0002Xl-Fj for bug-gnu-emacs@gnu.org; Fri, 17 Nov 2023 15:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r45lu-0004iz-Rz for bug-gnu-emacs@gnu.org; Fri, 17 Nov 2023 15:49: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: Fri, 17 Nov 2023 20:49:02 +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.170025411918073 (code B ref 67141); Fri, 17 Nov 2023 20:49:02 +0000 Original-Received: (at 67141) by debbugs.gnu.org; 17 Nov 2023 20:48:39 +0000 Original-Received: from localhost ([127.0.0.1]:47225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r45lW-0004hO-T6 for submit@debbugs.gnu.org; Fri, 17 Nov 2023 15:48:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r45lS-0004gH-Pk for 67141@debbugs.gnu.org; Fri, 17 Nov 2023 15:48:37 -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 1r45lM-0002UN-W2; Fri, 17 Nov 2023 15:48:29 -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=4xuBWoj15S9Ys3gcWDDx2GccSg1ZeIVkqHOkqYmy1wo=; b=Dtg975N9LLVG//ERPR++ 0tWg8dtRGNI/evrm8UOu1GYWZXVZMzPECupPNqvFpUKWQVWOzarXVoziT18JzChUyvzjd5tYWV/rk iiqJYW3fMwPc0Twh3qg+rmu2fTV5fY2IYCctz4LSmKFdBbVdLlhPUVHSiO1MkAdeAoWR92lvbC8Kv qOle/5YgRN1KfPjf/LXwGXZPeYe+yIobP+S9wEQ92oCZcmSkwEZggi8i0ahdNviT7GHNX0tRk+yT5 jygrEVPMo3CE5cOc6EiIUDuMCcAGkVTmRHvFXe+Ab3rQJrOOL5gYcSqBZHLjQnfswBe5LHUIBrB3T WnO8V6ColHUafw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1r45lM-000613-Ou; Fri, 17 Nov 2023 15:48:28 -0500 In-Reply-To: (Stefan Monnier's message of "Fri, 17 Nov 2023 14:01:41 -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:274517 Archived-At: Stefan Monnier writes: >>> mmmh, my crystal ball suggests that some (native compiled) code is >>> calling directly a primitive (eval) without going through funcall, as a >>> consequence no backtrace is recorded. AFAIR that's what happen with >>> byte compiled code with primitves with assigned (byte)op-code as well. >> >> PS and indeed similarly what happen calling a primitive from other C >> code. > > But C code can choose whether it calls `F` directly or goes through > `Ffuncall`, whereas for ELisp code there is no such control. Yes, still already with bytecode only in some case in Elisp code it goes through funcall and in some it doesn't. > It impacts debugging and profiling, in my experience. I see, the outcome for me is that we should offer a way for the user to force the use of funcall. Unfortunatelly ATM if one writes like (funcall 'eval ...) it gets optimized. Maybe even a funcall wrapper written in Elisp would be sufficient? Andrea