From: Teika Kazura <teika@gmx.com>
To: 62317@debbugs.gnu.org
Subject: bug#62317: 28.2; This byte-compiled file behaves wrongly.
Date: Tue, 21 Mar 2023 12:54:08 +0900 (JST) [thread overview]
Message-ID: <20230321.125408.609857763486645873.teika@gmx.com> (raw)
Hi. In the situation below, a byte-compiled init code's evaluation is not completed, but emacs starts as if nothing was wrong.
* How to reproduce:
First, ~/.emacs.d/init.el:
------------------------------------------------------------------------
(eval-and-compile
(push user-emacs-directory load-path)
(require 'a))
;; Hereafter is ignored when byte-compiled.
(defvar foo-var 'baz)
(message "Hello, world.")
(pop-to-buffer "*Messages*")
------------------------------------------------------------------------
~/.emacs.d/a.el:
------------------------------------------------------------------------
(set-buffer "*Messages*") ;; or (set-buffer (get-buffer-create "bar"))
(provide 'a)
------------------------------------------------------------------------
Byte compile these two files *in this order*:
$ cd ~/.emacs.d; emacs -Q -batch -f batch-byte-compile a.el init.el
(you can now remove a.elc; it doesn't matter this bug.)
Finally, run emacs as either of these:
$ emacs -Q -l init.elc
$ emacs --no-splash --no-site-file
* Symptom
As I commented in init.el, the code after `require' is ignored when init.el is byte-compiled. However, emacs starts as if nothing was wrong.
The line of `set-buffer' in a.el seems to trigger this bug. If you delete that line, this bug doesn't occur.
* version and build info:
In short, emacs 28 regression, but I don't know the exact version - My 28.1 was without gcc-jit, and this bug was not there. The 28.2 is built with gcc-jit, and the bug hits me.
Full build info:
------------------------------------------------------------------------
Gentoo Linux
GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0) of 2023-02-02
Configured using:
'configure --prefix=/usr --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --datarootdir=/usr/share
--disable-silent-rules --docdir=/usr/share/doc/emacs-28.2-r4
--htmldir=/usr/share/doc/emacs-28.2-r4/html --libdir=/usr/lib64
--program-suffix=-emacs-28 --includedir=/usr/include/emacs-28
--infodir=/usr/share/info/emacs-28 --localstatedir=/var
--enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp
--without-compress-install --without-hesiod --without-pop
--with-file-notification=inotify --with-pdumper --enable-acl
--without-dbus --with-modules --without-gameuser --with-libgmp
--without-gpm --with-native-compilation --with-json --without-kerberos
--without-kerberos5 --without-lcms2 --with-xml2 --without-mailutils
--without-selinux --with-gnutls --without-libsystemd --with-threads
--with-wide-int --with-sound=no --with-zlib --with-x --without-ns
--without-gconf --with-gsettings --without-toolkit-scroll-bars
--without-gif --without-jpeg --without-png --without-rsvg
--without-tiff --without-xpm --without-imagemagick --with-xft
--with-cairo --with-harfbuzz --with-libotf --with-m17n-flt
--with-x-toolkit=gtk3 --without-xwidgets --with-dumping=pdumper
'CFLAGS=-march=native -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed''
Configured features:
ACL CAIRO FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JSON LIBOTF
LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER SECCOMP
THREADS X11 XDBE XIM GTK3 ZLIB
------------------------------------------------------------------------
Thanks, Emacs developers. Best regards,
Teika
next reply other threads:[~2023-03-21 3:54 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-21 3:54 Teika Kazura [this message]
2023-03-22 6:39 ` bug#62317: bug #62317: 28.2; This byte-compiled file behaves wrongly Teika Kazura
2023-03-28 9:15 ` Teika Kazura
2023-03-28 12:08 ` Eli Zaretskii
2023-03-28 12:43 ` Andrea Corallo
2023-03-28 12:53 ` Eli Zaretskii
2023-03-28 13:49 ` Andrea Corallo
2023-03-30 9:20 ` Teika Kazura
2023-03-30 9:41 ` Eli Zaretskii
2023-04-01 7:36 ` Teika Kazura
2023-04-01 8:08 ` Eli Zaretskii
2023-04-01 16:27 ` bug#62317: " Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-01 17:10 ` Eli Zaretskii
2023-04-01 23:09 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-02 5:17 ` Eli Zaretskii
2023-09-12 0:08 ` Stefan Kangas
2023-09-12 18:12 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-13 14:02 ` Stefan Kangas
2023-09-13 14:45 ` Eli Zaretskii
2023-09-13 15:46 ` Stefan Kangas
2023-04-01 23:15 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-12 0:09 ` Stefan Kangas
2023-04-05 4:12 ` bug#62317: bug #62317: " Teika Kazura
[not found] ` <handler.62317.C.169462003624017.notifdonectrl.0@debbugs.gnu.org>
2023-09-14 6:35 ` bug#62317: acknowledged by developer Teika Kazura
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230321.125408.609857763486645873.teika@gmx.com \
--to=teika@gmx.com \
--cc=62317@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.