all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <b.gunreben@web.de>
Cc: b.gunreben@web.de
Subject: alignment problem allocating pure_float
Date: Fri, 10 Jan 2003 16:25:17 +0100	[thread overview]
Message-ID: <200301101525.h0AFPHO24926@mailgate5.cinetic.de> (raw)

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

             reply	other threads:[~2003-01-10 15:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-10 15:25 b.gunreben [this message]
2003-01-12 11:54 ` alignment problem allocating pure_float Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200301101525.h0AFPHO24926@mailgate5.cinetic.de \
    --to=b.gunreben@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.