* How to hide "Unaligned access" message ?
@ 1999-08-20 4:00 Ga�l Trinquart
1999-08-20 4:00 ` Hans Schwengeler
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Ga�l Trinquart @ 1999-08-20 4:00 UTC (permalink / raw)
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 ?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to hide "Unaligned access" message ?
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
2 siblings, 0 replies; 6+ messages in thread
From: Mark Gelinas @ 1999-08-20 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]
"Ga�l Trinquart" <gtrinquart@elan.fr> writes:
> 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 ?
>
A few ideas:
1) Update your code so it is 64-bit aligned. This includes pointers, long
integers, and doubles (long long).
2) Try compiling with the '-taso' flag; it forces the app to load in the
lower 31-bit addressable virtual address range. See the cc(1) man page
for details.
3) Silence it with the 'uac' command, as in
$ uac p noprint ; /run/the/unaligned/application -with options
See the uac(1) man page for other options.
MarkG
--
Mark Gelinas Compaq Computer Corporation
EMail: gelinas@zk3.dec.com 110 Spit Brook Road, ZKO3-3/V08
Phone: +1 (603) 884-1511 Nashua, NH 03062-2698 USA
Views expressed are my own, and not necessarily those of my employer.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to hide "Unaligned access" message ?
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
2 siblings, 0 replies; 6+ messages in thread
From: Hans Schwengeler @ 1999-08-20 4:00 UTC (permalink / raw)
In article <7pjedr$g12$1@jaydee.iway.fr>,
"Ga�l Trinquart" <gtrinquart@elan.fr> writes:
> 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 ?
>
>
From 'man uac':
uac - Unaligned Access Message Control
uac p noprint
Yours, Hans.
--
===============================================================================
Hans Schwengeler
Astronomical Institute INTERNET: schweng@astro.unibas.ch
University of Basel Hans.Schwengeler@unibas.ch
Venusstrasse 7
CH-4102 Binningen PHONE: +41 61 20 55 422
Switzerland FAX: +41 61 20 55 455
===============================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to hide "Unaligned access" message ?
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
1999-10-28 4:00 ` Shiv Agarwal
1999-10-28 4:00 ` Shiv Agarwal
2 siblings, 2 replies; 6+ messages in thread
From: Bob Harris @ 1999-08-27 4:00 UTC (permalink / raw)
To: Ga�l Trinquart
[[ 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to hide "Unaligned access" message ?
1999-08-27 4:00 ` Bob Harris
@ 1999-10-28 4:00 ` Shiv Agarwal
1999-10-28 4:00 ` Shiv Agarwal
1 sibling, 0 replies; 6+ messages in thread
From: Shiv Agarwal @ 1999-10-28 4:00 UTC (permalink / raw)
You can use the uac(1) (Unaligned Access Message Control) command to turn off
the messages.
Shiv
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to hide "Unaligned access" message ?
1999-08-27 4:00 ` Bob Harris
1999-10-28 4:00 ` Shiv Agarwal
@ 1999-10-28 4:00 ` Shiv Agarwal
1 sibling, 0 replies; 6+ messages in thread
From: Shiv Agarwal @ 1999-10-28 4:00 UTC (permalink / raw)
You can use the uac(1) (Unaligned Access Message Control) command to turn off
the messages.
Shiv
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-10-28 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1999-10-28 4:00 ` Shiv Agarwal
1999-10-28 4:00 ` Shiv Agarwal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox