Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: David Huggins-Daines <dhd@linuxcare.com>
To: axp-list@redhat.com
Subject: Re: Fixing "unaligned trap" errors
Date: 21 May 2000 15:11:51 -0400	[thread overview]
Message-ID: <87n1ljyayw.fsf@linuxcare.com> (raw)
In-Reply-To: Michal Jaegermann's message of "Sat, 20 May 2000 11:41:42 -0600 (MDT)"

Michal Jaegermann <michal@ellpspace.math.ualberta.ca> writes:

>  From: "Christian Groessler" <cpg@aladdin.de>
>  To: axp-list@redhat.com
>  Date: Thu, 19 Aug 1999 10:52:55 +0100
>  Subject: Re: Unaligned traps et al
> 
> 
>  The following program creates a subshell and all programs
>  started from therein will SIGBUS on unaligned accesses.

Wow nifty!  I have been debugging these problems the hard way
(i.e. with objdump and/or gdb).

> > /* sizeof(struct foo) == 12 */
>             ^^^^^^^^^^^^^^^
>             Don't bet on it!!!

Oops!  Yeah.  It just happens to be so on Linux/Alpha with gcc.

> Last, but not least, I encountered cases when "unaligned accesses"
> were side-effects of real bugs.  For example, trying to store
> long in a space which was allocated for int, or an attempt to

Yup, there has been just such a bug in Emacs on all GNU/Linux
platforms (see http://bugs.debian.org/63993) for a long time now
(since at least ncurses-4.2), but it only showed up on Alpha due to
the unaligned trap messages.

Cheers

-- 
David Huggins-Daines, Senior GNU/Linux Consultant, Linuxcare, Inc.
613.562.1239 desk, 613.223.0225 mobile
dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.


  reply	other threads:[~2000-05-21 19:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-16 12:13 Fixing "unaligned trap" errors David Rysdam
2000-05-19 17:51 ` David Huggins-Daines
2000-05-20 17:41   ` Michal Jaegermann
2000-05-21 19:11     ` David Huggins-Daines [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-05-19 15:43 William H. Magill
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox