From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,75a700340f130a4f X-Google-Attributes: gidfee84,public From: Bob Harris Subject: Re: How to hide "Unaligned access" message ? Date: 1999/08/27 Message-ID: <270819991041320565%harris@zk3.dec.com>#1/1 X-Deja-AN: 518052635 Content-Transfer-Encoding: 8bit References: <7pjedr$g12$1@jaydee.iway.fr> To: "Ga�l Trinquart" Posted-And-Mailed: yes Content-Type: text/plain; charset=ISO-8859-1 Organization: Digital Equipment Corporation, Palo Alto, CA, USA Mime-Version: 1.0 User-Agent: YA-NewsWatcher/4.2.3 Newsgroups: comp.unix.osf.osf1 [[ This message was both posted and mailed: see the "To," "Cc," and "Newsgroups" headers for details. ]] In article <7pjedr$g12$1@jaydee.iway.fr>, Ga�l Trinquart wrote: >I try to align 32-bit data (my system is 64-bit). The 32-bit alignement is >properly done but the system outputs a runtime message "Unaligned access >pid=8307 va=1401b5294 pc=120071e8c ra=120071e24 type=stq". > >I tried to close stdout and stderr but the message does not disappear. Any >idea ? As others have pointed out, you can turn off the unaligned reporting. But while you have aligned your data for 32 bits, the operation that is giving an error is attempting to store 64 bits (type=stq) at a 32 bit aligned address (va=1401b5294). 64 bit stores need to be 64 bit aligned. You should be able to use dbx to find out where the instruction is in your source code. % dbx your_program_causing_unaligned_access (dbx) 0x120071e8c/i This should tell you the name of the function and the line number in the source file where this unaligned access is coming from. good luck.