[Developers] (compiler) bug while using AEIDevelopment/TmunuBase
Luca Baiotti
baiotti at aei.mpg.de
Wed Oct 4 10:19:03 CDT 2006
Hi,
after compiling a configuration including AEIDevelopment/TmunuBase with
pgf77 6.1-5 64-bit target on x86-64 Linux
or with
pgf77 5.2-2
on two different machines and by running with the attached simple
parfile (which does not activate the thorn Tmunu), I get a segmentation
fault in CactusEinstein/ADMConstraints/src/ADMConstraints.F at the line
which says:
#include "CalcTmunu.inc"
When expanded by the preprocessor, this part of the source file reads:
c Include macro for stress energy tensor.
if (CCTK_IsThornActive("TmunuBase").eq.1) then
if (stress_energy_2_state .ne. 0) then
Ttt = Ttt + T2munu_tt(i,j,k)
Ttx = Ttx + T2munu_tx(i,j,k)
Tty = Tty + T2munu_ty(i,j,k)
Ttz = Ttz + T2munu_tz(i,j,k)
Txx = Txx + T2munu_xx(i,j,k)
Txy = Txy + T2munu_xy(i,j,k)
Txz = Txz + T2munu_xz(i,j,k)
Tyy = Tyy + T2munu_yy(i,j,k)
Tyz = Tyz + T2munu_yz(i,j,k)
Tzz = Tzz + T2munu_zz(i,j,k)
end if
end if
and so should be harmless. Instead the segmantation fault is caused by
something in the inner if-statement: if I remove its content, the
segmantation fault disppears.
I I turn off optimization. the segmentation fault also disappears.
This problem is easily reproduced by running the attached parfile.
Is this a compiler bug or what?
Ciao,
Luca.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Tmunu.par
Url: http://www.cactuscode.org/pipermail/developers/attachments/20061004/dd00c9e2/attachment.pl
More information about the Developers
mailing list