From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Andreas Fuchs <asf@boinkor.net>
Cc: 43137@debbugs.gnu.org, Vibhav Pant <vibhavp@gmail.com>
Subject: bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths
Date: Tue, 01 Sep 2020 19:51:18 +0000 [thread overview]
Message-ID: <xjfft81uvgp.fsf@sdf.org> (raw)
In-Reply-To: <CAOHxn7yRtScTTtj0ocv8xkG9NGG8J84Ao=3VduyUkdav=-qKrw@mail.gmail.com> (Andreas Fuchs's message of "Tue, 1 Sep 2020 15:32:05 -0400")
Andreas Fuchs <asf@boinkor.net> writes:
> I <asf@boinkor.net> wrote:
>> This makes sense too. I'll investigate when `Vinvocation_directory`
> gets
>> set. Does sound like that doesn't happen early enough, maybe we can
> pull
>> it forward a bit.
>
> I dug into this, and the way main() progresses is that it first tries
> to
> load the pdump (via load_pdump in line 1076,
> https://github.com/emacs-mirror/emacs/blob/feature/native-comp/src/
> emacs.c#L1076),
> and only much later, sets invocation-directory and other cmdargs via
> set_invocation_vars called from init_cmdargs (called in main on line
> 1794,
> https://github.com/emacs-mirror/emacs/blob/feature/native-comp/src/
> emacs.c#L1794).
>
> I think this should be failing cross-platform; is it working for you?
>
> Thanks,
Hi Andreas,
yes for me is set before. I've made set_invocation_vars to be called
before doing what I've called LATE_RELOCS in the pdumper.
Here is my backtrace of where gdb stops just after Vinvocation_directory
is set.
(gdb) bt
#0 set_invocation_vars (argv0=0x7fffffffe693 "/home/andcor03/emacs2/src/emacs",
original_pwd=0xacb6f0 "/home/andcor03/emacs2/src") at emacs.c:455
#1 0x000000000057ade2 in pdumper_load (
dump_filename=0xacb750 "/home/andcor03/emacs2/src/emacs.pdmp",
argv0=0x7fffffffe693 "/home/andcor03/emacs2/src/emacs",
original_pwd=0xacb6f0 "/home/andcor03/emacs2/src") at pdumper.c:5593
#2 0x00000000004e3a2f in load_pdump (argc=2, argv=0x7fffffffe428,
original_pwd=0xacb6f0 "/home/andcor03/emacs2/src") at emacs.c:868
#3 0x00000000004e3f4d in main (argc=2, argv=0x7fffffffe428) at emacs.c:1076
Is it possible that set_invocation_vars on macos fails to set the
correct value? I'd look into it as I guess something may go wrong
there.
Andrea
next prev parent reply other threads:[~2020-09-01 19:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-31 15:11 bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths Andreas Fuchs
2020-08-31 16:32 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-09-01 14:15 ` Andreas Fuchs
2020-09-01 19:32 ` Andreas Fuchs
2020-09-01 19:51 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2020-09-02 0:51 ` Andreas Fuchs
2020-09-02 4:41 ` Andreas Fuchs
2020-09-02 7:40 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-09-02 13:49 ` Andreas Fuchs
2020-09-26 13:51 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-10-02 7:59 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-09-02 7:28 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=xjfft81uvgp.fsf@sdf.org \
--to=bug-gnu-emacs@gnu.org \
--cc=43137@debbugs.gnu.org \
--cc=akrl@sdf.org \
--cc=asf@boinkor.net \
--cc=vibhavp@gmail.com \
/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.