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 ID0xf70
Text3,072 bytes in 256 blocks are still reachable in loss record 3,951 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   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
FunctionPXDistanceFunctionInitSurfGrid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXDistanceFunctionSurfGrid.c:1002
Code
0992 
0993       /* loop over coordinates of all nodes on this face */
0994       for(lnode=0; lnode<nVertexNodes; lnode++){
0995   if(nodeToFace[BNode[lnode]] == NULL){
0996     /* this node has not been visited yet.  allocate a linked list for it */
0997     nodeToFace[BNode[lnode]] = PXLListCreate(0, &ierr);
0998     PXErrorReturnierr );
0999     PXLListDataDestructornodeToFace[BNode[lnode]], &free);
1000   }
1001   vertexNodeData = NULL;
1002   PXErrorReturnPXAllocate1, sizeof(PX_LocalSurfNode)(void **)&(vertexNodeData) ) );
1003 
1004   vertexNodeData->egrp = egrp;
1005   vertexNodeData->elem = elem;
1006   vertexNodeData->LocalNodeNum = vertexNodeNum[lnode];
1007 

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