all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Stack allocation of Lisp objects
@ 2014-10-09  3:11 Stefan Monnier
  2014-10-09  7:09 ` Paul Eggert
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2014-10-09  3:11 UTC (permalink / raw)
  To: emacs-devel

I started seeing occasional crashes (always during temacs's dump so
far), and while they come&go, they are completely reproducible when
they're here.  So I dug into it, and it looks like a problem with stack
allocation:

The crash I analyzed was within mark_object while looking at a `cons'
whose cdr is nil and whose car is a string whose address is 0xffffcbe0
which IIUC is on the stack.

Apparently there's an AUTO_STRING somewhere which we stick into a heap
allocated cons cell.  So of course, when the GC gets around to scan this
cons object, the stack-allocated string is long gone and overwritten by
unrelated data => crash.


        Stefan "going back to USE_STACK_LISP_OBJECTS=false"



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-09  7:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-09  3:11 Stack allocation of Lisp objects Stefan Monnier
2014-10-09  7:09 ` Paul Eggert

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.