From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,634f5dd99fd9ecf3 X-Google-Attributes: gid111c93,public From: lpa@netcom10.netcom.com (Pierre Asselin) Subject: Re: Unaligned trap Date: 1999/12/01 Message-ID: <824bou$c0e$1@nntp1.atl.mindspring.net>#1/1 X-Deja-AN: 555544942 References: <38453EE6.3553935A@kdc.no> Organization: MindSpring Enterprises Newsgroups: comp.os.linux.alpha Idar Tollefsen writes: >I keep getting messages like this: >[program name (PID)]: unaligned trap at [some address]: [some other address] >What is this? A memory problem? A HDD problem? The program tried to load or store a word from/to a memory address that is not a multiple of the word size. The hardware trapped, the OS kicked in and performed the memory access byte by byte on behalf of the program, logged the event in syslog, and marked the process as runnable again to resume after the trapped instruction. It's harmless, it just slows down the running program. This is more common on alphas because long integers must be aligned on 8-byte boundaries. Programs developed on x86's often assume that 4-byte alignment is enough. -- --Pierre Asselin, Westminster, Colorado lpa@netcom.com