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 ID0x117e
Text3,864 bytes in 168 blocks are still reachable in loss record 4,477 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:realloc
   fun:PXReAllocate
   fun:PXCreateNodeStructure
   fun:PXPreProcessBackgroundGridToRemoveDoubleSplineFace
   fun:PXIntersect2DCutGrid
   fun:PXBuildCutGrid2D
   fun:ReadCutGridInputFiles
   fun:PXReadInputFile
   fun:PXReadGridBcFuncFiles
   fun:PXInitializePre
   fun:main
}

Stacktrace

Object/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
Functionrealloc
File/Line
CodeSource code not available

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:326
Code
316     PXErrorReturnPXAllocate(n,size,(void **repo) );
317     return PX_NO_ERROR;
318   }
319   else{
320     tot = n*size;
321     if tot == ){
322       PXRelease(_repo);
323       _repo = NULL;
324     }
325     else{
326       if ( (_repo = (char *)realloc( (void *)_repo, tot)) == NULL ) {
327         myerr = errno;
328         printf("In PXReAllocate: totalsize = %lu, errno = %d\n"(long unsignedtot, myerr);
329         if (myerr == ENOMEM){ printf("ENOMEM\n")}
330         if (myerr == EAGAIN){ printf("EAGAIN\n")}
331         *repo=NULL;

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCreateNodeStructure
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGrid.c:4901
Code
4891     }
4892   }
4893 
4894   /*Resize the elements and faces for each node*/
4895   for(node=0;node<pg->nNode;node++){
4896     Node = pg->Node+node;
4897     nElem = Node->nElement;
4898     nFace = Node->nFace;
4899     if(nElem != 0){
4900       PXErrorReturnPXReAllocate(nElem , sizeof(int)(void **)&(Node->ElementGroup) ) );
4901       PXErrorReturnPXReAllocate(nElem , sizeof(int)(void **)&(Node->Element) ) );
4902       PXErrorReturnPXReAllocate(nElem , sizeof(int)(void **)&(Node->LocNode) ) );
4903       if(nFace <= 0){
4904   printf("If a node is connected to one element, it must be connected to some faces!\n");
4905   return PXError(PX_CODE_FLOW_ERROR);
4906       }

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXPreProcessBackgroundGridToRemoveDoubleSplineFace
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXIntersect2d.c:13318
Code
13308       Sedge[1= FaceSedge[splitlface][0];
13309     }
13310 
13311     /* split the element */
13312     PXErrorReturnPXSingleTriangleDoubleSplitLface(pgback, egrp, elem, splitlface, Sedge) );
13313 
13314   }// io
13315 
13316    /* create the node structure for our grid */
13317   if(pg->pgback->Node == NULL)
13318     PXErrorReturnPXCreateNodeStructure(pg->pgback) );
13319 
13320   /*Grid data*/
13321   PXErrorReturnPXInitializeGridData(pg->pgback, PXE_False) );
13322 
13323   /* destroy loc attachments */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXIntersect2DCutGrid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXIntersect2d.c:13356
Code
13346   //int oned;
13347   //int twod;
13348   //int nCanonical;
13349   //PX_REAL xglobal[3];
13350   PX_TwoD_Intersect *TwoD=NULL;
13351 
13352   /****************************************************************************************/
13353   /* preproccess to remove trailing edge elements (or elements with two spline faces next to each other */
13354   /****************************************************************************************/
13355   if (RemoveDoubleSplineFace==PXE_True){
13356     PXErrorReturnPXPreProcessBackgroundGridToRemoveDoubleSplineFace(pg) );
13357   }
13358   /* create the node structure for our grid */
13359   if(pg->pgback->Node == NULL)
13360     PXErrorReturnPXCreateNodeStructure(pg->pgback) );
13361 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXBuildCutGrid2D
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXCutQuad.c:6717
Code
6707   //PX_REAL *xref = NULL;
6708   //PX_REAL xglobal[3];
6709 
6710   /* seed the random number generator */
6711   PXErrorReturnPXRandNumGen(2, &rand_num, PXE_True) );
6712 //  PXErrorReturn( PXRandNumGen(0, &rand_num, PXE_False) );
6713 /*   printf("rand_num = %.15e\n",rand_num); */
6714 
6715 
6716   /* intersect our grid and generate our TwoD intersection Structure */
6717   PXErrorReturnPXIntersect2DCutGrid(pg, &TwoD, MoveToCanonicalFlag, RemoveDoubleSplineFace, PrintCutGridInfoToScreen) );
6718   pg->TwoD = TwoD;
6719 
6720   /* generate the quadrature rules for all the cut elements and faces */
6721 
6722   PXErrorReturnGenerate2DCutQuadRules(pg, TwoD, FaceQuadOrder, ElemQuadOrder, TotalDegreeFlag) );

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionReadCutGridInputFiles
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXCDAll.c:1324
Code
1314   PXErrorReturnPXGetKeyValueBool(pxa->Parameter, "MoveToCanonical", &MoveToCanonicalFlag) );
1315   PXErrorReturnPXGetKeyValueBool(pxa->Parameter, "CanonicalBasis", &CanonicalBasisFlag) );
1316   PXErrorReturnPXGetKeyValueBool(pxa->Parameter, "RemoveDoubleSplineFace", &RemoveDoubleSplineFace) );
1317 
1318   /*Get merging flag*/
1319   PXErrorReturnPXGetKeyValueBool(pxa->Parameter, "MergeFlag", &MergeFlag) );
1320   PXErrorReturnPXGetKeyValueReal(pxa->Parameter, "CriticalMinVR", &CriticalMinVR) );
1321 
1322   if(Dim == 2){
1323     /* we are now ready to intersect our geometry and generate quadrature rules */
1324     PXErrorReturnPXBuildCutGrid2D(pg, &TwoD, MoveToCanonicalFlag, CanonicalBasisFlag, RemoveDoubleSplineFace, FaceQuadOrder, ElemQuadOrder, TotalDegreeFlag, PrintCutGridInfoToScreen) );
1325     /* set pointer to TwoD */
1326     pg->TwoD = TwoD;
1327   }
1328   else{
1329     PXErrorReturn(PXOutputFileName(pxa->Parameter, -1, NULL, NULL, "cc3d", cutFileName));

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXReadInputFile
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXCDAll.c:1710
Code
1700 
1701   /* Copy InputFile to GridFile */
1702   strcpy(GridFile, InputFile);
1703   GridFileType = FileType;
1704 
1705   /*-------------------------*/
1706   /* Check for embedded mesh */
1707   /*-------------------------*/
1708   if ((FileType == PXE_FileType_ebg|| (FileType == PXE_FileType_eb3)) {
1709     /* get the background and surface grids */
1710     PXErrorReturnReadCutGridInputFiles(pxa, InputFile) );
1711 
1712     return PX_NO_ERROR;
1713   }
1714 
1715 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXReadGridBcFuncFiles
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXInit.c:1310
Code
1300   /*----------------*/
1301   /* Read grid file */
1302   /*----------------*/
1303 
1304   /*  Read grid on process 0 */
1305   if myRank == ) {
1306     /* Retrieve input file name */
1307     PXErrorReturnPXGetKeyValuepxa->Parameter, "InputFile", InputFile ) );
1308 
1309     /* Read in grid */
1310     PXErrorReturnPXReadInputFilepxa, InputFile) );
1311 
1312     /* Check grid validity */
1313     PXErrorReturnPXCheckGridpxa->pg ) );
1314 
1315     /* Get Restart flag */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitializePre
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXRunSolver.c:255
Code
0245   PXErrorReturnPXDestroyParameter&KnobFileParameter) );
0246 
0247   /* Initialize EqnSetStruct */
0248   PXErrorReturnPXInitEqnSetStructpxa->Parameter, pxa->pRegionAttribute, &(pxa->EqnSetStruct) ) );
0249 
0250   /* Initialize Equation Set Entry Point Structure */
0251   PXErrorReturnPXFillEqnSetEntryStructpxa->EqnSetStruct,
0252             pxa->EqnSetEntryStruct ) );
0253 
0254   /* Read grid, .bc file, and .func file (marked for change) */
0255   PXErrorReturnPXReadGridBcFuncFilespxa ) );
0256 
0257   /* Initialize Polynomial precalc struct */
0258   /* Only proc0 reads the Grid in PXReadGridBcFuncFiles, but
0259      pg->Dim is needed by ALL processors, so Bcast it
0260 

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:956
Code
0946     PXPrintf("Where casename is the name of the job file.\n");
0947     PXPrintf("\n");
0948     return PX_READWRITE_ERROR;
0949   }
0950 
0951 #ifdef PX_SHADOW
0952   printf("\nWARNING: You Are Running With Shadow Basis Turned On.\n\n");
0953 #endif
0954 
0955   /* Perform non-repeated initializations */
0956   PXErrorReturnPXInitializePreJobFile, &pxa ) );
0957 #ifdef PX_TIMING
0958   PXBarrier();
0959   c1=PXclock();
0960   PXPrintf("Time : (InitializePre) = %f\n",  c1 - c0 );
0961 #endif