From: Rolf Wester <wester@ilt.fhg.de>
Subject: BUS error
Date: Thu, 19 Sep 2002 10:22:34 +0200 [thread overview]
Message-ID: <3D89894A.5D89134B@ilt.fhg.de> (raw)
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
reply other threads:[~2002-09-19 8:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox