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 ID0xfdd
Text170,016 bytes in 462 blocks are still reachable in loss record 4,060 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXReAllocate
   fun:ComputeDistanceFunctionElementSurfGrid
   fun:PXPrecalculateDistanceFunctionElementSurfGrid
   fun:PXUpdateDistanceFunctionStruct
   fun:PXUpdateDistanceFunctionStructWrapper
   fun:PXPSequencing
   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
FunctionPXReAllocate
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Fundamentals/PXMemory.c:316
Code
306   
307   _repo = (char *) (*repo);
308 
309   if (unlikely(n<0)){
310     printf("Error, requesting allocation of negative memory size.\n"); fflush(stdout);
311     *repo = NULL;
312     return PXError(PX_MEMORY_ERROR);
313   }
314 
315   if _repo == NULL ){
316     PXErrorReturnPXAllocate(n,size,(void **repo) );
317     return PX_NO_ERROR;
318   }
319   else{
320     tot = n*size;
321     if tot == ){

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionComputeDistanceFunctionElementSurfGrid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXDistanceFunctionSurfGrid.c:1067
Code
1057       DistanceFunction->ElementDistance[egrp][elem].quadOrder = ElementQuadOrder;
1058   }
1059 
1060   if(updateFlag != 0){
1061     /* get quadrature points on the element */
1062     PXErrorReturnPXQuadElem(pg, egrp, elem, ElementQuadOrder, &nquad, NULL, &xref, NULL) );
1063 
1064     /* set nquad point and allocate memory for distance function */
1065     DistanceFunction->ElementDistance[egrp][elem].nPoints = nquad;
1066     DistanceFunction->ElementDistance[egrp][elem].quadOrder = ElementQuadOrder;
1067     PXErrorReturnPXReAllocate(nquad, sizeof(PX_REAL)(void **)&(DistanceFunction->ElementDistance[egrp][elem].distance)) );
1068 
1069     /* interpolate the distance function */
1070     for (iquad=0; iquad<nquad; iquad++){
1071       PXErrorReturnPXInterpolateDistanceFcnSurfGrid(pg, pg_surf, egrp, elem, MaxNewtonSearchDistance, xref+Dim*iquad, &dist) );
1072       DistanceFunction->ElementDistance[egrp][elem].distance[iquad= dist;

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXPrecalculateDistanceFunctionElementSurfGrid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXDistanceFunctionSurfGrid.c:1106
Code
1096 
1097   negrp = pg->nElementGroup;
1098   if (PXGridIsParallelpg, NULL|| (pg->SubGridFlag) ){
1099     negrp *= 2;
1100   }
1101 
1102   /* loop over the elements and compute distance functions */
1103   for(egrp = 0; egrp<negrp; egrp++){
1104     quad_order = quadOrderEgrp[egrp];
1105     for (elem=0; elem<pg->ElementGroup[egrp].nElement; elem++){
1106       PXErrorReturnComputeDistanceFunctionElementSurfGrid(pg, pg_surf, egrp, elem, MaxNewtonSearchDistance, quad_order) );
1107     }
1108   }
1109 
1110   return PX_NO_ERROR;
1111 }

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXUpdateDistanceFunctionStruct
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXDistanceFunctionSurfGrid.c:1271
Code
1261     else
1262       PXErrorReturnPXPrecalculateDistanceFunctionFaceSurfGrid(pg, pg->SolidWallGrid, pg->DistanceFunction->maxNewtonSearchDistance, quadOrderFace) );
1263     PXPrintf("Done.\n");
1264   }
1265 
1266   PXPrintf("Computing Element Distances...\n"); fflush(stdout);
1267 
1268   if(pg->SolidWallGrid == NULL)
1269     PXErrorReturnPXPrecalculateDistanceFunctionElement(pg, pg->DistanceFunction->maxNewtonSearchDistance, quadOrderEgrp) );
1270   else
1271     PXErrorReturnPXPrecalculateDistanceFunctionElementSurfGrid(pg, pg->SolidWallGrid, pg->DistanceFunction->maxNewtonSearchDistance, quadOrderEgrp) );
1272 
1273   PXPrintf("Done.\n");
1274 
1275   return PX_NO_ERROR;
1276 }

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXUpdateDistanceFunctionStructWrapper
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXResState.c:1386
Code
1376   if(parallelFlag == && pg->SolidWallGrid == NULL)
1377     return PX_CODE_FLOW_ERROR;
1378 
1379   if(State == NULL){
1380     /* Try to find and use State_0 */
1381     PXErrorReturn(PXAttachSearch(pg,"State_0",NULL,(void**)&State));
1382   }
1383 
1384   PXErrorReturn(PXQuadOrderAllElemFace(pxa, State->order, (int)pg->DistanceFunction->calcWallDistFaces, &quadOrderEgrp, &quadOrderFace));
1385 
1386   PXErrorReturn(PXUpdateDistanceFunctionStruct(pg, quadOrderEgrp, quadOrderFace));
1387 
1388   /* release memory */
1389   if(pg->DistanceFunction->calcWallDistFaces == 1){
1390     nFgrp = pg->nFaceGroup;
1391     if (parallelFlag == || (pg->SubGridFlag) ){

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXPSequencing
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXRunSolver.c:670
Code
0660     /* Change all state orders */
0661     /* HP adaptation is currently disabled... */
0662 //    if (AdaptSpace != PXE_AdaptSpace_HP) {
0663       PXErrorReturnPXChangeAllStateOrders(pg, iSolOrder, BasisType) );
0664 //    }
0665 
0666     /* Destroy All Previous Residuals */
0667     PXErrorReturnPXDestroyAllResiduals(pg) );
0668 
0669     /* Precalc Distance Function at quad points if needed */
0670     PXErrorReturn(PXUpdateDistanceFunctionStructWrapper(pxa, NULL));
0671 
0672     /*----------------------*/
0673     /* Solve Primal Problem */
0674     /*----------------------*/
0675 

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:999
Code
0989     PXErrorReturnPXInitializeAdaptIterpxa, aiter ) );
0990     //pg = pxa->pg;
0991 
0992 #ifdef PX_TIMING
0993     PXBarrier();
0994     c2=PXclock();
0995     PXPrintf("Time : (InitializeAdaptIter) = %f\n", c2 - c1 );
0996 #endif
0997 
0998     /* Perform PSequencing */
0999     PXErrorReturnPXPSequencingpxa, AdaptFlag, aiter, &ConvergedFlag ) );
1000 
1001 #ifdef PX_TIMING
1002     PXBarrier();
1003     c1=PXclock();
1004     PXPrintf("Time : (PXPSequencing) = %f\n",  c1 - c2);