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 ID0xfd8
Text98,304 bytes in 768 blocks are still reachable in loss record 4,055 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXInsertIter
   fun:PXKDInsert
   fun:PXInsertMaxQuadIntoTree
   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
FunctionPXInsertIter
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Fundamentals/PXKDTree.c:363
Code
0353      from curNode->left OR curNode->right (i.e. a leaf node).  Thus
0354      the search is complete.
0355 
0356      KEY IDEA: nextNode points to the ADDRESS of the location where the
0357      new node should be inserted!
0358 
0359      Now, insert the input *pos and *data in the place pointed to by
0360      nextNode. */
0361 
0362   /* curNode is now the node to be inserted */
0363   PXErrorReturnPXAllocatesizeof(KDNode)1(void **)&(newNode) ) );
0364 
0365   /*copy the point from the input--do not allow pointer chains */
0366   newNode->data = data;
0367   newNode->dir  = (curDir + 1% dim;
0368   newNode->left = newNode->right = NULL;

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXKDInsert
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Fundamentals/PXKDTree.c:393
Code
0383   *nextNode = newNode; /* put newNode into its position as determined by
0384                           the search. */
0385   return PX_NO_ERROR;
0386 
0387 }
0388 
0389 /******************************************************************/
0390 int PXKDInsert(KDTree *tree, PX_REAL const *pos, void *data)
0391 {
0392   /*Wrapper for InsertIter */
0393   return PXInsertIter(tree, pos, data);
0394 }
0395 
0396 
0397 /******************************************************************/
0398 int PXKDTreeStatistics(KDTree const *tree){

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInsertMaxQuadIntoTree
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXDistanceFunctionSurfGrid.c:308
Code
0298   for k = 0; k < totQuad; k++Numbers[k= k;
0299   lastIndex = totQuad;
0300   for k = 0; k < totQuad; k++) {
0301     /* Get randomIndex */
0302     randomIndex = RandomSelect(Numbers,lastIndex);
0303     lastIndex -= 1;
0304 
0305     nodeData = nodeDataAll + randomIndex;
0306 
0307     /* Add node to tree */
0308     PXErrorReturn(PXKDInsert(tree, xglobAll + randomIndex*Dim, nodeData) );
0309   }
0310 
0311   PXReleasexquad );
0312   PXReleaseNumbers );
0313   PXReleasexglobAll );

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:977
Code
0967   /* create distance function */
0968   PXErrorReturnPXCreateDistanceFunctionStruct(pg, pg_surf) );
0969   DistanceFunction = pg->DistanceFunction;
0970 
0971   tree       = DistanceFunction->tree;
0972   nodeToFace = DistanceFunction->nodeToFace;
0973 
0974   DistanceFunction->maxNewtonSearchDistance = MaxNewtonSearchDistance;
0975 
0976   //PXErrorReturn(PXKDSetDataDestructor(tree, &free));
0977   PXErrorReturn(PXInsertMaxQuadIntoTreepg_surf, -1, &tree ));
0978 
0979   /* int KDInsert(KDTree *tree, double *pos, void *data); */
0980   for(egrp = 0; egrp<pg_surf->nElementGroup; egrp++){
0981     /* Get type info */
0982     //type = pg_surf->ElementGroup[egrp].type;

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();