From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: alignment problem allocating pure_float Date: Fri, 10 Jan 2003 16:25:17 +0100 Organization: http://freemail.web.de/ Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200301101525.h0AFPHO24926@mailgate5.cinetic.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1042212727 3658 80.91.224.249 (10 Jan 2003 15:32:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 10 Jan 2003 15:32:07 +0000 (UTC) Cc: b.gunreben@web.de Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18X18f-0000wl-00 for ; Fri, 10 Jan 2003 16:32:05 +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 18X19d-0000hW-08 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 10 Jan 2003 10:33:05 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18X18v-0008UL-00 for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2003 10:32:21 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18X16R-00078l-00 for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2003 10:29:48 -0500 Original-Received: from mailgate5.cinetic.de ([217.72.192.165]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18X127-0005NA-00 for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2003 10:25:19 -0500 Original-Received: from web.de (fmomail02.dlan.cinetic.de [172.20.1.46]) SMTP id h0AFPHO24926; Fri, 10 Jan 2003 16:25:17 +0100 Original-To: bug-gnu-emacs@gnu.org Precedence: fm-user X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4177 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4177 Hi, when comiling emacs on hppa-linux-gnu, I had the following error: > LC_ALL=C ./temacs -batch -l loadup dump ... Loading term/tty-colors... make[1]: *** [emacs] Bus error I found, that there is a problem in src/alloc.c, where pure_bytes_used becomes aligned for pure_floats, but PUREBEG is only int alinged. So the resulting adress after aligning pure_bytes_used to pure_float is still int aligned. The emacs version I used is 21.2. I could fix this problem with the following diff: # cat alloc_pure_float.patch --- src/alloc.c 2003/01/02 16:39:01 1.1 +++ src/alloc.c 2003/01/02 16:41:01 @@ -3802,7 +3802,7 @@ #else alignment = sizeof (struct Lisp_Float); #endif - pure_bytes_used = ALIGN (pure_bytes_used, alignment); + pure_bytes_used = (ALIGN (pure_bytes_used + (long) PUREBEG, alignment)) - (long) PUREBEG; } nbytes = ALIGN (size, sizeof (EMACS_INT)); Please fix possible wrong linebreaks before applying. I can also send this patch as attachement if needed. Berthold ______________________________________________________________________________ Bequemer und billiger - SMS mit FreeMail verschicken! Mehr Information unter: http://freemail.web.de/features/?mc=021147