From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Latest change to alloc.c makes emacs trap very frequently. Date: 12 Jan 2003 02:43:51 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5x3cnzm9bc.fsf@kfs2.cua.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042332287 25893 80.91.224.249 (12 Jan 2003 00:44:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 12 Jan 2003 00:44:47 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18XWF4-0006jO-00 for ; Sun, 12 Jan 2003 01:44:46 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18XWLp-0002Wf-00 for ; Sun, 12 Jan 2003 01:51:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18XWFH-0006hL-0B for emacs-devel@quimby.gnus.org; Sat, 11 Jan 2003 19:44:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18XWEz-0006H1-00 for emacs-devel@gnu.org; Sat, 11 Jan 2003 19:44:41 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18XWEo-0005pd-00 for emacs-devel@gnu.org; Sat, 11 Jan 2003 19:44:31 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18XWEk-0005fR-00 for emacs-devel@gnu.org; Sat, 11 Jan 2003 19:44:26 -0500 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id A53C17C012 for ; Sun, 12 Jan 2003 01:44:24 +0100 (CET) Original-To: emacs-devel@gnu.org Original-Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10677 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10677 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 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats. Reported by Berthold Gunreben . 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 http://www.cua.dk