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 ID0xf77
Text256 bytes in 1 blocks are still reachable in loss record 3,958 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:ConvertCanonicalFaces
   fun:ConvertCanonicalShapes2ElementGroups
   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
FunctionConvertCanonicalFaces
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXIntersect2d.c:12614
Code
12604         forface = 0; face < pg->FaceGroup[fgrpCan].nFace; face++ ) {
12605           pg->FaceGroup[fgrpCan].FaceR[face].ElementGroup = NO_ADD;
12606           pg->FaceGroup[fgrpCan].FaceR[face].Element      = NO_ADD;
12607           pg->FaceGroup[fgrpCan].FaceR[face].Face         = NO_ADD;
12608         }
12609       }
12610 
12611       if (   pg->FaceGroup[fgrp].FaceGroupFlag != PXE_EmbeddedBoundaryFG
12612           && pg->FaceGroup[fgrp].FaceGroupFlag != PXE_EmbeddedInteriorFG){
12613         PXErrorReturnPXAllocatepg->FaceGroup[fgrpCan].nFace, sizeof(int)(void **)&(pg->FaceGroup[fgrpCan].parentfgrp) ) );
12614         PXErrorReturnPXAllocatepg->FaceGroup[fgrpCan].nFace, sizeof(int)(void **)&(pg->FaceGroup[fgrpCan].parentface) ) );
12615         forface = 0; face < pg->FaceGroup[fgrpCan].nFace; face++ ) {
12616           pg->FaceGroup[fgrpCan].parentfgrp[face= -1;
12617           pg->FaceGroup[fgrpCan].parentface[face= -1;
12618         }
12619       }

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionConvertCanonicalShapes2ElementGroups
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXIntersect2d.c:12860
Code
12850 
12851   /****************************************************************************************/
12852   /*                               Remove Unused Nodes                                    */
12853   /****************************************************************************************/
12854   PXErrorReturnPXRemoveUnusedNodes(pg) );
12855 
12856   /****************************************************************************************/
12857   /*                        Identify Canonical interior faces                             */
12858   /*         (those faces that were cut but have canonical elements on either side)       */
12859   /****************************************************************************************/
12860  PXErrorReturnConvertCanonicalFaces(pg, TwoD) );
12861 //  PXErrorReturn( ConvertInteriorCanonicalFaces(pg, TwoD) );
12862 
12863 
12864   /* print out the grid for matlab to plot */
12865   if ((fid =fopen("CanonicalGrid.m" ,"w"))==NULLreturn PXError(PX_READWRITE_ERROR);

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:13445
Code
13435 /*       printf("    ];\n"); */
13436 /*       printf("plotQelem2d(ps,'r');\n"); */
13437 /*     } */
13438 /*   } */
13439 
13440   /* move to canonical if requested */
13441   if (MoveToCanonicalFlag==PXE_True){
13442     if (PrintCutGridInfoToScreen==PXE_True){
13443       printf("Converting to Canonical Grid . . . "); fflush(stdout);
13444     }
13445     PXErrorReturnConvertCanonicalShapes2ElementGroups(pg, TwoD, qorder) );
13446     if (PrintCutGridInfoToScreen==PXE_True){
13447       printf("Done\n"); fflush(stdout);
13448     }
13449   }
13450 

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