* bug#13964: 24.3; randomize_va_space is back
@ 2013-03-15 10:07 Trent W. Buck
2019-09-14 4:18 ` bug#13964: bug#23529: Request for fixing randomize_va_space build issues Stefan Kangas
0 siblings, 1 reply; 4+ messages in thread
From: Trent W. Buck @ 2013-03-15 10:07 UTC (permalink / raw)
To: 13964
I ran into this problem:
http://article.gmane.org/gmane.emacs.devel/35276
This fixed it (it was set to 2):
# echo 0 > /proc/sys/kernel/randomize_va_space
I didn't try setarch -R because I couldn't guess what my arch was to
tell setarch (I tried everything I could think of from "armv7l" to
"ventana").
I'm too lazy to read the whole 2005 thread. Since etc/PROBLEMS doesn't
mention this issue, only the exec-shield one, I guess this problem was
supposed to be fixed at the time -- so why did I see it today?
In GNU Emacs 24.3.1 (armv7l-unknown-linux-gnueabi)
of 2013-03-15 on elba
System Description: Ubuntu 11.10
Configured using:
`configure '--without-x' '--without-sound' '--without-all'
'--with-x-toolkit=no' '--with-xpm=no' '--with-gif=no' '--with-jpeg=no'
'--with-tiff=no' '--with-png=no' '--with-dbus=no' '--with-gsettings=no'
'--with-gnutls=no' '--prefix=/home/twb/opt/emacs-24.3''
Important settings:
value of $LC_COLLATE: C
value of $LANG: en_AU.utf8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Fundamental
Minor modes in effect:
ido-everywhere: t
savehist-mode: t
icomplete-mode: t
show-paren-mode: t
delete-selection-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
Recent messages:
("emacs" "-f" "report-emacs-bug")
Loading term/xterm...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils advice help-fns cl-lib
advice-preload jka-compr edmacro kmacro ido savehist icomplete time-date
paren delsel saveplace ediff-hook vc-hooks lisp-float-type
tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow
timer jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process multi-tty emacs)
From IRC debugging:
twb> I'm trying to build emacs from source; there's a point where temacs
twb> deliberately dumps core to make the real "emacs".
twb>
twb> I get "Warning: Your system has a gap between BSS and the heap
twb> (15825968 bytes). This usually means that exec-shield or something
twb> similar is in effect. The dump may fail because of this. See the
twb> section about exec-shield in etc/PROBLEMS for more information."
twb>
twb> System is an arm Ubuntu 11.10 (tegra2), non-standard kernel and
twb> nonstandard(?) gcc (Ubuntu/Linaro 4.6.1-9ubuntu3), apparmor is not
twb> installed.
twb>
twb> etc/PROBLEMS says to check /proc/sys/kernel/exec-shield -- I have no
twb> such file.
twb>
twb> What should I check next?
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#13964: bug#23529: Request for fixing randomize_va_space build issues
2013-03-15 10:07 bug#13964: 24.3; randomize_va_space is back Trent W. Buck
@ 2019-09-14 4:18 ` Stefan Kangas
2019-09-14 8:52 ` Philippe Vaucher
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kangas @ 2019-09-14 4:18 UTC (permalink / raw)
To: Philippe Vaucher; +Cc: 23529, 13964
Philippe Vaucher <philippe.vaucher@gmail.com> writes:
> When /proc/sys/kernel/randomize_va_space is 2, emacs fails to build:
>
> Dumping under the name emacs
> **************************************************
> Warning: Your system has a gap between BSS and the
> heap (20865783 bytes). This usually means that exec-shield
> or something similar is in effect. The dump may
> fail because of this. See the section about
> exec-shield in etc/PROBLEMS for more information.
> **************************************************
> /bin/bash: line 7: 8981 Segmentation fault (core dumped)
> ./temacs --batch --load loadup bootstrap
> Makefile:815: recipe for target 'bootstrap-emacs' failed
> make[1]: *** [bootstrap-emacs] Error 1
> make[1]: Leaving directory '/tmp/emacs/src'
Is this still an issue with Emacs 27.0.50 (current master branch)?
etc/NEWS says:
** Emacs now uses a "portable dumper" instead of unexec.
This improves compatibility with memory allocation on modern systems,
and in particular better supports the Address Space Layout
Randomization (ASLR) feature, a security technique used by most modern
operating systems.
Thanks,
Stefan Kangas
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#13964: bug#23529: Request for fixing randomize_va_space build issues
2019-09-14 4:18 ` bug#13964: bug#23529: Request for fixing randomize_va_space build issues Stefan Kangas
@ 2019-09-14 8:52 ` Philippe Vaucher
2019-09-14 10:39 ` Stefan Kangas
0 siblings, 1 reply; 4+ messages in thread
From: Philippe Vaucher @ 2019-09-14 8:52 UTC (permalink / raw)
To: Stefan Kangas; +Cc: 23529, 13964
[-- Attachment #1: Type: text/plain, Size: 165 bytes --]
>
> Is this still an issue with Emacs 27.0.50 (current master branch)?
>
No, this is indeed fixed in master.
This ticket can thus be closes.
Regards,
Philippe
>
[-- Attachment #2: Type: text/html, Size: 669 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#23529: Request for fixing randomize_va_space build issues
2019-09-14 8:52 ` Philippe Vaucher
@ 2019-09-14 10:39 ` Stefan Kangas
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Kangas @ 2019-09-14 10:39 UTC (permalink / raw)
To: Philippe Vaucher; +Cc: 23529, 13964
tags 23529 fixed
close 23529 27.1
quit
Philippe Vaucher <philippe.vaucher@gmail.com> writes:
>> Is this still an issue with Emacs 27.0.50 (current master branch)?
>
> No, this is indeed fixed in master.
>
> This ticket can thus be closes.
Thanks. I'm therefore closing this bug.
Best regards,
Stefan Kangas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-09-14 10:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-15 10:07 bug#13964: 24.3; randomize_va_space is back Trent W. Buck
2019-09-14 4:18 ` bug#13964: bug#23529: Request for fixing randomize_va_space build issues Stefan Kangas
2019-09-14 8:52 ` Philippe Vaucher
2019-09-14 10:39 ` Stefan Kangas
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).