From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 28997 invoked from network); 21 May 2000 19:14:12 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 21 May 2000 19:14:12 -0000 Received: from tarwebok ([216.208.98.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA01333 for ; Sun, 21 May 2000 15:14:12 -0400 Received: from dhd by tarwebok with local (Exim 3.12 #1 (Debian)) id 12tb8h-0007Jr-00 for ; Sun, 21 May 2000 15:11:51 -0400 To: axp-list@redhat.com Subject: Re: Fixing "unaligned trap" errors References: <200005201741.LAA13710@ellpspace.math.ualberta.ca> From: David Huggins-Daines Organization: Linuxcare, Inc. Date: 21 May 2000 15:11:51 -0400 In-Reply-To: Michal Jaegermann's message of "Sat, 20 May 2000 11:41:42 -0600 (MDT)" Message-ID: <87n1ljyayw.fsf@linuxcare.com> User-Agent: Gnus/5.0806 (Gnus v5.8.6) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Michal Jaegermann writes: > From: "Christian Groessler" > 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.