[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using
From: |
Andrea Corallo |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
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
- bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths, Andreas Fuchs, 2020/09/01
- bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths, Andreas Fuchs, 2020/09/01
- bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths,
Andrea Corallo <=
- bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths, Andreas Fuchs, 2020/09/01
- bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths, Andreas Fuchs, 2020/09/02
- bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths, Andrea Corallo, 2020/09/02
- bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths, Andreas Fuchs, 2020/09/02
- bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths, Andrea Corallo, 2020/09/26
- bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths, Andrea Corallo, 2020/09/02