From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,8aa51189d42a66a4,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-11-08 05:02:12 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usenet.ins.cwru.edu!news.ecn.bgu.edu!psuvax1!rutgers!flop.ENGR.ORST.EDU!research.CS.ORST.EDU!jacobj From: jacobj@research.CS.ORST.EDU (Joseph Jacob) Newsgroups: comp.sys.dec Subject: HELP!! : Unaligned access error on DEC Alpha, $OS == osf1 Message-ID: <2blfa2INN4sq@flop.ENGR.ORST.EDU> Date: 8 Nov 93 12:50:10 GMT Organization: Computer Science Department, Oregon State University NNTP-Posting-Host: sycamore.cs.orst.edu Hi, We are trying to port the Charm programming environment to the DEC Alphas. We ported Charm to HPs and RS6000s with success. But, on the DEC Alpa machine, running OSF ,we have here we get Unaligned access pid=4493 va=14008c01c pc=1200068e8 ra=1200068d8 type=stq when we try to run the program. we found that it is coming at the following lines of code temp = (struct NODE *)( mem_space+1); temp->next= (struct NODE *)NULL ; temp->left = (struct NODE *)NULL ; temp->right = (struct NODE *)NULL ; temp->parent = (struct NODE *)NULL ; where temp is defined as struct NODE *temp; struct NODE { struct NODE *next ; struct NODE *left ; struct NODE *right ; struct NODE *parent ; } ; mem_space is defined as int *mem_space ; all the variables used above are local to the function in which they are used. the last four lines give rise to issual of unaligned access message by the operating system [ On the DEC Alphas]. These run just fine on other machines CHARM has been ported to !!. The compiler which we used to compile the program is the C compiler provided by DEC. Please reply as soon as possible. thank you, Joseph Jacob