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
PID26354
PPID16382
Unique ID0xf9a
Text264 bytes in 1 blocks are still reachable in loss record 3,993 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate2
   fun:PXCreateLocAttachGlobRealElem
   fun:PXCreateAttachGlobRealElem
   fun:PXComputeQnDistanceFunction
   fun:PXDistanceFunctionInit
   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
FunctionPXAllocate2
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Fundamentals/PXMemory.c:140
Code
130     printf("Error, requesting allocation of negative memory size.\n"); fflush(stdout);
131     *po=NULL;
132     return PXError(PX_MEMORY_ERROR);
133   }
134 
135   if unlikelyn1 == ) ){
136     *po=NULL;
137     return PX_NO_ERROR;
138   }
139 
140   if ( (_po   = (char **)mallocn1*sizeof(char *) )) == NULL ){
141     *po=NULL;
142     return PXError(PX_MEMORY_ERROR);
143   }
144 
145   if (n2 != 0){

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:1534
Code
1524   (*GlobRealElemData)->stepIndex = 0;
1525 
1526   /*--------------------------*/
1527   /* Allocate space for Value */
1528   /*--------------------------*/
1529   PXErrorReturnPXAllocatenegrp+nghostegrp, sizeof(PX_REAL **)(void **)&((*GlobRealElemData)->value) ) );
1530 
1531   for (egrp = 0; egrp < negrp+nghostegrp; egrp++) {
1532     /* printf("egrp = %d, allocated (nelem x rank) = (%d,%d)\n",egrp,pg->ElementGroup[egrp].nElement,(*GlobRealElemData)->rank[egrp%negrp]); */
1533     (*GlobRealElemData)->value[egrp= NULL;
1534     PXErrorReturnPXAllocate2pg->ElementGroup[egrp].nElement, (*GlobRealElemData)->rank[egrp%negrp], sizeof(PX_REAL)(void **)&((*GlobRealElemData)->value[egrp]) ) );
1535   }
1536 
1537   /* Parallel Data */
1538   (*GlobRealElemData)->recv_request = NULL;
1539   if ParallelFlag == PXE_True ) {

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
FunctionPXComputeQnDistanceFunction
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXDistanceFunction.c:1653
Code
1643     PXErrorReturnPXGetTypeBasisShape(pg->ElementGroup[egrp].type, &BasisShape) );
1644     // get node distribution
1645     PXErrorReturnPXGetTypeBasisNodeDistributionpg->ElementGroup[egrp].type, &NodeDistribution) );
1646     // get enumerated order
1647     PXErrorReturnPXEnumeratedOrder(Qorder, Dim, PXE_Lagrange, NodeDistribution, BasisShape, &(Order[egrp]) ) );
1648   }
1649 
1650   // create global real element attachment to store Qn order
1651   sprintf(title, "QnDistanceFunction");
1652   PXErrorReturnPXAttachSearchAndDestroy(pg, title) );
1653   PXErrorReturnPXCreateAttachGlobRealElem(pg, title, Order, 1, &QnDistance) );
1654   PXErrorReturnPXAttachGRESetZero(pg, QnDistance) );
1655 
1656   // set SaveToFile flag
1657   PXErrorReturnPXAttachSearchpg, "QnDistanceFunction", &an, NULL) );
1658   pg->Attachment[an].SaveToFile = PXE_True;

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXDistanceFunctionInit
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXDistanceFunction.c:2011
Code
2001     return PXError(PX_CODE_FLOW_ERROR);
2002     break;
2003   }
2004 
2005 
2006       /*end loop over faces */
2007     /* end if current facegroup is PXE_BoundaryType_Solid */
2008   /*end loop over face groups */
2009 
2010   if(qnOrder >= 0)
2011     PXErrorReturnPXComputeQnDistanceFunction(pg, MaxNewtonSearchDistance, qnOrder) );
2012 
2013   PXReleaseXREF );
2014   //PXRelease( xphysical );
2015   //PXRelease( xquadRefElem );
2016   PXReleasexquadRefFace );

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:1240
Code
1230 //   FUNCTION Definition: PXInitializeDistanceFunctionStructAndKDTree
1231 int
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   }

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:1690
Code
1680 
1681         //PXErrorReturn( PXInitializeDistanceFunctionSerial( pg,MaxNewtonSearchDistance, pxa->EqnSetEntryStruct->SourceCalcWallDist, calcWallDistFaces) );
1682 
1683         // Initialize Distance Function and KDTree
1684         PXErrorReturnPXInitializeDistanceFunctionStructAndKDTreepg,MaxNewtonSearchDistance, pxa->EqnSetEntryStruct->SourceCalcWallDist, calcWallDistFaces) );
1685       }else if(ierr != PX_NO_ERROR)
1686         PXErrorReturn(ierr);
1687     }
1688     else{
1689       //Initialize cut cell distance function and KDTree
1690       PXErrorReturnPXInitializeDistanceFunctionStructAndKDTreepg,MaxNewtonSearchDistance, pxa->EqnSetEntryStruct->SourceCalcWallDist, calcWallDistFaces) );
1691     }
1692   }
1693 #ifdef PX_TIMING
1694   PXBarrier();
1695   c1 = PXclock();

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