emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Latest change to alloc.c makes emacs trap very frequently.


From: Kim F. Storm
Subject: Latest change to alloc.c makes emacs trap very frequently.
Date: 12 Jan 2003 02:43:51 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

To reproduce reliable, I just create a new buffer, enter a few lines
in it and move around with the arrow keys; on the first forward
movement, emacs SEGV in command_loop_1.

If I undo the following change, it doesn't happen:

2003-01-10  Andreas Schwab  <address@hidden>

        * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
        Reported by Berthold Gunreben <address@hidden>.

That fix looks rather obscure (it aligns the size and adjusts the
pointer, rather than aligning the pointer and adjusting the size).  

I have rewritten the code in pure_alloc to properly align the pointer
and simplified the code overall.

It seems to work now, but watch out for problems... 

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]