[Developers] memory error in src/main/Parameter.c'sGetBaseName()

Erik Schnetter schnetter at cct.lsu.edu
Thu Feb 28 15:28:03 CST 2008


It is likely that some part of your code accesses an invalid pointer  
or accesses an array with an invalid index.  This part can be  
anywhere.  I was asking about mvapich because I am just trying to  
track down a problem that may be caused by this MPI library.  I  
haven't come across the error that you report, so I'm afraid I can't  
help further.

-erik

On Feb 28, 2008, at 15:20:11, Rideout, David P wrote:

> No, hp-mpi:
>
> drideout at bl125 ~/Cactus$ make causetsd_amd-configinfo
> ________________________________________________________________________
> Displaying configuration information
> # CONFIGURATION  : causetsd_amd
> # CONFIG-DATE    : Thu Feb 28 15:22:55 2008 (GMT)
> # CONFIG-HOST    : bl125
> # CONFIG-STATUS  : 0
> # CONFIG-OPTIONS :
> CC=pathcc
> CXX=pathCC
> CXX_OPTIMISE_FLAGS=-O3 -OPT:Ofast -fno-math-errno - 
> TENV:simd_zmask=OFF -TENV:simd_imask=OFF -TENV:simd_omask=OFF
> C_OPTIMISE_FLAGS=-O3 -OPT:Ofast -fno-math-errno -TENV:simd_zmask=OFF  
> -TENV:simd_imask=OFF -TENV:simd_omask=OFF
> C_WARN_FLAGS=-Wall
> DEBUG=yes
> MPI=CUSTOM
> MPI_INC_DIRS=/opt/hpmpi/include
> MPI_LIBS=mpi
> MPI_LIB_DIRS=/opt/hpmpi/lib/linux_amd64
> OPTIMISE=no
>
>
>
> -----Original Message-----
> From: developers-bounces at cactuscode.org on behalf of Erik Schnetter
> Sent: Thu 28/02/2008 9:38 PM
> To: developers at cactuscode.org
> Subject: Re: [Developers] memory error in src/main/ 
> Parameter.c'sGetBaseName()
>
> On Feb 28, 2008, at 14:35:17, David Rideout wrote:
>
>> Hi,
>>
>> I have a code which runs fine in serial, but seg faults while freeing
>> grid arrays when run in parallel.  When I run it with memory checking
>> in ddt, it shows an error at the malloc() call in GetBaseName()
>> (src/main/Parameters.c line 2374):
>>
>> Processes 0-1:
>> Memory error detected: "a previous write overwrote the reserved  
>> memory
>> after the end of a memory allocation"
>>
>> This call to GetBaseName() arises from a call to CCTK_ParameterData()
>> during BASEGRID, to get the size of an array parameter.
>>
>> Any ideas??
>
>
> Are you using mvapich?
>
> -erik
>
> -- 
> Erik Schnetter <schnetter at cct.lsu.edu>   http://www.cct.lsu.edu/~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.
>
>
>
>
>
> <winmail.dat>_______________________________________________
> Developers mailing list
> Developers at cactuscode.org
> http://www.cactuscode.org/mailman/listinfo/developers


-- 
Erik Schnetter <schnetter at cct.lsu.edu>   http://www.cct.lsu.edu/~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.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://www.cactuscode.org/pipermail/developers/attachments/20080228/58206efd/attachment.bin 


More information about the Developers mailing list