[gnu.emacs.bug] GNUemacs bug

murthy@rati.cs.cornell.edu (Chet Murthy) (03/21/89)

Bug Report:

Version: GNUemacs version 18.52 with X11 support

Synopsis:

After booting Emacs, type in, to the *scratch* buffer:
-----begin--------
(setq x (cons nil nil))
(progn (rplaca x x) (rplacd x x) 1)
(setq stack-trace-on-error t)
(insert-string x)
------end---------

At this point, Emacs will dump core.  The bug seems to be that the
backtrace printing routines don't know about infinite objecs, so they
die a grisly death when presented with such.

Another way to get the bug to occur is with the following code:
----begin----
(defun foo (x) (error "x"))
(setq x (cons nil nil))
(setq stack-trace-on-error t)
(progn (rplaca x x) (rplacd x x) (foo x))
---end-------

I really don't know where in the code to go rooting around for such an
error, though I intend to find out.


	--chet--
	murthy@svax.cs.cornell.edu