Discussion:
XEmacs on OS X Yosemite = Segfault
Johann 'Myrkraverk' Oskarsson
2015-04-01 18:14:18 UTC
Permalink
Hi all,

I've been trying to compile XEmacs on Yosemite (OS X 10.10.2) with the
LLVM compiler from XCode.

So far, all versions I've tried (21.4 and 21.5) are failing with a
segmentation fault.

21.4.24 fails like this.

Dumping under the name xemacs
Testing for Lisp shadows ...
make[1]: *** [xemacs.dmp] Segmentation fault: 11
make[1]: *** Deleting file `xemacs.dmp'
make: *** [src] Error 2

21.5.34 fails like this.

Dumping under the name xemacs
if test -f dump-size; then \
../lib-src/insert-data-in-exec temacs xemacs.dmp
xemacs ` ./temacs -si`; \
ret=$? ; \
if test ${ret} -eq 2; then \
rm -f dump-size ; \
else \
if test ${ret} -eq 1; then \
exit 1; \
else \
chmod +x xemacs ; \
fi ; \
fi ; \
fi
dumped_data found at offset 0x3d5d10, patching.
dumped_data found at offset 0x3d5d10, patching.
if test ! -f dump-size; then \
../lib-src/insert-data-in-exec -s xemacs.dmp > dump-size ; \
rm -f dump-data.o xemacs xemacs.dmp temacs;\

/Applications/Xcode.app/Contents/Developer/usr/bin/make xemacs; \
fi
./xemacs -no-packages -batch -no-autoloads -l update-elc-2.el -f
batch-update-elc-2 /Users/johann/build/xemacs-21.5.34/src/../lisp
make[1]: *** [update-elc-2] Segmentation fault: 11
make: *** [src] Error 2


Do you guys have any suggestions on how to figure out what's wrong, or
configuration flags to try?

My ./configure lines are as follows.

21.4: ./configure --compiler=cc --cflags=-std=gnu89 --with-athena=xaw
--with-mule --with-png=no

21.5: ./configure --with-mule --without-png


Johann
Aidan Kehoe
2015-04-10 15:43:29 UTC
Permalink
Post by Johann 'Myrkraverk' Oskarsson
I've been trying to compile XEmacs on Yosemite (OS X 10.10.2) with the
LLVM compiler from XCode.
[...]
/Applications/Xcode.app/Contents/Developer/usr/bin/make xemacs; \
fi
./xemacs -no-packages -batch -no-autoloads -l update-elc-2.el -f
batch-update-elc-2 /Users/johann/build/xemacs-21.5.34/src/../lisp
make[1]: *** [update-elc-2] Segmentation fault: 11
make: *** [src] Error 2
Do you guys have any suggestions on how to figure out what's wrong, or
configuration flags to try?
The first thing I’d check would be to make sure that address space layout
randomisation is not enabled; does the link line for temacs include
-Wl,-no_pie ? It should, if the appropriate configure check (line 2830,
configure.ac) is picking up the OS.

Otherwise, trace into the thing with lldb and give us an idea what’s erroring.

Best,

Aidan
--
‘Tramadol is further fed to cattle […] when working them […] (as draft
animals) so that the animals do not get tired quickly. …’
— Angewandte Chemie, Sept 2014, describing the social context of
(synthetic) tramadol having been found in Cameroon tree roots.
Johann 'Myrkraverk' Oskarsson
2015-04-29 12:03:19 UTC
Permalink
Post by Aidan Kehoe
Post by Johann 'Myrkraverk' Oskarsson
I've been trying to compile XEmacs on Yosemite (OS X 10.10.2) with the
LLVM compiler from XCode.
The first thing I’d check would be to make sure that address space layout
randomisation is not enabled; does the link line for temacs include
-Wl,-no_pie ? It should, if the appropriate configure check (line 2830,
configure.ac) is picking up the OS.
Adding --ldflags=-Wl,-no_pie helped, thank you.
Alain
2015-05-01 16:49:20 UTC
Permalink
Hi,
I would like to know where I can find the xemacs
pkg for yosemite to build/install it ?
Thanks for help
Best regards
Alain
Stephen J. Turnbull
2015-05-03 08:25:13 UTC
Permalink
Post by Alain
I would like to know where I can find the xemacs
pkg for yosemite to build/install it ?
hg clone https://bitbucket.com/xemacs/xemacs

You can also find the most recent tarballs linked from the website
http://www.xemacs.org/ but they're old and have a number of very
serious problems that have been fixed recently.

Loading...