* Minimum build cause segmentation fault
@ 2013-06-02 14:53 * Tong *
0 siblings, 0 replies; only message in thread
From: * Tong * @ 2013-06-02 14:53 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
I'm trying to build a Emacs with a minimum footprint, from the standard
Debian package, but get segmentation fault eventually. I don't know if it
is emacs that assumes certain configuration, or I forgot to tell emacs
the changes I've made, or anything else.
This is how emacs would be built with standard Debian package:
Where should the build process find the source code? /systems/b/
emacs/emacs24-24.3+1/debian/build-x
What compiler should emacs be built with? gcc -std=gnu99 -
g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-
security -Wall
Should Emacs use the GNU version of malloc? yes
(Using Doug Lea's new malloc from the GNU C Library.)
Should Emacs use a relocating allocator for buffers? no
Should Emacs use mmap(2) for buffer allocation? no
What window system should Emacs use? x11
What toolkit should Emacs use? GTK3
Where do we find X Windows header files? Standard dirs
Where do we find X Windows libraries? Standard dirs
Does Emacs use -lXaw3d? no
Does Emacs use -lXpm? yes
Does Emacs use -ljpeg? yes
Does Emacs use -ltiff? yes
Does Emacs use a gif library? yes -lgif
Does Emacs use -lpng? yes
Does Emacs use -lrsvg-2? yes
Does Emacs use imagemagick? yes
Does Emacs use -lgpm? yes
Does Emacs use -ldbus? yes
Does Emacs use -lgconf? yes
Does Emacs use GSettings? yes
Does Emacs use -lselinux? yes
Does Emacs use -lgnutls? yes
Does Emacs use -lxml2? yes
Does Emacs use -lfreetype? yes
Does Emacs use -lm17n-flt? yes
Does Emacs use -lotf? yes
Does Emacs use -lxft? yes
Does Emacs use toolkit scroll bars? yes
This is the minimum build that I'm doing:
Where should the build process find the source code? /systems/b/
emacs/emacs24-24.3+1/debian/build-x
What compiler should emacs be built with? gcc -std=gnu99 -
g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-
security -Wall
Should Emacs use the GNU version of malloc? yes
(Using Doug Lea's new malloc from the GNU C Library.)
Should Emacs use a relocating allocator for buffers? no
Should Emacs use mmap(2) for buffer allocation? no
What window system should Emacs use? x11
What toolkit should Emacs use? MOTIF
Where do we find X Windows header files? Standard dirs
Where do we find X Windows libraries? Standard dirs
Does Emacs use -lXaw3d? no
Does Emacs use -lXpm? no
Does Emacs use -ljpeg? no
Does Emacs use -ltiff? no
Does Emacs use a gif library? no
Does Emacs use -lpng? no
Does Emacs use -lrsvg-2? no
Does Emacs use imagemagick? no
Does Emacs use -lgpm? yes
Does Emacs use -ldbus? yes
Does Emacs use -lgconf? no
Does Emacs use GSettings? no
Does Emacs use -lselinux? no
Does Emacs use -lgnutls? no
Does Emacs use -lxml2? no
Does Emacs use -lfreetype? yes
Does Emacs use -lm17n-flt? no
Does Emacs use -lotf? yes
Does Emacs use -lxft? yes
Does Emacs use toolkit scroll bars? yes
The build and package installation was fine, without any problem,
however, when I tried to run emacs, I get the following:
$ emacs emacs24-24.3+1/debian/rules
Fatal error 11: Segmentation fault
Backtrace:
emacs[0x8123fb3]
emacs[0x810a3b1]
emacs[0x81229c7]
emacs[0x8122b46]
[0xb77d4400]
/usr/lib/i386-linux-gnu/libXt.so.6(XtInitializeWidgetClass+0xbc)
[0xb74d609c]
/usr/lib/i386-linux-gnu/libXt.so.6(_XtCreateWidget+0xf0)[0xb74d6b40]
/usr/lib/i386-linux-gnu/libXt.so.6(XtCreateWidget+0xd4)[0xb74d6e24]
emacs[0x80f9299]
emacs[0x80fa4d9]
emacs[0x8179a20]
emacs[0x81ad03b]
emacs[0x817959d]
emacs[0x817985a]
emacs[0x81ad03b]
emacs[0x817959d]
emacs[0x817985a]
emacs[0x81ad03b]
emacs[0x817959d]
emacs[0x817985a]
emacs[0x81ad03b]
emacs[0x8179383]
emacs[0x817985a]
emacs[0x81ad03b]
emacs[0x8179383]
emacs[0x8178aa7]
emacs[0x8178de8]
emacs[0x817c1d0]
emacs[0x810a8b9]
emacs[0x81780fe]
emacs[0x810a895]
emacs[0x8178013]
emacs[0x810ec84]
emacs[0x810ef7d]
emacs[0x80529f8]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0xb6fe7935]
emacs[0x8053695]
Segmentation fault
Any way I can investigate more about it?
PS, this is the part how configure was done during Debian package
building:
cd debian/build-x && CFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-
size=4 -Wformat -Werror=format-security -Wall" CPPFLAGS="-
D_FORTIFY_SOURCE=2" ./configure --build i686-linux-gnu --prefix=/usr --
sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --
infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-
locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-
lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/
usr/share/emacs/site-lisp --with-crt-dir=/usr/lib/i386-linux-gnu --build
i686-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/
lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/
share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/
usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/
usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp --with-crt-dir=/
usr/lib/i386-linux-gnu --with-x=yes --without-all --with-compress-info --
with-gpm --with-x --with-xft --with-libotf --with-xim --with-dbus --with-
x-toolkit=motif --with-toolkit-scroll-bars
Thanks
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-02 14:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-02 14:53 Minimum build cause segmentation fault * Tong *
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).