GNU bug report logs -
#23529
Request for fixing randomize_va_space build issues
Previous Next
Reported by: Philippe Vaucher <philippe.vaucher <at> gmail.com>
Date: Fri, 13 May 2016 12:20:02 UTC
Severity: important
Tags: fixed
Merged with 13964
Found in version 24.3
Fixed in version 27.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
Message #161 received at 23529 <at> debbugs.gnu.org (full text, mbox):
> Cc: p.stephani2 <at> gmail.com, philippe.vaucher <at> gmail.com, 23529 <at> debbugs.gnu.org
> From: Paul Eggert <eggert <at> cs.ucla.edu>
> Date: Sat, 10 Sep 2016 16:01:28 -0700
>
> Conservative stack marking is for Lisp objects held in variables on
> the stack. Those objects cannot be relevant to dumping
>
> Yes, but the conservativeness of the marking phase means Emacs cannot relocate objects.
I don't understand how this is relevant. What do you mean by
"relocating objects", and why would we need to do that as part of
un-dumping?
> If mainline libc allows such control on its memory
> allocation back-end, it is better to use that than rely on our own
> replacement allocator.
>
> Although that might be better than what we're doing, better yet would be to not fiddle with such internal details of malloc at all.
Yes, and it's better not to fiddle with Emacs at all, if all we want
is simple C programs.
> What about disabling randomization for the temacs run?
>
> That is yet another low-level thing to configure, and to get right in new ports.
We already have that in Emacs, don't we?
> The approach I'm suggesting does not rely on disabling randomization.
It has other costs, though. A tradeoff should consider them all, not
one by one.
> This point is a tangent to its containing thread, as the thread in question is about whether compilers and linkers can relocate pointers for us. The code example establishes that compilers and linkers can do so, regardless of whether Emacs is using that capability now.
No, this point started with me saying dumping and reading dumped data
with fixups is relatively easy, and you objecting saying address
randomizations will defeat that. Now we agree that it's a tangential
issue unrelated to my proposal.
This bug report was last modified 5 years and 311 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.