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 ID0x3ac
Text8 bytes in 1 blocks are still reachable in loss record 939 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateLocAttachGlobRealElem
   fun:PXCreateAttachGlobRealElem
   fun:PXCreateContinuousGeneralizedHAttach
   fun:PXInitializeGridData
   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
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:1492
Code
1482   (*GlobRealElemData)->order = NULL;
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 

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
FunctionPXCreateContinuousGeneralizedHAttach
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXMeshMetric.c:898
Code
0888   else {
0889     return PXError(ierr);
0890   }
0891 
0892   /* create generalized H attachment */
0893   PXErrorReturn(PXAllocate(pg->nElementGroup, sizeof(enum PXE_SolutionOrder)(void**)&orderarr));
0894   for (egrp = 0; egrp < pg->nElementGroup; egrp++) {
0895     orderarr[egrp= MetricC->order[egrp];
0896   }
0897   PXErrorReturn(PXAttachSearchAndDestroy(pg,"GeneralizedH"));
0898   PXErrorReturn(PXCreateAttachGlobRealElem(pg,"GeneralizedH",orderarr,metricrank,&GenH));
0899 
0900   /* compute generalized H, which is M^{-1/2} */
0901   negrp = pg->nElementGroup;
0902   if (PXGridIsParallel(pg,NULL)||pg->SubGridFlagnghostegrp = negrp;
0903 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitializeGridData
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXMeshSize.c:813
Code
0803   }
0804 
0805   if (PrintGridDataToScreen==PXE_True){
0806     if(pg->SubGridFlag == PXE_False){
0807       PXPrintf("Domain Size is      : %22.15e\n",DomainSize);
0808       PXPrintf("Min Volume Ratio is : %22.15e\n",minVR);
0809     }
0810   }
0811 
0812   if (pg->SubGridFlag == PXE_False) {
0813     PXErrorReturn(PXCreateContinuousGeneralizedHAttach(pg));
0814   }
0815 //  PXErrorReturn(PXCreateContinuousGeneralizedHAttachDummy(pg));
0816 
0817   return PX_NO_ERROR;
0818   

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:13321
Code
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 */
13324   PXErrorReturnPXDestroyLocAttachIntNode(pgsurf, SplitNode) );
13325 
13326   /* release memory */

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