From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ruijie Yu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63742: 30.0.50; [BUG] package.el having a hard time Date: Sun, 28 May 2023 12:53:53 +0800 Message-ID: References: <83bki6jn44.fsf@gnu.org> Reply-To: Ruijie Yu Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1059"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.22; emacs 30.0.50 Cc: Eli Zaretskii , 63742@debbugs.gnu.org, Andrea Corallo To: Ruijie Yu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 28 07:04: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 1q38Zo-000Acm-Cs for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 May 2023 07:04:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q38ZR-0004wo-Nk; Sun, 28 May 2023 01:03:57 -0400 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 1q38Wc-0004c6-Ij for bug-gnu-emacs@gnu.org; Sun, 28 May 2023 01:01:04 -0400 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 1q38Wc-0005Po-6k for bug-gnu-emacs@gnu.org; Sun, 28 May 2023 01:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q38Wc-00083y-1z for bug-gnu-emacs@gnu.org; Sun, 28 May 2023 01:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ruijie Yu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 May 2023 05:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63742 X-GNU-PR-Package: emacs Original-Received: via spool by 63742-submit@debbugs.gnu.org id=B63742.168525001130920 (code B ref 63742); Sun, 28 May 2023 05:01:02 +0000 Original-Received: (at 63742) by debbugs.gnu.org; 28 May 2023 05:00:11 +0000 Original-Received: from localhost ([127.0.0.1]:52929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q38Vm-00082d-Ip for submit@debbugs.gnu.org; Sun, 28 May 2023 01:00:10 -0400 Original-Received: from netyu.xyz ([152.44.41.246]:53360 helo=mail.netyu.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q38Vi-00081K-CV for 63742@debbugs.gnu.org; Sun, 28 May 2023 01:00:09 -0400 Original-Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id c05e4901 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 28 May 2023 05:00:05 +0000 (UTC) In-reply-to: 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:262504 Archived-At: --=-=-= Content-Type: text/plain >> Does the problem go away if you rebuild without native-compilation? >> If yes, this is a known problem (bug#63679), and Andrea (CC'ed) is >> aware of that, I think. > > Indeed, this problem goes away if I rebuild without native-compilation. > To minimize changes, I used the same commit (bb7605c), and used the same > config options except for native comp. > > '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 > --enable-link-time-optimization --with-native-compilation=no > --with-xinput2 --with-pgtk --without-xaw3d --with-sound=alsa > --with-tree-sitter '--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' > > By the way, do we have a bisect for this, where we know what revision(s) > introduced this issue? If not, (and if I have time during the weekend,) > I can try to bisect it. And in the meantime, I'll sit on all my > known-good builds until this issue is fixed. > > Some data points: > > - known good version (the build I'm using to send this message): > "fa598571adab4858282f337b45984517e197f8a9" > > - known bad version (the build where I observed the reported issues): > "bb7605c087006b714236165f88341545355d3673" Here is the bisect result. --8<---------------cut here---------------start------------->8--- b2b2be98da5825e6bc130999ffe38f5ed615586a is the first bad commit commit b2b2be98da5825e6bc130999ffe38f5ed615586a Author: Andrea Corallo Date: Wed May 24 17:05:26 2023 +0200 Fix nativecomp ICE compiling structure related code (bug#63674) * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Define the predicate to be effective at compile time as native comp relies on `cl-typep' that relies o predicates to work. * test/src/comp-resources/comp-test-funcs.el (cl-lib): Require. (comp-test-struct): Define struct. (comp-test-63674-1-f): Add new test. lisp/emacs-lisp/cl-macs.el | 9 ++++++--- test/src/comp-resources/comp-test-funcs.el | 8 ++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) bisect found first bad commit --8<---------------cut here---------------end--------------->8--- What I did: $ git bisect start bb7605c087006b714236165f88341545355d3673 fa598571adab4858282f337b45984517e197f8a9 $ git bisect run sh repro.sh With the attached files as reproducer. Hope this helps. Oh, by the way, while inspecting my reproducer scripts I noticed that I forgot to add -Q -- I really hope this does not bite me since git-bisect-run took a few hours to finish. --=-=-= Content-Type: application/x-sh Content-Disposition: attachment; filename=make.sh Content-Transfer-Encoding: base64 IyEvYmluL3NoCm1ha2UgZXh0cmFjbGVhbgptYWtlIFwKICAgIGNvbmZpZ3VyZT0nLS1wcmVmaXg9 L3VzciAtLXN5c2NvbmZkaXI9L2V0YyAtLWxpYmV4ZWNkaXI9L3Vzci9saWIgLS1sb2NhbHN0YXRl ZGlyPS92YXIgLS1tYW5kaXI9L3Vzci9zaGFyZS9tYW4gLS13aXRoLWdhbWV1c2VyPTpnYW1lcyAt LXdpdGgtbW9kdWxlcyAtLXdpdGhvdXQtbGlib3RmIC0td2l0aG91dC1tMTduLWZsdCAtLXdpdGhv dXQtZ2NvbmYgLS1lbmFibGUtbGluay10aW1lLW9wdGltaXphdGlvbiAtLXdpdGgtbmF0aXZlLWNv bXBpbGF0aW9uPWFvdCAtLXdpdGgteGlucHV0MiAtLXdpdGgtcGd0ayAtLXdpdGhvdXQteGF3M2Qg LS13aXRoLXNvdW5kPWFsc2EgLS13aXRoLXRyZWUtc2l0dGVyIC0tcHJvZ3JhbS10cmFuc2Zvcm0t bmFtZT1zL1woW2VjXXRhZ3NcKS9cMS5lbWFjcy8nIFwKICAgIENGTEFHUz0nLW1hcmNoPXg4Ni02 NCAtbXR1bmU9Z2VuZXJpYyAtTzIgLXBpcGUgLWZuby1wbHQgLWZleGNlcHRpb25zIC1XcCwtRF9G T1JUSUZZX1NPVVJDRT0yIC1XZm9ybWF0IC1XZXJyb3I9Zm9ybWF0LXNlY3VyaXR5IC1mc3RhY2st Y2xhc2gtcHJvdGVjdGlvbiAtZmNmLXByb3RlY3Rpb24nIFwKICAgIExERkxBR1M9Jy1XbCwtTzEs LS1zb3J0LWNvbW1vbiwtLWFzLW5lZWRlZCwteixyZWxybywteixub3cnIHx8IGV4aXQgMTI1Cg== --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=repro.el ;; -*- lexical-binding: t; -*- (package-initialize) (package-install 'xr) --=-=-= Content-Type: application/x-sh Content-Disposition: attachment; filename=repro.sh Content-Transfer-Encoding: base64 IyEvYmluL3NoCnNoIG1ha2Uuc2gKc2ggcnVuLnNoCg== --=-=-= Content-Type: application/x-sh Content-Disposition: attachment; filename=run.sh Content-Transfer-Encoding: base64 IyEvYmluL3NoCnJtIC1yZiBlCm1rZGlyIC1wIGUvYwpIT01FPSIkKHJlYWxwYXRoIGUpIiBYREdf Q09ORklHX0hPTUU9IiQocmVhbHBhdGggZS9jKSIgXAogICAgc3JjL2VtYWNzIFwKICAgIC1iYXRj aCAtbCByZXByby5lbCB8fCBleGl0IDEK --=-=-= Content-Type: text/plain -- Best, RY --=-=-=--