Subject: Re: bug#9684: Emacs 23.3 and 24.0.90 don't build on IRIX 6.5

From: Rainer Orth <[email-masked]>
Date: Fri, 07 Oct 2011 15:40:56 +0200

Eli Zaretskii <[email-masked]> writes:

> Can you run any of these 2 commands under a debugger, put a breakpoint
> in a function called xsignal1, and when it breaks, show the backtrace?

Sure:

(gdb) set environment EMACSLOADPATH /vol/src/gnu/emacs/emacs-24.0.90/leim/../lisp
(gdb) b xsignal1
Breakpoint 3 at 0x10294d2c
(gdb) run -batch --no-site-file --no-site-lisp -f batch-byte-compile quail/CCDOSPY.el
Starting program: /vol/obj/gnu/emacs/emacs-24.0.90/src/emacs -batch --no-site-file --no-site-lisp -f batch-byte-compile quail/CCDOSPY.el

Breakpoint 3, xsignal1 (error_symbol=274352730, arg=274355066) at /vol/src/gnu/emacs/emacs-24.0.90/src/eval.c:1773
(gdb) where
#0  xsignal1 (error_symbol=274352730, arg=274355066) at /vol/src/gnu/emacs/emacs-24.0.90/src/eval.c:1773
#1  0x10298f1c in Ffuncall (nargs=2, args=0x7ffb7a10) at /vol/src/gnu/emacs/emacs-24.0.90/src/eval.c:3029
#2  0x10306074 in exec_byte_code (bytestr=272696025, vector=272696045, maxdepth=8, args_template=0, nargs=0, args=0x7ffb7d14) at /vol/src/gnu/emacs/emacs-24.0.90/src/bytecode.c:785
#3  0x1029963c in funcall_lambda (fun=272695997, nargs=0, arg_vector=0x7ffb7d14) at /vol/src/gnu/emacs/emacs-24.0.90/src/eval.c:3139
#4  0x10298ea8 in Ffuncall (nargs=1, args=0x7ffb7d10) at /vol/src/gnu/emacs/emacs-24.0.90/src/eval.c:3023
#5  0x10297ea8 in call0 (fn=274434914) at /vol/src/gnu/emacs/emacs-24.0.90/src/eval.c:2728
#6  0x1020eed4 in get_minibuffer (depth=0) at /vol/src/gnu/emacs/emacs-24.0.90/src/minibuf.c:815
#7  0x101fc68c in init_buffer () at /vol/src/gnu/emacs/emacs-24.0.90/src/buffer.c:5098
#8  0x101b5520 in main (argc=7, argv=0x7ffb7ef4) at /vol/src/gnu/emacs/emacs-24.0.90/src/emacs.c:1452

Lisp Backtrace:
"make-local-variable" (0x7ffb7a14)
"minibuffer-inactive-mode" (0x7ffb7d14)

> Preferably do this with GDB, and start GDB from the src directory, so
> it reads the .gdbinit file there.  Also, please recompile Emacs
> without the -O2 optimization switch, so that information shown by the
> debugger would be reliable.

Of course: recompiled with -g3 -O0.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University