From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hugh Daschbach Newsgroups: gmane.emacs.bugs Subject: bug#75135: 30.0.93; Infinite loop in comp--native-compile Date: Thu, 26 Dec 2024 16:15:25 -0800 Message-ID: <87msgiasma.fsf@klaatu.mail-host-address-is-not-set> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="930"; mail-complaints-to="usenet@ciao.gmane.io" To: 75135@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 27 07:13:24 2024 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 1tR3bA-00005G-E4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Dec 2024 07:13:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tR3ar-0001sq-AD; Fri, 27 Dec 2024 01:13:05 -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 1tR3aq-0001sg-Cb for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 01:13:04 -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 1tR3aq-0007xS-49 for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 01:13:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=S/i8ON47JBx+SdEPSzjFhSM/i7yuuEdOdBD3E57YaAo=; b=dfiloYyy2iwyXedUw5832S5HB+dEJyMv/HbIeXFhAIEsnZtkSAV+UXS4PZw8SXQnnHlEJCBkMyG0nDgPE/Sd3AHcQnNEmCxJy7z7slNZRRkVQR0QRhq/l7GnT+a5p86i2xt3qSu5U1WBJOO+3q4u0ztlpldxpObObwtnZM8fDOoaY94u/t8hjr8YlRfCtfWtdlmtf3fUf2rEQEPjkT3i5v9B2ICKbUVaIm2jYNScnqJmyyudS9RmGvOWgiQUVem4+PBE5IGspT4qjwrALzllVuX3z2zc/AYMVui38xs8XnkG8Dw8V4aGb0xAgcCQCayo7BMolz3A4LW0gvJo9asmsA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tR3ap-0004yG-Tr for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 01:13:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Hugh Daschbach Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Dec 2024 06:13:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75135 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.173527993819006 (code B ref -1); Fri, 27 Dec 2024 06:13:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Dec 2024 06:12:18 +0000 Original-Received: from localhost ([127.0.0.1]:44432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tR3a2-0004wH-Td for submit@debbugs.gnu.org; Fri, 27 Dec 2024 01:12:18 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQy1G-0003U7-VJ for submit@debbugs.gnu.org; Thu, 26 Dec 2024 19:16:02 -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 1tQy1G-0000oU-OO for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 19:15:58 -0500 Original-Received: from vps1.ccss.com ([192.241.205.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQy1D-0006M6-UV for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 19:15:58 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by vps1.ccss.com (Postfix) with ESMTP id B5383200D1 for ; Thu, 26 Dec 2024 16:15:50 -0800 (PST) Original-Received: from vps1.ccss.com ([127.0.0.1]) by localhost (vps1.ccss.com [127.0.0.1]) (amavis, port 10024) with ESMTP id 1GM23UABbFac for ; Thu, 26 Dec 2024 16:15:48 -0800 (PST) Authentication-Results: vps1.ccss.com; dmarc=none (p=none dis=none) header.from=ccss.com Original-Received: from ccss.com (ccss.ccss.com [192.168.42.2]) by vps1.ccss.com (Postfix) with ESMTPS id 0845E200D0 for ; Thu, 26 Dec 2024 16:15:48 -0800 (PST) Original-Received: from klaatu (klaatu.lan [192.168.42.3]) by ccss.com (Postfix) with ESMTPS id D28CE3C00A2 for ; Thu, 26 Dec 2024 16:15:47 -0800 (PST) Received-SPF: pass client-ip=192.241.205.204; envelope-from=hdasch@ccss.com; helo=vps1.ccss.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 27 Dec 2024 01:12:12 -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:297802 Archived-At: Emacs hangs when attempting to compile tests from obsolete ELPA package seq. To reproduce: ``` curl -o /tmp/seq-tests.el https://git.savannah.gnu.org/cgit/emacs/elpa.git= /plain/tests/seq-tests.el?h=3Dexternals/seq $ emacs -Q --eval "(progn (setq debug-on-quit t) (require 'comp) (comp--nat= ive-compile \"/tmp/seq-tests.el\" nil))" ``` Press C-g shortly after the Emacs frame opens. This produces the following backtrace: ``` Debugger entered--Lisp error: (quit) #f(compiled-function (x) #)(1) cl--nsublis-rec((1 . #1)) cl--nsublis-rec((#s(comp-mvar :typeset (t) :valset nil :range nil :neg ni= l :id 34397705172435 :slot 0) (1 . #3))) cl--nsublis-rec(((#s(comp-mvar :typeset (t) :valset nil :range nil :neg n= il :id 34397705172435 :slot 0) (1 . #4)))) cl-nsublis(((nil . #s(comp-mvar :typeset (t) :valset nil :range nil :neg = nil :id 34397705043564 :slot 1))) (#s(comp-mvar :typeset (t) :valset nil :r= ange nil :neg nil :id 34397705172435 :slot 0) (1 . #4)) :if #f(compiled-fun= ction (x) #)) cl-nsubst-if(#s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :i= d 34397705043564 :slot 1) #f(compiled-function (x) #) (#s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id 343= 97705172435 :slot 0) (1 . #5))) comp--ssa-rename-insn((setimm #s(comp-mvar :typeset (t) :valset nil :rang= e nil :neg nil :id 34397705172435 :slot 0) (1 . #4)) #s(comp-vec :data # :beg 0 :end 5)) #f(compiled-function (bb in-frame) #)(#s(com= p-block-lap :name bb_0 :insns ((setimm #s(comp-mvar :typeset (t) :valset ni= l :range nil :neg nil :id 34397705172435 :slot 0) (1 . #6)) (call specbind = #s(comp-mvar :typeset nil :valset (l1) :range nil :neg nil :id nil :slot ni= l) #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot = 0)) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id n= il :slot 0) equal) (call specbind #s(comp-mvar :typeset nil :valset (fn-171= 6) :range nil :neg nil :id nil :slot nil) #s(comp-mvar :typeset (t) :valset= nil :range nil :neg nil :id nil :slot 0)) (setimm #s(comp-mvar :typeset (t= ) :valset nil :range nil :neg nil :id nil :slot 0) (error)) (push-handler c= ondition-case #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id= nil :slot 0) bb_3 bb_1)) :closed t :in-edges (#s(comp-edge :src #s(comp-bl= ock-lap :name entry :insns ((comment "Lisp function: nil") (jump bb_0)) :cl= osed nil :in-edges nil :out-edges (#3) :idom #4 :df # :post-num 7 :final-frame #s(comp-vec :data # :beg 0 :end 5) :sp -1 :addr nil :non-ret-insn ni= l :no-ret nil) :dst #1 :number 0)) :out-edges (#s(comp-edge :src #1 :dst #s= (comp-block-lap :name bb_1 :insns ((setimm #s(comp-mvar :typeset ... :valse= t nil :range nil :neg nil :id nil :slot 0) seq-mapn) (setimm #s(comp-mvar := typeset ... :valset nil :range nil :neg nil :id nil :slot 1) +) (setimm #s(= comp-mvar :typeset ... :valset nil :range nil :neg nil :id nil :slot 2) (3 = 4 5 7)) (set #s(comp-mvar :typeset ... :valset nil :range nil :neg nil :id = nil :slot 3) (call symbol-value ...)) (set #s(comp-mvar :typeset ... :valse= t nil :range nil :neg nil :id nil :slot 0) (callref funcall ... ... ... ...= )) (setimm #s(comp-mvar :typeset ... :valset nil :range nil :neg nil :id ni= l :slot 1) (4 5 6 8)) (set #s(comp-mvar :typeset ... :valset nil :range nil= :neg nil :id nil :slot 1) (call cons ... ...)) (set #s(comp-mvar :typeset = ... :valset nil :range nil :neg nil :id nil :slot 0) (call cons ... ...)) (= pop-handler) (jump bb_4)) :closed t :in-edges (#3) :out-edges (#s(comp-edge= :src #4 :dst #s(comp-block-lap :name bb_4 :insns ... :closed t :in-edges .= .. :out-edges ... :idom #1 :df # :po= st-num 2 :final-frame nil :sp 0 :addr 25 :non-ret-insn nil :no-ret nil) :nu= mber 8)) :idom #1 :df # :post-num 3 = :final-frame nil :sp -1 :addr 6 :non-ret-insn nil :no-ret nil) :number 2) #= s(comp-edge :src #1 :dst #s(comp-block-lap :name bb_3 :insns ((fetch-handle= r #s(comp-mvar :typeset ... :valset nil :range nil :neg nil :id nil :slot 0= )) (jump bb_2)) :closed t :in-edges (#4) :out-edges (#s(comp-edge :src #5 := dst #s(comp-block-lap :name bb_2 :insns ... :closed nil :in-edges ... :out-= edges ... :idom #5 :df # :post-num 4= :final-frame nil :sp 0 :addr 15 :non-ret-insn nil :no-ret nil) :number 3))= :idom #1 :df # :post-num 5 :final-f= rame nil :sp -1 :addr nil :non-ret-insn nil :no-ret nil) :number 1)) :idom = #s(comp-block-lap :name entry :insns ((comment "Lisp function: nil") (jump = bb_0)) :closed nil :in-edges nil :out-edges (#s(comp-edge :src #2 :dst #1 := number 0)) :idom #2 :df # :post-num = 7 :final-frame #s(comp-vec :data # := beg 0 :end 5) :sp -1 :addr nil :non-ret-insn nil :no-ret nil) :df # :post-num 6 :final-frame nil :sp -1 :addr 0= :non-ret-insn nil :no-ret nil) #s(comp-vec :data # :beg 0 :end 5)) #f(compiled-function (bb in-frame) #)(#s(com= p-block-lap :name entry :insns ((comment "Lisp function: nil") (jump bb_0))= :closed nil :in-edges nil :out-edges (#s(comp-edge :src #1 :dst #s(comp-bl= ock-lap :name bb_0 :insns ((setimm #s(comp-mvar :typeset ... :valset nil :r= ange nil :neg nil :id 34397705172435 :slot 0) (1 . #9)) (call specbind #s(c= omp-mvar :typeset nil :valset ... :range nil :neg nil :id nil :slot nil) #s= (comp-mvar :typeset ... :valset nil :range nil :neg nil :id nil :slot 0)) (= setimm #s(comp-mvar :typeset ... :valset nil :range nil :neg nil :id nil :s= lot 0) equal) (call specbind #s(comp-mvar :typeset nil :valset ... :range n= il :neg nil :id nil :slot nil) #s(comp-mvar :typeset ... :valset nil :range= nil :neg nil :id nil :slot 0)) (setimm #s(comp-mvar :typeset ... :valset n= il :range nil :neg nil :id nil :slot 0) (error)) (push-handler condition-ca= se #s(comp-mvar :typeset ... :valset nil :range nil :neg nil :id nil :slot = 0) bb_3 bb_1)) :closed t :in-edges (#3) :out-edges (#s(comp-edge :src #4 :d= st #s(comp-block-lap :name bb_1 :insns ... :closed t :in-edges ... :out-edg= es ... :idom #4 :df # :post-num 3 :f= inal-frame nil :sp -1 :addr 6 :non-ret-insn nil :no-ret nil) :number 2) #s(= comp-edge :src #4 :dst #s(comp-block-lap :name bb_3 :insns ... :closed t :i= n-edges ... :out-edges ... :idom #4 :df # :post-num 5 :final-frame nil :sp -1 :addr nil :non-ret-insn nil :no-r= et nil) :number 1)) :idom #1 :df # := post-num 6 :final-frame nil :sp -1 :addr 0 :non-ret-insn nil :no-ret nil) := number 0)) :idom #1 :df # :post-num = 7 :final-frame #s(comp-vec :data # := beg 0 :end 5) :sp -1 :addr nil :non-ret-insn nil :no-ret nil) #s(comp-vec := data # :beg 0 :end 5)) comp--ssa-rename() #("F616e6f6e= 796d6f75732d6c616d626461_anonymous_lambda_399" #s(comp-func-d :name nil :c-= name "F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_399" :byte-func #f= (compiled-function () #) :doc nil :int-spec ni= l :command-modes nil :lap ((byte-constant (1 . #6) . 6) (byte-varbind l1 . = 0) (byte-constant equal . 7) (byte-varbind fn-1716 . 1) (byte-constant (err= or) . 8) (byte-pushconditioncase TAG 19 . 1) (byte-constant seq-mapn . 9) (= byte-constant + . 10) (byte-constant (3 4 5 7) . 11) (byte-varref l1 . 0) (= byte-call . 3) (byte-constant (4 5 6 8) . 12) (byte-list2 . 0) (byte-pophan= dler) (byte-goto TAG 28 . 1) (TAG 19 . 1) (byte-varbind err . 2) (byte-cons= tant signal . 13) (byte-varset fn-1716 . 1) (byte-varref err . 2) (byte-car= . 0) (byte-varref err . 2) (byte-cdr . 0) (byte-unbind . 1) (byte-list2 . = 0) (TAG 28 . 1) (byte-varbind args-1717 . 3) (byte-constant ert-form-evalua= tion-aborted-1719 . 14) (byte-varbind value-1718 . 4) (byte-constant nil . = 15) (byte-varbind form-description-1720 . 5) (byte-constant #f(compiled-fun= ction () #) . 16) (byte-unwind-protect . 0) (by= te-constant apply . 17) (byte-varref fn-1716 . 1) (byte-varref args-1717 . = 3) (byte-call . 2) (byte-dup . 0) (byte-varset value-1718 . 4) (byte-unbind= . 1) (byte-goto-if-not-nil TAG 49 . 0) (byte-constant ert-fail . 18) (byte= -varref form-description-1720 . 5) (byte-call . 1) (byte-discard) (TAG 49 .= 0) (byte-unbind . 1) (byte-varref value-1718 . 4) (byte-unbind . 4) (byte-= constant nil . 15) ...) :ssa-status nil :frame-size 5 :vframe-size 0 :block= s # :lap-block # :edges-h # :b= lock-cnt-gen #f(compiled-function () #) :edge-cn= t-gen #f(compiled-function () #) :has-non-local = t :speed 2 :safety 1 :pure nil :declared-type nil :type #s(comp-mvar :types= et nil :valset (nil) :range nil :neg nil :id nil :slot nil) :lambda-list ni= l)) comp--ssa() comp--fwprop(nil) comp--native-compile("/tmp/seq-tests.el" nil) (progn (setq debug-on-quit t) (require 'comp) (comp--native-compile "/tmp= /seq-tests.el" nil)) eval((progn (setq debug-on-quit t) (require 'comp) (comp--native-compile = "/tmp/seq-tests.el" nil)) t) command-line-1(("--eval" "(progn (setq debug-on-quit t) (require 'comp) (= comp--native-compile \"/tmp/seq-tests.el\" nil))")) command-line() normal-top-level() ``` Admittedly, trying to compile an obsolete ELPA package is not a good idea. In fact, it was a configuration bug. But it might be interesting to see why the compiler hangs. Thanks, Hugh -- In GNU Emacs 30.0.93 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.2, Xaw3d scroll bars) of 2024-12-24 built on klaatu Repository revision: 8064b2a67988e815c52e289fe2a235ce1008776f Repository branch: emacs-30 Windowing system distributor 'The X.Org Foundation', version 11.0.12401004 System Description: Arch Linux Configured using: 'configure --with-x-toolkit=3Dlucid --with-native-compilation --prefix=3D/home/hugh/.local' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr comp-run emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils thingatpt help-fns radix-tree cl-print time-date pcase cl-macs ert map byte-opt pp ewoc debug backtrace find-func compile text-property-search comint ansi-osc ansi-color ring comp cl-seq comp-cstr cl-extra help-mode comp-common warnings icons subr-x rx gv cl-loaddefs cl-lib bytecomp byte-compile rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty move-toolbar make-network-process native-compile emacs) Memory information: nil