From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,62d7a88c4713f647 X-Google-Attributes: gid111c93,public From: Alex Rhomberg Subject: Re: Newbie Question? Date: 1999/10/20 Message-ID: <380D9D25.F7BE0018@ife.ee.ethz.ch>#1/1 X-Deja-AN: 538367398 Content-Transfer-Encoding: 7bit References: <380CD72A.382768CE@atp.nl.nospam> Content-Type: text/plain; charset=us-ascii X-Trace: 20 Oct 1999 12:44:53 +0100, beethoven.ee.ethz.ch Organization: Electronics Lab, ETH Zurich, Switzerland MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha Alexander Verhaar wrote: > > Maybe this is a typical newbie question, but I never saw/notice the > following question. > > What precisely is an "Unalligned error"? > I'm normally only programming on the x86 platform, and > just begun to program on my Alpha. It means that data is not at the proper places in memory The Alpha is a 64 bit machine and therefore expects it's data to be properly stored in memory. It is unaligned is (address of data) mod sizeof(type) != 0 where sizeof(type) is 1,2,4 or 8 With glibc 2.1, timespec contains 64 bit values, when before it had 32 bit values. This made ping generate 'unaligned traps' because the values were not at a 8 byte boundary - Alex