From: Arash Esbati <arash@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: larsi@gnus.org, 53497@debbugs.gnu.org, akrl@sdf.org
Subject: bug#53497: 29.0.50; native-compile after restarting Emacs
Date: Wed, 26 Jan 2022 20:06:50 +0100 [thread overview]
Message-ID: <86czkeqpth.fsf@gnu.org> (raw)
In-Reply-To: <83wnimfneg.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 26 Jan 2022 18:54:31 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
> Strange, it sounds like GDB cannot access macros,which -g3 should
> allow.
This is Windows after all ;-)
> And it stays nil afterwards?
No, it doesn't (see below)
> Or does it grow to include all the files you expect to be
> natively-compiled as part of the session? Is
> maybe_defer_native_compilation called more than just once? If so,
> what is the value of Vcomp__delayed_sources for those other calls?
maybe_defer_native_compilation is called more than once. This is the
result of multiple runs. What remains is that the part to
"native--compile-async" is never called.
Below, [...] is always the repetition between
if (!load_gccjit_if_necessary (false))
and
if (comp__loadable)
which I've deleted.
--8<---------------cut here---------------start------------->8---
-> gdb ./emacs
GNU gdb (GDB) 11.1
[snipped]
(gdb) break maybe_defer_native_compilation
Breakpoint 1 at 0x400241af0: file comp.c, line 5104.
(gdb) source .gdbinit
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
Environment variable "DISPLAY" not defined.
TERM = xterm-256color
Breakpoint 2 at 0x4001174a4: file emacs.c, line 406.
(gdb) run -Q
Starting program: Z:\path\to\emacs\src\emacs.exe -Q
[New Thread 8928.0x5f50]
[New Thread 8928.0xf60]
[New Thread 8928.0x5a44]
[New Thread 8928.0x4008]
[New Thread 8928.0x15bc]
Thread 1 hit Breakpoint 1, maybe_defer_native_compilation (function_name=XIL(0xffff82ed63e350a0), definition=XIL(0x2e480e76535)) at comp.c:5104
5104 if (!load_gccjit_if_necessary (false))
(gdb) n
5107 if (!native_comp_deferred_compilation
(gdb) n
5108 || noninteractive
(gdb) n
5109 || !NILP (Vpurify_flag)
(gdb) n
5110 || !COMPILEDP (definition)
(gdb) n
5111 || !STRINGP (Vload_true_file_name)
(gdb) n
5112 || !suffix_p (Vload_true_file_name, ".elc")
(gdb) n
5113 || !NILP (Fgethash (Vload_true_file_name, V_comp_no_native_file_h, Qnil)))
(gdb) n
5117 concat2 (CALL1I (file-name-sans-extension, Vload_true_file_name),
(gdb) n
5119 if (NILP (Ffile_exists_p (src)))
(gdb) n
5128 if (comp__loadable)
(gdb) n
5137 Vcomp__delayed_sources = Fcons (src, Vcomp__delayed_sources);
(gdb) pp globals.f_Vcomp__delayed_sources
[New Thread 8928.0x52dc]
nil
[New Thread 8928.0x3934]
(gdb) n
5138 }
(gdb) n
Fdefalias (symbol=XIL(0xffff82ed63e350a0), definition=XIL(0x2e480e76535), docstring=XIL(0)) at data.c:911
911 if (!NILP (docstring))
(gdb) c
Continuing.
Thread 1 hit Breakpoint 1, maybe_defer_native_compilation (function_name=XIL(0xffff82ed64253b58), definition=XIL(0x2e480e7fd85)) at comp.c:5104
5104 if (!load_gccjit_if_necessary (false))
[...]
5128 if (comp__loadable)
(gdb) n
5137 Vcomp__delayed_sources = Fcons (src, Vcomp__delayed_sources);
(gdb) pp globals.f_Vcomp__delayed_sources
("z:/path/to/emacs/lisp/international/latexenc.el")
(gdb) c
Continuing.
Thread 1 hit Breakpoint 1, maybe_defer_native_compilation (function_name=XIL(0xffff82ed63e6af00), definition=XIL(0x2e480e82325)) at comp.c:5104
5104 if (!load_gccjit_if_necessary (false))
[...]
5128 if (comp__loadable)
(gdb) n
5137 Vcomp__delayed_sources = Fcons (src, Vcomp__delayed_sources);
(gdb) pp globals.f_Vcomp__delayed_sources
("z:/path/to/emacs/lisp/international/latexenc.el" "z:/path/to/emacs/lisp/international/latexenc.el")
(gdb) c
Continuing.
Thread 1 hit Breakpoint 1, maybe_defer_native_compilation (function_name=XIL(0xffff82ed64238900), definition=XIL(0x2e48103dd85)) at comp.c:5104
5104 if (!load_gccjit_if_necessary (false))
[...]
5128 if (comp__loadable)
(gdb) n
5137 Vcomp__delayed_sources = Fcons (src, Vcomp__delayed_sources);
(gdb) pp globals.f_Vcomp__delayed_sources
("z:/path/to/emacs/lisp/international/latexenc.el" "z:/path/to/emacs/lisp/international/latexenc.el" "z:/path/to/emacs/lisp/international/latexenc.el")
(gdb) c
Continuing.
Thread 1 hit Breakpoint 1, maybe_defer_native_compilation (function_name=XIL(0xffff82ed63dd9318), definition=XIL(0x2e480f0ae75)) at comp.c:5104
5104 if (!load_gccjit_if_necessary (false))
[...]
5128 if (comp__loadable)
(gdb) n
5137 Vcomp__delayed_sources = Fcons (src, Vcomp__delayed_sources);
(gdb) pp globals.f_Vcomp__delayed_sources
("z:/path/to/emacs/lisp/emacs-lisp/ring.el" "z:/path/to/emacs/lisp/international/latexenc.el" "z:/path/to/emacs/lisp/international/latexenc.el" "z:/path/to/emacs/lisp/international/latexenc.el")
(gdb) c
Continuing.
Thread 1 hit Breakpoint 1, maybe_defer_native_compilation (function_name=XIL(0xffff82ed65497a20), definition=XIL(0x2e480fb9045)) at comp.c:5104
5104 if (!load_gccjit_if_necessary (false))
[...]
5128 if (comp__loadable)
(gdb) n
5137 Vcomp__delayed_sources = Fcons (src, Vcomp__delayed_sources);
(gdb) pp globals.f_Vcomp__delayed_sources
("z:/path/to/emacs/lisp/emacs-lisp/ring.el" "z:/path/to/emacs/lisp/emacs-lisp/ring.el" "z:/path/to/emacs/lisp/international/latexenc.el" "z:/path/to/emacs/lisp/international/latexenc.el" "z:/path/to/emacs/lisp/international/latexenc.el")
(gdb) c
Continuing.
Thread 1 hit Breakpoint 1, maybe_defer_native_compilation (function_name=XIL(0xffff82ed65497a80), definition=XIL(0x2e481019dd5)) at comp.c:5104
5104 if (!load_gccjit_if_necessary (false))
[...]
5128 if (comp__loadable)
(gdb) n
5137 Vcomp__delayed_sources = Fcons (src, Vcomp__delayed_sources);
(gdb) pp globals.f_Vcomp__delayed_sources
("z:/path/to/emacs/lisp/emacs-lisp/ring.el" "z:/path/to/emacs/lisp/emacs-lisp/ring.el" "z:/path/to/emacs/lisp/emacs-lisp/ring.el" "z:/path/to/emacs/lisp/international/latexenc.el" "z:/path/to/emacs/lisp/international/latexenc.el" "z:/path/to/emacs/lisp/international/latexenc.el")
(gdb) n
5138 }
(gdb) c
Continuing.
Thread 1 hit Breakpoint 1, maybe_defer_native_compilation (function_name=XIL(0xffff82ed65497a50), definition=XIL(0x2e481030f45)) at comp.c:5104
5104 if (!load_gccjit_if_necessary (false))
[...]
5128 if (comp__loadable)
(gdb) n
5137 Vcomp__delayed_sources = Fcons (src, Vcomp__delayed_sources);
(gdb) n
5138 }
(gdb) n
Fdefalias (symbol=XIL(0xffff82ed65497a50), definition=XIL(0x2e481030f45), docstring=XIL(0)) at data.c:911
911 if (!NILP (docstring))
(gdb) c
Continuing.
Thread 1 hit Breakpoint 1, maybe_defer_native_compilation (function_name=XIL(0xffff82ed65497ab0), definition=XIL(0x2e48104be45)) at comp.c:5104
5104 if (!load_gccjit_if_necessary (false))
[...]
5128 if (comp__loadable)
(gdb) n
5137 Vcomp__delayed_sources = Fcons (src, Vcomp__delayed_sources);
(gdb) pp globals.f_Vcomp__delayed_sources
("z:/path/to/emacs/lisp/emacs-lisp/ring.el" "z:/path/to/emacs/lisp/emacs-lisp/ring.el" "z:/path/to/emacs/lisp/emacs-lisp/ring.el" "z:/path/to/emacs/lisp/emacs-lisp/ring.el" "z:/path/to/emacs/lisp/emacs-lisp/ring.el" "z:/path/to/emacs/lisp/international/latexenc.el" "z:/path/to/emacs/lisp/international/latexenc.el" "z:/path/to/emacs/lisp/international/latexenc.el")
(gdb) c
Continuing.
Thread 1 hit Breakpoint 1, maybe_defer_native_compilation (function_name=XIL(0xffff82ed65497ae0), definition=XIL(0x2e48109dc45)) at comp.c:5104
5104 if (!load_gccjit_if_necessary (false))
(gdb) q
A debugging session is active.
Inferior 1 [process 8928] will be killed.
Quit anyway? (y or n) y
--8<---------------cut here---------------end--------------->8---
Best, Arash
next prev parent reply other threads:[~2022-01-26 19:06 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 10:20 bug#53497: 29.0.50; native-compile after restarting Emacs Arash Esbati
2022-01-24 10:30 ` Lars Ingebrigtsen
2022-01-24 10:35 ` Arash Esbati
2022-01-24 10:40 ` Lars Ingebrigtsen
2022-01-24 11:00 ` Arash Esbati
2022-01-24 12:28 ` Eli Zaretskii
2022-01-24 12:43 ` Arash Esbati
2022-01-24 12:36 ` Eli Zaretskii
2022-01-24 12:50 ` Arash Esbati
2022-01-24 12:56 ` Eli Zaretskii
2022-01-24 13:33 ` Arash Esbati
2022-01-24 13:45 ` Eli Zaretskii
2022-01-24 13:50 ` Eli Zaretskii
2022-01-24 14:27 ` Andrea Corallo
2022-01-24 14:31 ` Eli Zaretskii
2022-01-24 17:17 ` Arash Esbati
2022-01-24 19:08 ` Eli Zaretskii
2022-01-25 11:01 ` Arash Esbati
2022-01-25 12:36 ` Eli Zaretskii
2022-01-25 12:49 ` Arash Esbati
2022-01-25 13:31 ` Eli Zaretskii
2022-01-26 11:25 ` Arash Esbati
2022-01-26 13:22 ` Eli Zaretskii
2022-01-26 14:58 ` Arash Esbati
2022-01-26 15:13 ` Eli Zaretskii
2022-01-26 15:20 ` Arash Esbati
2022-01-26 16:54 ` Eli Zaretskii
2022-01-26 19:06 ` Arash Esbati [this message]
2022-01-26 19:30 ` Eli Zaretskii
2022-01-26 15:58 ` Andrea Corallo
2022-01-27 10:11 ` Andrea Corallo
2022-01-27 10:31 ` Eli Zaretskii
2022-01-27 10:57 ` Andrea Corallo
2022-01-27 11:03 ` Eli Zaretskii
2022-01-27 12:58 ` Andrea Corallo
2022-01-27 15:03 ` Arash Esbati
2022-01-27 15:22 ` Eli Zaretskii
2022-01-27 16:27 ` Arash Esbati
2022-01-27 16:37 ` Andrea Corallo
2022-01-27 16:57 ` Eli Zaretskii
2022-01-27 17:22 ` Andrea Corallo
2022-01-27 22:21 ` Andrea Corallo
2022-01-28 9:24 ` Arash Esbati
2022-01-28 12:15 ` Eli Zaretskii
2022-01-28 15:12 ` Andrea Corallo
2022-01-28 16:02 ` Andrea Corallo
2022-01-28 16:30 ` Lars Ingebrigtsen
2022-01-29 7:40 ` Andrea Corallo
2022-01-29 10:02 ` Eli Zaretskii
2022-01-29 11:49 ` Arash Esbati
2022-01-27 16:58 ` Arash Esbati
2022-01-27 17:03 ` Eli Zaretskii
2022-01-28 9:26 ` Arash Esbati
2022-01-24 16:33 ` Arash Esbati
2022-01-24 17:07 ` Eli Zaretskii
2022-01-24 18:47 ` Arash Esbati
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86czkeqpth.fsf@gnu.org \
--to=arash@gnu.org \
--cc=53497@debbugs.gnu.org \
--cc=akrl@sdf.org \
--cc=eliz@gnu.org \
--cc=larsi@gnus.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).