Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Bob Harris <harris@zk3.dec.com>
To: "Ga�l Trinquart" <gtrinquart@elan.fr>
Subject: Re: How to hide "Unaligned access" message ?
Date: 1999/08/27	[thread overview]
Message-ID: <270819991041320565%harris@zk3.dec.com> (raw)
In-Reply-To: 7pjedr$g12$1@jaydee.iway.fr

[[ 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
<gtrinquart@elan.fr> 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 <syntz> 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.



  parent reply	other threads:[~1999-08-27  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-20  4:00 How to hide "Unaligned access" message ? Ga�l Trinquart
1999-08-20  4:00 ` Hans Schwengeler
1999-08-20  4:00 ` Mark Gelinas
1999-08-27  4:00 ` Bob Harris [this message]
1999-10-28  4:00   ` Shiv Agarwal
1999-10-28  4:00   ` Shiv Agarwal
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