From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: No Wayman Newsgroups: gmane.emacs.bugs Subject: bug#60768: 30.0.50; edebug-instrument-function off by one Date: Thu, 12 Jan 2023 21:27:06 -0500 Message-ID: <87lem740sy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10433"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.12; emacs 30.0.50 To: 60768@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 13 03:36: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 1pG9vj-0002Q0-IB for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Jan 2023 03:36:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pG9vK-000470-H8; Thu, 12 Jan 2023 21:36:07 -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 1pG9vH-00046p-5a for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2023 21:36:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pG9vG-0001Vy-TV for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2023 21:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pG9vG-0007dk-IL for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2023 21:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: No Wayman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Jan 2023 02:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60768 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167357731629301 (code B ref -1); Fri, 13 Jan 2023 02:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jan 2023 02:35:16 +0000 Original-Received: from localhost ([127.0.0.1]:49022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pG9uW-0007cW-7i for submit@debbugs.gnu.org; Thu, 12 Jan 2023 21:35:16 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:42028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pG9uU-0007cN-LB for submit@debbugs.gnu.org; Thu, 12 Jan 2023 21:35:15 -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 1pG9uU-0003zJ-Fr for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2023 21:35:14 -0500 Original-Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pG9uR-0001Nw-Gm for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2023 21:35:14 -0500 Original-Received: by mail-qt1-x831.google.com with SMTP id z12so18077584qtv.5 for ; Thu, 12 Jan 2023 18:35:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=pS4nZD5UdRcBqNxEbZiS6EwI6MQpoYT1yk0nvcaE9FI=; b=Xbmfai7iVzLxlKYmDLIgRSu9UkOsshzBTRfCTJpfDsti6H/RlHiHKv82eE1PalgFZr v2hk8YeKbwJEg6zCX74xVvNhmFrDgh8Y1NAYv1awwDbZAyZ5/8Miv4WJE/pwhSiWEZ1J JiC7lwFpZD1gew0m+9AMQTonkgUtBptnfKytJaIbYqHlVs3UKl427ErxC7q951s4cytN AU/Uus+IwQX/X2drA2Vmkr+G70k22HCC5O2PGAaWZr8nOar/pZsJh5HuXFs3pKnBKThB K+EIRkqTbivV5DzlpjSV32WKtpR7gMffCcBOAaKNxlRzUD4qzyAB+rR+zUhhuD3nnGAn Iolw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pS4nZD5UdRcBqNxEbZiS6EwI6MQpoYT1yk0nvcaE9FI=; b=qIq0ilVaSTRRdfeg09xdDRC8rIISemR0KRP68qv7owG7l1uC4evja4W+0E+/SdfPmR QmNZ6uGtyLWzv4dctF0TwGNOaIs2NLrkEG0tfnskw44wsPR2yu22impYsaOzPOGNcXgC SWekzOpNTSqd74QAzyFIlCLLIsu/yLPu02t5QXFP4KR1Lu559JJdHvfSZDJ4j0CUNKjg c/XrdQqZkLzoGNQCoU2er2MQVMf9Gjz4nlaiqdrOqurdm9/XKKEGZ2LtK27pKcSxVMgp bvYvGTmCblq6ATjv9L92oGjBQQS6N4FBgSGXhhb1WcVBZK4l2NkryePJBLBtw/PIGVpF KwKA== X-Gm-Message-State: AFqh2krW7Gq2j6IVOQTK9dDfMJe+1AyNI746UMf4vXn8Rrq88T3KxVK2 Be+NMfOmjyO14QlEzAT9b0/TJ+iWof4= X-Google-Smtp-Source: AMrXdXso0tD7Iwm2nAzDflnJ0R3BU4I+NeFy308nakKR+3pLg6NzT3HuExHDC3DUoBe4eV8/Dkc1zA== X-Received: by 2002:ac8:7a8a:0:b0:3a6:9ac7:9d71 with SMTP id x10-20020ac87a8a000000b003a69ac79d71mr18396430qtr.37.1673577309965; Thu, 12 Jan 2023 18:35:09 -0800 (PST) Original-Received: from nbook ([2601:82:c200:166d:7a0:14e6:e26:75bd]) by smtp.gmail.com with ESMTPSA id s14-20020ac8528e000000b003af5a18a4a1sm4679669qtn.90.2023.01.12.18.35.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 18:35:09 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::831; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qt1-x831.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:253259 Archived-At: Reproduction steps: 1. Save the following elisp to /tmp/test.el: --8<---------------cut here---------------start------------->8--- ;; -*- lexical-binding: t; -*- ;;;###autoload (defun one () "ONE" (1+ 0)) (defun two () "TWO" (1+ (one))) (defun three () "THREE" (1+ (two))) (provide 'test) --8<---------------cut here---------------end--------------->8--- 2. Run emacs from the command line with the following: emacs -Q --batch -l /tmp/test.el --eval "(progn (require 'edebug) (edebug-instrument-function #'one))" Expected output: Edebug: one Actual output: Edebug: two If you repeat the test with an additional autoload cookie added above function "two", function one is correctly instrumented. If you repeat it with an autoload cookie only above function "three", function two is, incorrectly, instrumented. My hunch is find-function-search-for-symbol being thrown off somehow. Haven't had time to debug farther yet, though. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-08 built on nbook Repository revision: 5d1e14bd8b9a11ab860937d3ab97248ddeef30b1 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101005 System Description: Arch Linux Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-modules --without-libotf --without-m17n-flt --without-gconf --with-native-compilation=yes --with-xinput2 --with-x-toolkit=gtk3 --without-xaw3d --with-sound=no --with-tree-sitter --without-gpm --without-compress-install '--program-transform-name=s/\([ec]tags\)/\1.emacs/' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection' LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix