Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* BUS error
@ 2002-09-19  8:22 Rolf Wester
  0 siblings, 0 replies; only message in thread
From: Rolf Wester @ 2002-09-19  8:22 UTC (permalink / 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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-19  8:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-19  8:22 BUS error Rolf Wester

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox