* ?Unaligned access pid=8472 <netscape>
@ 1995-03-10 18:02 Rupert THURNER
1995-03-14 22:57 ` Andrew Gabriel
0 siblings, 1 reply; 5+ messages in thread
From: Rupert THURNER @ 1995-03-10 18:02 UTC (permalink / raw)
When starting netscape on an osf1 3x alpha we get on certain
displays the following error:
Unaligned access pid=8472 <netscape> va=140306c24 pc=120257fec ra=1202571d8 type=stq
continued a minute or so (with different pc) and then it starts up
normally. if you go to the news-directory, it does the same
thing again and from this point on you can work normally with it.
we are using mwm on ultrix 4.3 and on the console of the alpha.
i suppose this is a certain setting of mwm, but i'm not sure, and,
i have no idea where to search for this error.
The strange thing is, with the display on an ultrix 4.2 machine,
we dont get this error.
tx for replying also by mail.
rupert thurner.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ?Unaligned access pid=8472 <netscape>
1995-03-10 18:02 ?Unaligned access pid=8472 <netscape> Rupert THURNER
@ 1995-03-14 22:57 ` Andrew Gabriel
1995-03-16 21:15 ` Phil Knaack
1995-03-18 0:36 ` Matthew Bowen Harrington
0 siblings, 2 replies; 5+ messages in thread
From: Andrew Gabriel @ 1995-03-14 22:57 UTC (permalink / raw)
Cc: rupert
In article <3jq47h$1n1@osiris.wu-wien.ac.at>
rupert@ifi.uni-klu.ac.at "Rupert THURNER" writes:
> When starting netscape on an osf1 3x alpha we get on certain
> displays the following error:
>
> Unaligned access pid=8472 <netscape> va=140306c24 pc=120257fec ra=1202571d8
> type=stq
>
> continued a minute or so (with different pc) and then it starts up
> normally. if you go to the news-directory, it does the same
> thing again and from this point on you can work normally with it.
This is caused by the program attempting to access a store location
(va=140306c24) which is mis-aligned for its size (therefore size greater
than 4 bytes, which is the alignment). This is normally caused by
accessing a 64 bit pointer which has only been aligned on a 32 bit
boundary (which is all that would be required on a 32 bit machine).
As you say, amazingly programs with this problem still work. I assume
a trap occurs and the mis-aligned access is resolved by software, but
this is just a guess.
> i suppose this is a certain setting of mwm, but i'm not sure, and,
> i have no idea where to search for this error.
No, it's an incorrect/incompleted port of a piece of 32 bit software
to a 64 bit machine (probably). Use dbx and set a breakpoint at the
pc location to find where the problem is in the code. It's probably
something like dynamically allocating space for a structure containing
pointers, but only ensuring 32 bit alignment rather than 64 bit
required on the Alpha.
--
Andrew Gabriel Home: Andrew@cucumber.demon.co.uk
Consultant Software Engineer Work: Andrew.Gabriel@net-tel.co.uk
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ?Unaligned access pid=8472 <netscape>
1995-03-14 22:57 ` Andrew Gabriel
@ 1995-03-16 21:15 ` Phil Knaack
1995-03-17 16:45 ` Peter Schauer
1995-03-18 0:36 ` Matthew Bowen Harrington
1 sibling, 1 reply; 5+ messages in thread
From: Phil Knaack @ 1995-03-16 21:15 UTC (permalink / raw)
In <795221862snz@cucumber.demon.co.uk>
Andrew@cucumber.demon.co.uk (Andrew Gabriel) writes:
>As you say, amazingly programs with this problem still work. I assume
>a trap occurs and the mis-aligned access is resolved by software, but
>this is just a guess.
Actually, its the kernel doing the job. Mis-alignment generates a fault
that the kernel catches, and OSF's method of dealing with it is to fix
the alignment and print a warning.
You can turn off these warnings with the command `uac', Unaligned Access
message Control. Check your man pages.
>No, it's an incorrect/incompleted port of a piece of 32 bit software
>to a 64 bit machine (probably). Use dbx and set a breakpoint at the
>pc location to find where the problem is in the code. It's probably
>something like dynamically allocating space for a structure containing
>pointers, but only ensuring 32 bit alignment rather than 64 bit
>required on the Alpha.
I would agree that this is the case, either a pointer or a long int in a
structure somewhere.. though I doubt that dbx will be able to tell you
much as I don't believe netscape binaries are un-stripped ..
>--
>Andrew Gabriel Home: Andrew@cucumber.demon.co.uk
>Consultant Software Engineer Work: Andrew.Gabriel@net-tel.co.uk
Cheers,
Phil
--
Phil Knaack flipk@iastate.edu
Database Programmer, NCREMP Student Development Group flipk@cs.iastate.edu
Regional Extension Office Project Vincent, ISU flipk@vorpal.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ?Unaligned access pid=8472 <netscape>
1995-03-16 21:15 ` Phil Knaack
@ 1995-03-17 16:45 ` Peter Schauer
0 siblings, 0 replies; 5+ messages in thread
From: Peter Schauer @ 1995-03-17 16:45 UTC (permalink / raw)
flipk@iastate.edu (Phil Knaack) writes:
>I would agree that this is the case, either a pointer or a long int in a
>structure somewhere.. though I doubt that dbx will be able to tell you
>much as I don't believe netscape binaries are un-stripped ..
Then try gdb-4.14, it extracts the symbolic information from the dynamic
symbol table of a stripped executable, so you get symbols for all global
functions at least.
--
Peter Schauer pes@regent.e-technik.tu-muenchen.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ?Unaligned access pid=8472 <netscape>
1995-03-14 22:57 ` Andrew Gabriel
1995-03-16 21:15 ` Phil Knaack
@ 1995-03-18 0:36 ` Matthew Bowen Harrington
1 sibling, 0 replies; 5+ messages in thread
From: Matthew Bowen Harrington @ 1995-03-18 0:36 UTC (permalink / raw)
You can turn off this warning message with 'uac p 0'
I put this in a global .cshrc that is sourced by all users:
alias netscape 'uac p 0 ; /usr/local/bin/netscape'
Seems to work...
Matt
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1995-03-18 0:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-10 18:02 ?Unaligned access pid=8472 <netscape> Rupert THURNER
1995-03-14 22:57 ` Andrew Gabriel
1995-03-16 21:15 ` Phil Knaack
1995-03-17 16:45 ` Peter Schauer
1995-03-18 0:36 ` Matthew Bowen Harrington
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox