Hi.
While installing xemacs-21.1.4 (with troubles :-<),
I got a message to "report this bug" from ${srcdir}/src/temacs.
------ start ------
Fatal error (11).
Your files have been auto-saved.
Use `M-x recover-session' to recover them.
Please report this bug by running the send-pr script included
with XEmacs, or selecting `Send Bug Report' from the help menu.
As a last resort send ordinary email to `crashes(a)xemacs.org'.
*MAKE SURE* to include the information in the command
M-x describe-installation.
If at all possible, *please* try to obtain a C stack backtrace;
it will help us immensely in determining what went wrong.
To do this, locate the core file that was produced as a result
of this crash (it's usually called `core' and is located in the
directory in which you started the editor, or maybe in your home
directory), and type
gdb `which xemacs` core
then type `where' when the debugger prompt comes up.
(If you don't have GDB on your system, you might have DBX,
or XDB, or SDB. A similar procedure should work for all of
these. Ask your system administrator if you need more help.)
Lisp backtrace follows:
# (catch #<INTERNAL EMACS BUG (opaque, size=4) 0x3caaa0> ...)
------ end ------
I will try to explain what I did chronologically.
0. My system is like:
% uname -a
SunOS satatsn01 5.6 Generic_105181-16 sun4u sparc SUNW,Ultra-5_10
% swap -s
total: 111256k bytes allocated + 10824k reserved = 122080k used, 2587232k available
% df
enough :-)
tcsh 6.11.00( $LANG is C ).
X11R6.3.
Japanized here and there. ( canna, kterm etc. )
1. Downloaded following archives from
ftp://ftp.jp.xemacs.org/pub/GNU/xemacs (and subdirs).
* xemacs-21.1.4.tar.gz
* cc-mode-1.25-pkg.tar.gz
* locale-1.18-pkg.tar.gz
* mule-base-1.39-pkg.tar.gz
2. Couldn't figure out how to "install" the packages so, simply expanded the
3 packages to
${prefix}/lib/xemacs-21.1.4/xemacs-packages
3. Ran
./configure --with-gnu-make --prefix=PREFIX --site-prefixes=SP_1:SP_2 --with-mule
--with-canna
and completed with no trouble. (Hurrah!)
4. Created ${srcdir}/lisp/site-init.el only including two "setq"s.
(setq mh-progs "foo")
(setq mh-lib "bar")
5. Ran gmake and failed compiling ${srcdir}/src/doprnt.c.
gcc ... doprnt.c
doprnt.c: In function `get_doprnt_args':
doprnt.c:389: `short int' is promoted to `int' when passed through `...'
doprnt.c:389: (so you should pass `int' not `short int' to `va_arg')
doprnt.c:398: `short unsigned int' is promoted to `int' when passed through
`...'
gmake: *** [doprnt.o] Error 1
6. Edited doprnt.c.
@@ -389 +389 @@
- arg.i = va_arg (vargs, short);
+ arg.i = va_arg (vargs, int);
@@ -398 +398 @@
- arg.ui = va_arg (vargs, unsigned short);
+ arg.ui = va_arg (vargs, int);
7. Continued gmake and encountered another failure.
(should be while making dump_elcs in src/Makefile)
EMACSBOOTSTRAPLOADPATH="SRCDIR/src/../lisp/:SRCDIR" ./temacs -batch -l
SRCDIR/src/../lisp/update-elc.el
Segmentation Fault - core dumped
gmake[1]: *** [update-elc.stamp] Error 139
gmake[1]: Leaving directory `SRCDIR/src'
gmake: *** [src] Error 2
8. Became stuck here and tried
% cd ${srcdir}/src
% ./temacs
9. temacs printed the message above to STDERR.
The results of "gdb temacs core" are
------ start ------
% gdb ./temacs core
Core was generated by `./temacs'.
Program terminated with signal 11, Segmentation fault.
"/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1": not in executable format:
File format not recognized.
#0 0xeee88244 in _END_ ()
(gdb) where
#0 0xeee88244 in _END_ ()
#1 0x91678 in fatal_error_signal (sig=11) at emacs.c:263
#2 0xeee38a14 in _END_ ()
#3 0xa03b700c in _END_ ()
#4 0x10b050 in image_instantiate (specifier=540963200, matchspec=4062208,
domain=541026816, instantiator=-2143449200, depth=1077827524)
at glyphs.c:2166
#5 0x94588 in primitive_funcall (fn=0x10aef4 <image_instantiate>, nargs=5,
args=0xeffff240) at eval.c:2862
#6 0x92c98 in internal_catch (tag=540846752, func=0x99f40
<call_with_suspended_errors_1>, arg=540846624, threw=0xeffff20c) at eval.c:1328
#7 0x939a0 in call_with_suspended_errors (fun=0x389c00
<png_image_instantiator_methods>, retval=540530732, class=629760, errb=-268438760,
nargs=5) at eval.c:2167
#8 0x163684 in specifier_instance_from_inst_list (specifier=540964608,
matchspec=540530732, domain=541026816, inst_list=1077826876,
errb=ERROR_ME_WARN, no_quit=1077826876, depth=1) at specifier.c:2384
#9 0x163f0c in recompute_all_cached_specifiers_in_window (w=0x3f6a00) at
specifier.c:2741
#10 0x19d754 in Fset_window_buffer (window=541026816, buffer=541006848) at window.c:3176
#11 0x100970 in Fmake_frame (props=-1606717436, device=540933120) at frame.c:242
#12 0x7a1b8 in init_console_stream () at console-stream.c:341
#13 0x8eff8 in xemacs_21_1_4_sparc_sun_solaris2_6 (argc=1, argv=0xeffff6ac, envp=0x38c400,
restart=0) at emacs.c:1633
#14 0x90584 in main (argc=1, argv=0xeffff6ac, envp=0x380c00) at emacs.c:2069
------ end ------
I will be happy if this helps and want to know how to proceed the
building anyway.