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 ID0x3b1
Text8 bytes in 1 blocks are still reachable in loss record 944 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateLocAttachGlobRealElem
   fun:PXCreateAttachGlobRealElem
   fun:PXComputeQnDistanceFunctionSurfGrid
   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
FunctionPXCreateLocAttachGlobRealElem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:1493
Code
1483   (*GlobRealElemData)->StateRank = 0;
1484   (*GlobRealElemData)->rank = NULL;
1485   (*GlobRealElemData)->time = 0;
1486   (*GlobRealElemData)->stepIndex = 0;
1487   (*GlobRealElemData)->value = NULL;
1488   (*GlobRealElemData)->recv_request = NULL;
1489 
1490 
1491   /* Allocate order and rank */
1492   PXErrorReturnPXAllocatenegrp+nghostegrp, sizeof(enum PXE_SolutionOrder)(void **)&((*GlobRealElemData)->order) ) );
1493   PXErrorReturnPXAllocatenegrp+nghostegrp, sizeof(int)(void **)&((*GlobRealElemData)->rank) ) );
1494 
1495   /* Initialize DataType */
1496   (*GlobRealElemData)->DataType = PXE_AttachmentDataType_Temporary;
1497 
1498   /* Set order */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCreateAttachGlobRealElem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:1897
Code
1887 
1888   /* Create Generic Attachment */
1889   PXErrorReturnPXCreateGenAttachpg, title, &an ) );
1890 
1891 /*   printf("                                                                                                   title = %s\n",title); */
1892 
1893   /* Set Attachment Type */
1894   pg->Attachment[an].type = PXE_AttachmentGlobRealElem;
1895 
1896   /* Create Local Attachment */
1897   PXErrorReturnPXCreateLocAttachGlobRealElempg, order, StateRank, (PX_AttachmentGlobRealElem **&(pg->Attachment[an].data)) );
1898 
1899   /* Set Reader and Write */
1900   pg->Attachment[an].Writer = PXWriteLocAttachGlobRealElem;
1901   pg->Attachment[an].Reader = PXReadLocAttachGlobRealElem;
1902 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXComputeQnDistanceFunctionSurfGrid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXDistanceFunctionSurfGrid.c:834
Code
0824     PXErrorReturnPXGetTypeBasisShape(pg->ElementGroup[egrp].type, &BasisShape) );
0825     /* get node distribution */
0826     PXErrorReturnPXGetTypeBasisNodeDistributionpg->ElementGroup[egrp].type, &NodeDistribution) );
0827     /* get enumerated order */
0828     PXErrorReturnPXEnumeratedOrder(Qorder, Dim, PXE_Lagrange, NodeDistribution, BasisShape, &(Order[egrp]) ) );
0829   }
0830 
0831   /* create global real element attachment to store Qn order */
0832   sprintf(title, "QnDistanceFunction");
0833   PXErrorReturnPXAttachSearchAndDestroy(pg, title) );
0834   PXErrorReturnPXCreateAttachGlobRealElem(pg, title, Order, 1, &QnDistance) );
0835   /* set SaveToFile flag */
0836   PXErrorReturnPXAttachSearchpg, "QnDistanceFunction", &an, NULL) );
0837   pg->Attachment[an].SaveToFile = PXE_True;
0838 
0839   /* loop over the elements and compute the distances at each lagrange node */

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:1018
Code
1008   /* add this face to the node's connectivity information */
1009   PXErrorReturnPXLListInsertFirst(nodeToFace[BNode[lnode]],(void *vertexNodeData, 0.0));
1010   PXLListRewind(nodeToFace[BNode[lnode]]);
1011       /*end loop over lnode */
1012     /*end loop over elem */
1013   /*end loop over elem groups */
1014 
1015   /* PXErrorReturn(PXKDTreeStatistics(tree)); */
1016 
1017   if(qnOrder >= 0)
1018     PXErrorReturnPXComputeQnDistanceFunctionSurfGrid(pg, pg_surf, MaxNewtonSearchDistance, qnOrder) );
1019 
1020 
1021   PXReleasexquadRef );
1022   PXRelease(phi);
1023   PXReleaseSpline );

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