Paul Eggert writes: > Thomas Fitzsimmons wrote: >> It looks like the second patch still disables ASLR unconditionally on >> PPC64. If you want to suggest experiments I can try on my system, maybe >> I can attempt a fix so that ASLR can be disabled only during dumping on >> PPC64 like on other archiectures. Or do you know that's an >> impossibility for some reason? > > I don't recall the reason that ppc64 is different, but you can > experiment by applying the attached patch. To help with the detective > work you might look at the thread containing this email: > > https://sourceware.org/ml/libc-alpha/2016-07/msg00538.html I read through that thread, then tried the patch. I was surprised that everything seems to work: - Bootstrap works within a reasonable amount of RAM (limited with ulimit -d to make sure it didn't spike up to 12 GB). - The Emacs process (run as ./src/emacs from the build directory): - does not use 12 GB of RAM (i.e., RAM usage is reasonable after opening a C file, src/xdisp.c). - has a /proc//personality value of 00000000. - runs subprocesses with a /proc/self/personality value of 00000000. My system has glibc 2.24. src/config.h has "#define HYBRID_MALLOC 1". Hybrid malloc was proposed as a proper fix during that discussion, but wasn't enabled by default at the time. Given that I configured with just "./configure --with-x-toolkit=lucid", it seems that hybrid malloc is enabled by default now. I'm not sure if this would now work on older glibc versions as well, but in case it doesn't, what about something like the attached for master? Are there other tests I should try, to reveal problems? If the patch looks OK, I should probably also test it on Fedora as part of a local Rawhide Emacs package build, since lots of the discussion was about getting that working reliably. Thanks, Thomas