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 ID0xeea
Text144 bytes in 4 blocks are still reachable in loss record 3,817 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:BuildNewGrid
   fun:PXIntersect2DCutGrid
   fun:PXBuildCutGrid2D
   fun:ReadCutGridInputFiles
   fun:PXReadInputFile
   fun:PXReadGridBcFuncFiles
   fun:PXInitializePre
   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
FunctionBuildNewGrid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXIntersect2d.c:9863
Code
09853         || pg->FaceGroup[fgrp].FaceGroupFlag==PXE_EmbeddedInteriorFG ){
09854       PXErrorReturnPXAllocatepg->FaceGroup[fgrp].nFace, sizeof(PX_Face)(void **)&(pg->FaceGroup[fgrp].FaceL) ) );
09855       PXErrorReturnPXAllocatepg->FaceGroup[fgrp].nFace, sizeof(PX_Face)(void **)&(pg->FaceGroup[fgrp].FaceR) ) );
09856 
09857       ifpg->FaceGroup[fgrp].FaceGroupFlag==PXE_InteriorFG ) {
09858         PXErrorReturnPXAllocatepg->FaceGroup[fgrp].nFace, sizeof(int)(void **)&(pg->FaceGroup[fgrp].parentfgrp) ) );
09859         PXErrorReturnPXAllocatepg->FaceGroup[fgrp].nFace, sizeof(int)(void **)&(pg->FaceGroup[fgrp].parentface) ) );
09860       }
09861     }
09862     else if (pg->FaceGroup[fgrp].FaceGroupFlag==PXE_BoundaryFG){
09863       PXErrorReturnPXAllocatepg->FaceGroup[fgrp].nFace, sizeof(PX_Face)(void **)&(pg->FaceGroup[fgrp].FaceL) ) );
09864       pg->FaceGroup[fgrp].FaceR   = (PX_Face *)NULL;
09865       PXErrorReturnPXAllocatepg->FaceGroup[fgrp].nFace, sizeof(int)(void **)&(pg->FaceGroup[fgrp].parentfgrp) ) );
09866       PXErrorReturnPXAllocatepg->FaceGroup[fgrp].nFace, sizeof(int)(void **)&(pg->FaceGroup[fgrp].parentface) ) );
09867     }
09868     else if (pg->FaceGroup[fgrp].FaceGroupFlag==PXE_EmbeddedBoundaryFG){

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:13412
Code
13402   /*   printf("twod = %d\n",twod); */
13403   /*   printf("  bgegrp = %d, begelem = %d\n",TwoD->TwoD[twod].bgegrp,TwoD->TwoD[twod].bgelem ); */
13404   /*   printf("  type = %s\n",PXE_TwoDTypeName[TwoD->TwoD[twod].type]); */
13405   /*   printf("  nOneD = %d\n",TwoD->TwoD[twod].nOneD); */
13406   /*   for (oned=0; oned<TwoD->TwoD[twod].nOneD; oned++){ */
13407   /*     printf("   OneD[%d] = %d\n",oned,TwoD->TwoD[twod].OneD[oned]); */
13408   /*   } */
13409   /* } */
13410 
13411   /* build new grid */
13412   PXErrorReturnBuildNewGrid(pg, TwoD) );
13413   if (PrintCutGridInfoToScreen==PXE_True){
13414     printf("New Cut Grid Built\n"); fflush(stdout);
13415   }
13416 
13417 

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