-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Description
Hello,
I'm building https://github.com/Silex/docker-emacs/blob/master/24.5/Dockerfile on ubuntu 16.04 with docker version:
Client:
Version: 1.11.1
API version: 1.23
Go version: go1.5.4
Git commit: 5604cbe
Built: Tue Apr 26 23:43:49 2016
OS/Arch: linux/amd64
Server:
Version: 1.11.1
API version: 1.23
Go version: go1.5.4
Git commit: 5604cbe
Built: Tue Apr 26 23:43:49 2016
OS/Arch: linux/amd64
But it fails like so:
Dumping under the name emacs
**************************************************
Warning: Your system has a gap between BSS and the
heap (4301663 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: 7052 Segmentation fault (core dumped) ./temacs --batch --load loadup bootstrap
make[1]: *** [bootstrap-emacs] Error 1
make[1]: Leaving directory `/root/emacs-24.5/src'
make: *** [src] Error 2
I discovered two workarounds:
- Don't build with a Dockerfile and build in a running container that has a seccomp profile that allows the
personality
syscall. - Disable
/proc/sys/kernel/randomize_va_space
before building
Related issues:
Questions:
- Will this get fixed automagically with docker 1.11.2 ?
- Is there a way to modify the seccomp profile for when an image gets build? I could not find a
.json
file in/var/lib/docker
,/etc
or/usr
fommil, MHBauer, dandavison, jgkamat and pataquets