[Users] Re: [CactusMaint] 32/64 bits type safety ?

Erik Schnetter schnetter at aei.mpg.de
Mon Sep 27 03:23:46 CDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 27 September 2004 09:35, you wrote:
> Dear Erik:
>
> your suggestion were realy helpful. I did the check (thanks to your
> program) and it comes out the all the integer size are consisten
> fortran INTEGER= C int = CTTK_INT = 4byte.  I indeed run the program
> using electric fence. The progra runs without electric fence. Using
> electric fence it KILLS due to a zero size malloc  in
> a sub call of "CCTKi_InitialiseCactus(&argc, &argv, &ConfigData);"
>
> At first sight it seems due to MoL. from AEIThorns/BSSN_MoL.
> A that seems very strange to me. This give you some insight ?
> Here there is the gdb output. I will try to run e-fence on intel
> platform.

I take the liberty of posting your problem to the Cactus users' mailing 
list.  This has the advantage that (a) other people can give advice as 
well, and (b) other people can find my answer on google, saving you the 
work of explaining all this to your coworkers.

Mallocing zero bytes is perfectly fine.  It is, however, sometimes 
unintended, and therefore efence warns about it.  You will have to set 
a certain environment variable to stop efence from stumbling about 
this, and then try again.

There is another tool similar to efence, called valgrind.  It is slower, 
but also much fiercer.  It works on IA32 architectures; I don't know 
whether it can handle your architecture.

- -erik

- -- 
Erik Schnetter <schnetter at aei.mpg.de>   http://www.aei.mpg.de/~eschnett/

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBV84em3uiSwno3f0RAnzuAJ9KMXXQ0L1908nVQ+DL4jbLL3kllQCgr18u
ced67n6PqBCE8FUdTFbEudg=
=nqMz
-----END PGP SIGNATURE-----





More information about the Users mailing list