From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58601: 29.0.50; Infinite loop in byte-compile--first-symbol-with-pos Date: Tue, 18 Oct 2022 15:19:35 -0400 Message-ID: References: <8735bm6nl9.fsf@tcd.ie> <87pmepw0ov.fsf@tcd.ie> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36598"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: "Basil L. Contovounesios" , Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 58601@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 18 21:20:35 2022 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 1oks8h-0009GU-3c for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Oct 2022 21:20:35 +0200 Original-Received: from localhost ([::1]:56174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oks8f-0005fl-6t for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Oct 2022 15:20:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oks8B-0005eL-Pq for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2022 15:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oks8B-0002pN-Et for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2022 15:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oks8B-0001rh-1u for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2022 15:20:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Oct 2022 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58601 X-GNU-PR-Package: emacs Original-Received: via spool by 58601-submit@debbugs.gnu.org id=B58601.16661207977145 (code B ref 58601); Tue, 18 Oct 2022 19:20:02 +0000 Original-Received: (at 58601) by debbugs.gnu.org; 18 Oct 2022 19:19:57 +0000 Original-Received: from localhost ([127.0.0.1]:54149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oks7z-0001r4-9d for submit@debbugs.gnu.org; Tue, 18 Oct 2022 15:19:57 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:49434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oks7t-0001qn-Sy for 58601@debbugs.gnu.org; Tue, 18 Oct 2022 15:19:49 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 51FC44428BA; Tue, 18 Oct 2022 15:19:38 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 82A3E4428B9; Tue, 18 Oct 2022 15:19:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1666120776; bh=v5lB3tjl7UEhT/PgDBmcmfcZy0VzOOaXnQ0WUpK61Dw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=FW6JNojfpBy4F0z3GM8XwWFlpjSMwyZSyCxqIOQYkWGQHbkjUYGy6mLIU4P1B9RcQ kHCIoNzMBNiox2K6zE7/NqLD87oztlwv6Rqn/IheMjdJnqxbpNB8LwckSt1NfMrj8q 7Q4Kb4iVv1zGBhdR1cRhMOKeWfStJ/vO9Np3zI367p45LTUzGsFuf3fG95RmmIFtbJ bdcWEv0Nw4eu4h4OGAvKDK/XSxU2Jw5gq8g4TcbUPYZKePP99D3u8lFu+aOhKUq6X+ VHqKet7OvcWc9jwsRqjvsDZTzzWXGfD2n06Z4xV46dMGSc+1Kzv6ATyy4RFM8Z6BI/ ok5xG84RUr8Fw== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6F39E12098D; Tue, 18 Oct 2022 15:19:36 -0400 (EDT) In-Reply-To: (Alan Mackenzie's message of "Tue, 18 Oct 2022 17:06:59 +0000") 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" Xref: news.gmane.io gmane.emacs.bugs:245828 Archived-At: >> That's not the problem, because it's just for illustrative purposes. >> Instead of 'arg' being passed unchanged as the FORM argument, it could >> just as well have been `(my-frobnicate ,arg). > > That would not loop, since there is a symbol with position there. BTE, the real-world use case is a compiler macro which takes the list of args and tucks the name of another function in front. So the generated code, passed to `macroexp-warn-and-return` has the shape (somefun somearg1 somearg2) where `somefun` does *not* come from the source but from the compiler-macro instead and hence doesn't have any sympos, and then `somearg1` was an expression of the form (quote #1=(1 2 3 . #1#)) So, there was no cycle in the code part, the cycle is only inside the data embedded in the code. Stefan