* Strange COFF format verion encountered
@ 1998-09-03 4:00 Marc Elsen
1998-09-05 4:00 ` Steve Rountree
0 siblings, 1 reply; 4+ messages in thread
From: Marc Elsen @ 1998-09-03 4:00 UTC (permalink / raw)
I have an executable on Digital UNIX 4.0 which always
dumps core and results in an unaligned access
error message.
While this can happen (smile) , I am bothered
with the following :
% file s97_cgi.exe
s97_cgi.exe: COFF format alpha dynamically linked,
demand paged executable or object module stripped - version 3.11-2573
^^^^
I have never seen this version Digital UNIX 4.0 executables.
Even system programs only go to 3.11-10.
Could this be related to my problem ?
Can anyone shed some light on this version and what
it is about ?
By the way here's my message :
/s97_cgi.exe
Unaligned access pid=22598 <s97_cgi.exe> va=0x12000000079 pc=0x3ff80005d20
ra=0x3ff80005ce0 inst=0xa40b0010
Segmentation fault
Thanks a lot,
Marc.
--
'Love is truth without any future.
(M.E. 1997)
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Strange COFF format verion encountered
1998-09-03 4:00 Strange COFF format verion encountered Marc Elsen
@ 1998-09-05 4:00 ` Steve Rountree
1998-09-06 4:00 ` Doug Davis
0 siblings, 1 reply; 4+ messages in thread
From: Steve Rountree @ 1998-09-05 4:00 UTC (permalink / raw)
On 3 Sep 1998, Marc Elsen wrote:
> I have an executable on Digital UNIX 4.0 which always
> dumps core and results in an unaligned access
> error message.
-SNIP-
> By the way here's my message :
>
> /s97_cgi.exe
> Unaligned access pid=22598 <s97_cgi.exe> va=0x12000000079 pc=0x3ff80005d20
> ra=0x3ff80005ce0 inst=0xa40b0010
> Segmentation fault
I don't have an answer for you on your COFF version number strangeness but,
I have had problems in the past with with some programs that I have written for
DEC Unix 4.0x that produced similar error messages. The suggestion from our
Digital support was to compile with the -assume noaligned_objects. In most
cases this solved that error. Hope this helps.
Steve
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Strange COFF format verion encountered
1998-09-05 4:00 ` Steve Rountree
@ 1998-09-06 4:00 ` Doug Davis
1998-09-08 4:00 ` Bob Koehler
0 siblings, 1 reply; 4+ messages in thread
From: Doug Davis @ 1998-09-06 4:00 UTC (permalink / raw)
In article <Pine.OSF.3.96.980905205501.24185A-100000@olympus.office.aol.com>,
Steve Rountree <loki614@aol.net> wrote:
>> /s97_cgi.exe
>> Unaligned access pid=22598 <s97_cgi.exe> va=0x12000000079 pc=0x3ff80005d20
>> ra=0x3ff80005ce0 inst=0xa40b0010
>> Segmentation fault
>
> I don't have an answer for you on your COFF version number strangeness but,
>I have had problems in the past with with some programs that I have written for
>DEC Unix 4.0x that produced similar error messages. The suggestion from our
>Digital support was to compile with the -assume noaligned_objects. In most
>cases this solved that error. Hope this helps.
That will work, but it will make the code run way slow and possibly
obscure an actual coding error.. read on.....
Basically the alpha processor expects to do 64bit fetches all the
time. When a pointer references something which can't be easily
fetched with a single memory access the processor generates an
unaligned trap and doesn't do the fetch. The "noaligned_objects"
embeds code to go ahead and handle the alignment issue by invalidating
the data cache and fetching the required value across the misaligned
address(s).
Generally this is found when you reference a pointer into a structure
using a different type than the original reference. Example:
struct fiz {
char baz;
short bar;
short biz;
} foo;
main()
{
long *biz;
biz = (long *) &foo.bar;
*biz = 1;
}
Get a copy of the alpha processor manual, it goes into great detail
on this activity.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Strange COFF format verion encountered
1998-09-06 4:00 ` Doug Davis
@ 1998-09-08 4:00 ` Bob Koehler
0 siblings, 0 replies; 4+ messages in thread
From: Bob Koehler @ 1998-09-08 4:00 UTC (permalink / raw)
In article <3B8CF867A761F6A6.26664BA25912FACA.7CAE9F5F6DDD871E@library-proxy.airnews.net>, dougd@dhome.iadfw.net (Doug Davis) writes:
>In article <Pine.OSF.3.96.980905205501.24185A-100000@olympus.office.aol.com>,
>Basically the alpha processor expects to do 64bit fetches all the
>time.
All Alphas implement at least 64 bit and 32 bit aligned loads. Newer Alphas
implement 16 bit aligned loads and 8 bit loads (additions to the
architecture). Same for stores.
----------------------------------------------------------------------
Bob Koehler | Computer Sciences Corporation
Hubble Space Telescope Payload | Federal Sector, Civil Group
Flight Software Team | please remove ".aspm" when replying
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-09-08 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-03 4:00 Strange COFF format verion encountered Marc Elsen
1998-09-05 4:00 ` Steve Rountree
1998-09-06 4:00 ` Doug Davis
1998-09-08 4:00 ` Bob Koehler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox