From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,865af1c327c4393f,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-09-19 01:22:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news.rwth-aachen.de!not-for-mail From: Rolf Wester Newsgroups: comp.unix.tru64 Subject: BUS error Date: Thu, 19 Sep 2002 10:22:34 +0200 Organization: Aachen University of Technology (RWTH) Message-ID: <3D89894A.5D89134B@ilt.fhg.de> NNTP-Posting-Host: dhcp-192-102-148-123.ilt.fhg.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: nets3.rz.RWTH-Aachen.DE 1032423756 13134 192.102.148.123 (19 Sep 2002 08:22:36 GMT) X-Complaints-To: abuse@rwth-aachen.de NNTP-Posting-Date: 19 Sep 2002 08:22:36 GMT X-Mailer: Mozilla 4.78 [de]C-CCK-MCD DT (WinNT; U) X-Accept-Language: de Xref: archiver1.google.com comp.unix.tru64:8681 Hi, I'm running a C++ application under tru64 and after a while I get a bus error. Running the app in ladebug I get: Thread received signal BUS stopped at [virtual void PropagatorXYFFT::transformE(Field*, Field*, int):1044 0x1201524b4] 1044 Hr = MFc[i][j].re * MHc[i][j].re The code line where this error occurs has been executed many times before the error actually happens. The code is: 1040 for(i=0; i < NFx; i++) 1041 { 1042 for(j=0; j < NFy; j++) 1043 { > 1044 Hr = MFc[i][j].re * MHc[i][j].re 1045 - MFc[i][j].im * MHc[i][j].im; 1046 Hi = MFc[i][j].im * MHc[i][j].re 1047 + MFc[i][j].re * MHc[i][j].im; 1048 MFc[i][j].re = Hr; 1049 MFc[i][j].im = Hi; 1050 } 1051 } Surprisingly I get the following: (ladebug) print MHc[i][230] Evaluating 'MHc[i][230]' failed! The value (0x15acf71a0) does not have a element index '230'! Error: no value for MHc[i][230] but: (ladebug) print MHc[i][1000] struct _DECCXX_generated_name_f5e85b16 { re = 1.006161911352266; im = -0.1157435148053357; Can anybody tell me what is wrong here and how I can avoid the bus error? Thanks in adcance. Regards Rolf