Skip to content

Valgrind Error Details

back to process details
back to processes overview
Executable/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
PID26196
PPID16382
Unique ID0xf9c
Text7,392 bytes in 2 blocks are still reachable in loss record 3,995 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateDistanceFunctionStruct
   fun:PXDistanceFunctionInitSurfGrid
   fun:PXInitializeDistanceFunctionStructAndKDTree
   fun:PXInitializeGrid
   fun:PXInitializeAdaptIter
   fun:main
}

Stacktrace

Object/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
Functionmalloc
File/Line
CodeSource code not available

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXAllocate
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Fundamentals/PXMemory.c:99
Code
089 
090 
091   tot = n*size;
092   
093   if (likely(tot)){
094     if (unlikely(n<0)){
095       printf("Error, requesting allocation of negative memory size.\n"); fflush(stdout);
096       *po = NULL;
097       return PXError(PX_MEMORY_ERROR);
098     }
099     else if unlikely(( _po = (char *)malloc(tot)) == NULL) ){
100       *po = NULL;
101       return PXError(PX_MEMORY_ERROR);
102     }
103   }
104   *po = (void *_po;

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCreateDistanceFunctionStruct
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXDistanceFunction.c:294
Code
0284   DistanceFunction->maxNewtonSearchDistance = -1.0;
0285   DistanceFunction->calcWallDistFaces = 1;
0286 
0287   /****************************************************************************************/
0288   /*                          Set up pointers to store distances                          */
0289   /****************************************************************************************/
0290   DistanceFunction->ElementDistance=NULL;
0291   PXErrorReturnPXAllocatenegrp+nghostegrp, sizeof(*DistanceFunction->ElementDistance )(void **)&(DistanceFunction->ElementDistance) ) );
0292   for (egrp=0; egrp<negrp+nghostegrp; egrp++){
0293     DistanceFunction->ElementDistance[egrp= NULL;
0294     PXErrorReturnPXAllocatepg->ElementGroup[egrp].nElement, sizeof(**DistanceFunction->ElementDistance)(void **)&(DistanceFunction->ElementDistance[egrp]) ) );
0295     for (elem=0; elem<pg->ElementGroup[egrp].nElement; elem++){
0296       DistanceFunction->ElementDistance[egrp][elem].distance = NULL;
0297       DistanceFunction->ElementDistance[egrp][elem].nPoints = -1;
0298       DistanceFunction->ElementDistance[egrp][elem].quadOrder = -3;
0299     }

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXDistanceFunctionInitSurfGrid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXDistanceFunctionSurfGrid.c:968
Code
0958   /*cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc*/
0959 
0960   /* check to make sure distance function doesn't exist yet */
0961   if (pg->DistanceFunction!=NULL){
0962     printf("WARNING: Your distance function structure already existed\n");
0963     printf("         We will be destroying it and creating a new one\n");
0964     PXErrorReturnPXDestroyDistanceFunctionStruct(pg) );
0965   }
0966 
0967   /* create distance function */
0968   PXErrorReturnPXCreateDistanceFunctionStruct(pg, pg_surf) );
0969   DistanceFunction = pg->DistanceFunction;
0970 
0971   tree       = DistanceFunction->tree;
0972   nodeToFace = DistanceFunction->nodeToFace;
0973 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitializeDistanceFunctionStructAndKDTree
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXDistanceFunctionSurfGrid.c:1242
Code
1232 PXInitializeDistanceFunctionStructAndKDTree(PX_Grid *pg, PX_REAL MaxNewtonSearchDistance, enum PXE_Boolean calcWallDist, enum PXE_Boolean calcWallDistFaces)
1233 {
1234 
1235   if(calcWallDist == PXE_True){
1236     /* Set up support structures for evaluation of the wall DistanceFunction */
1237     PXPrintf("Building KD-Tree for Distance Function...\n");
1238 
1239     if(pg->SolidWallGrid == NULL)
1240       PXErrorReturnPXDistanceFunctionInit(pg, MaxNewtonSearchDistance, 2));
1241     else
1242       PXErrorReturnPXDistanceFunctionInitSurfGrid(pg, pg->SolidWallGrid, MaxNewtonSearchDistance, 2));
1243     printf("MaxNewtonSearchDistance %f\n",MaxNewtonSearchDistance);
1244     pg->DistanceFunction->calcWallDistFaces = (charcalcWallDistFaces;
1245   }
1246 
1247   return PX_NO_ERROR;

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitializeGrid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXInit.c:1748
Code
1738       pg->SolidWallGrid != NULL){
1739     /* get max newton search distance */
1740     enum PXE_Boolean dummyFlag = PXE_False;
1741     //init wallflag on the parallelized grid.  Lack of solid walls
1742     //on the parallel grid is irrelevant b/c there could be solid walls,
1743     //but just this portion of the grid has none.
1744     PXErrorReturnPXInitializeWallFlag(pxa, &dummyFlag) );
1745     PXErrorReturnPXGetKeyValueRealpxa->Parameter, "MaxNewtonSearchDistance",
1746                                       &MaxNewtonSearchDistance ) );
1747 
1748     PXErrorReturnPXInitializeDistanceFunctionStructAndKDTreepxa->pg,
1749                                                                 MaxNewtonSearchDistance,
1750                                                                 pxa->EqnSetEntryStruct->SourceCalcWallDist,
1751                                                                 calcWallDistFaces) );
1752   }
1753 #ifdef PX_TIMING

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitializeAdaptIter
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXInit.c:1932
Code
1922   memsetvalues, '\0', PX_MAXSTRLEN );
1923 
1924   /* Initialize the unsteady structure (marked for change) */
1925   PXErrorReturnPXInitializeUnsteadypxa ) );
1926   UnsteadyStruct = pxa->UnsteadyStruct;
1927 
1928   /* Carry out special initialization for the first adaptation iteration */
1929   if aiter == ) {
1930 
1931     /* Initialize grid for all processes (including parallelizing) */
1932     PXErrorReturnPXInitializeGridpxa ) );
1933     pg = pxa->pg;
1934 
1935     /* Get Restart flag */
1936     PXErrorReturnPXGetKeyValueBool(pxa->Parameter, "Restart", &Restart) );
1937 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
Functionmain
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXRunSolver.c:989
Code
0979 
0980   /* Outermost adaptation loop */
0981   for aiter = ; aiter <= AdaptIter ; aiter++) {
0982 
0983 #ifdef PX_TIMING
0984     PXBarrier();
0985     c1=PXclock();
0986 #endif
0987 
0988     /* Initialize for adaptation iteration     */
0989     PXErrorReturnPXInitializeAdaptIterpxa, aiter ) );
0990     //pg = pxa->pg;
0991 
0992 #ifdef PX_TIMING
0993     PXBarrier();
0994     c2=PXclock();