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
PID26196
PPID16382
Unique ID0xece
Text1,024 bytes in 1 blocks are still reachable in loss record 3,789 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate2
   fun:PXReadEbgFile
   fun:PXReadSurfaceMesh
   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
FunctionPXAllocate2
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Fundamentals/PXMemory.c:146
Code
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){
146     if ( (temp = (char  *)malloc(tot)                 ) == NULL ) {
147       free(_po;
148       *po=NULL;
149       return PXError(PX_MEMORY_ERROR);
150     }
151 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXReadEbgFile
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXReadWriteGrid.c:5806
Code
05796     pgsurf->ElementGroup[egrp].bflag    = PXE_EmbeddedEG;
05797     pgsurf->ElementGroup[egrp].type     = PXE_EmbeddedSurface;
05798     pgsurf->ElementGroup[egrp].nElement = nElement;
05799     pgsurf->ElementGroup[egrp].nFace    = 2;
05800     pgsurf->ElementGroup[egrp].nNode    = nNode;
05801 
05802     /* update total # elements counter */
05803     nElement_total += nElement;
05804 
05805     /* allocate memory for FaceGroup, Face, and Node arrays */
05806     PXErrorReturnPXAllocate2pgsurf->ElementGroup[egrp].nElement, pgsurf->ElementGroup[egrp].nFace, sizeof(int)(void **)&(pgsurf->ElementGroup[egrp].FaceGroup) ) );
05807     PXErrorReturnPXAllocate2pgsurf->ElementGroup[egrp].nElement, pgsurf->ElementGroup[egrp].nFace, sizeof(int)(void **)&(pgsurf->ElementGroup[egrp].Face) ) );
05808     PXErrorReturnPXAllocate2pgsurf->ElementGroup[egrp].nElement, pgsurf->ElementGroup[egrp].nNode, sizeof(int)(void **)&(pgsurf->ElementGroup[egrp].Node) ) );
05809 
05810     for (elem = 0; elem<pgsurf->ElementGroup[egrp].nElement; elem++){
05811       nodevec = pgsurf->ElementGroup[egrp].Node[elem];

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXReadSurfaceMesh
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXCDAll.c:1453
Code
1443   PXValue2Enum(&SurfaceMesh[len-4], PXE_FileTypeName, PXE_FileType_Last, (int *&FileType);
1444 
1445   /* allocate memory for pgsurf */
1446   PXErrorReturnPXCreateGrid(&pgsurf) );
1447   pg->pgsurf = pgsurf;
1448 
1449   /* Read the  embedded surface grid */
1450   switch FileType ) {
1451 
1452   case PXE_FileType_ebg:
1453     PXErrorReturnPXReadEbgFile(pgsurf, 1, SurfaceMesh) );
1454     break;
1455 
1456   case PXE_FileType_eb3:
1457     PXErrorReturnPXReadEb3Filepgsurf, 1, SurfaceMesh));
1458     break;

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:1855
Code
1845   }
1846 
1847   /*------------------------*/
1848   /* Check For Surface Mesh */
1849   /*------------------------*/
1850 
1851   /* Get surface mesh (if it exists) */
1852   ierr = PXGetKeyValue(pxa->Parameter, "SurfaceMesh", SurfaceMesh);
1853   if (ierr == PX_NO_ERROR) {
1854     if (PXNotNull(SurfaceMesh)) {
1855       PXErrorReturnPXReadSurfaceMesh(pg, SurfaceMesh) );
1856     }
1857   }
1858   else if ierr != PX_SEARCH_NOT_FOUND) {
1859     return PXError(ierr);
1860   }

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