From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,7017c3e6b0a6ab41 X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,7017c3e6b0a6ab41 X-Google-Attributes: gidfee84,public From: dougd@dhome.iadfw.net (Doug Davis) Subject: Re: Strange COFF format verion encountered Date: 1998/09/06 Message-ID: <3B8CF867A761F6A6.26664BA25912FACA.7CAE9F5F6DDD871E@library-proxy.airnews.net>#1/1 X-Deja-AN: 388321982 References: <904831395.809885@duckhole.imec.be> X-Orig-Message-ID: <6st15l$739@library3.airnews.net> NNTP-Posting-Time: Sat Sep 5 22:56:37 1998 Organization: Internet America NNTP-Proxy-Relay: library3 Reply-To: dougd@mail.airmail.net Abuse-Reports-To: abuse at airmail.net to report improper postings Newsgroups: comp.unix.osf.osf1,comp.unix.programmer In article , Steve Rountree wrote: >> /s97_cgi.exe >> Unaligned access pid=22598 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.