all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* buffer.c 1.407 badness
@ 2002-12-06  7:57 Bob Halley
  2002-12-07 21:27 ` Richard Stallman
  2002-12-07 21:27 ` Richard Stallman
  0 siblings, 2 replies; 6+ messages in thread
From: Bob Halley @ 2002-12-06  7:57 UTC (permalink / raw)
  Cc: emacs-devel

I tried to build from the CVS mainline today, and it failed, with the
bootstrap emacs segfaulting while compiling one of the esh modules
during "make bootstrap".  The stack trace was huge (over a thousand
levels deep), and involved lots of calls in the gc involving object
marking before one of them segfaulted.

Experimentation with selective soure file reversions reveals that the
problem occurs without fail if buffer.c 1.407 is present, and does not
occur if buffer.c 1.406 is used instead.

I have no understanding of the change made to buffer.c and cannot
offer a fix.

I also noticed something else while looking at diffs from alloca.c
1.21 to 1.22.  It's not related to my problem since I'm using GCC 3.2
and thus not using this snippet of code, but other people with older
systems may be.

Note how the first "#ifdef emacs" is changed to "#ifndef emacs" in the
patch below.  This seems like a serious problem to me, especially
since the comment above it in the source says that emacs wants
xmalloc.

@@ -91,12 +90,13 @@
 
    Callers below should use malloc.  */
 
-#ifdef emacs
-#define malloc xmalloc
-#ifdef EMACS_FREE
-#define free EMACS_FREE
-#endif
-#endif
+#  ifndef emacs
+#   undef malloc
+#   define malloc xmalloc
+#   ifdef EMACS_FREE
+#    define free EMACS_FREE
+#   endif
+#  endif
 extern pointer malloc ();
 
 /* Define STACK_DIRECTION if you know the direction of stack

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

end of thread, other threads:[~2002-12-09 22:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-06  7:57 buffer.c 1.407 badness Bob Halley
2002-12-07 21:27 ` Richard Stallman
2002-12-07 21:27 ` Richard Stallman
2002-12-07 22:10   ` Bob Halley
2002-12-09 20:22     ` Richard Stallman
2002-12-09 22:29       ` Bob Halley

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.