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 ID0xec4
Text912 bytes in 1 blocks are still reachable in loss record 3,779 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateFaceGroup
   fun:PXTextGrid2Grid
   fun:PXReadGriFile
   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
FunctionPXCreateFaceGroup
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGrid.c:189
Code
0179 int
0180 PXCreateFaceGroupPX_Grid *pg, int nFaceGroup ){
0181   int fgrp; // face group index
0182 
0183   if (pg->FaceGroup!=NULL){
0184     printf("ERROR: attempting to create face groups from a pg->FaceGroup!=NULL\n");
0185     return PXError(PX_CODE_FLOW_ERROR);
0186   }
0187 
0188   pg->nFaceGroup = nFaceGroup;
0189   PXErrorReturnPXAllocatepg->nFaceGroup, sizeof(PX_FaceGroup)(void **)&(pg->FaceGroup) ) );
0190 
0191   for (fgrp=0; fgrp<pg->nFaceGroup; fgrp++){
0192     PXErrorReturnPXInitializeFaceGroup(pg, fgrp ) );
0193   }
0194 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXTextGrid2Grid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXReadWriteGrid.c:859
Code
00849   /****************************************************************************************/
00850   PXErrorReturnPXCreateHash(pg->nNode, nElement_total, &node2hash, &hashlist) );
00851   /* Free position in hashlist */
00852   hashlistfreeposition = 0;
00853 
00854   /*****************************************************************************************/
00855   /*                         Allocate memory for Face Groups                               */
00856   /*****************************************************************************************/
00857   /* in TextGrid2Grid we will assume that all of the internal faces go into facegroup = 0, and all the boundary faces go after */
00858   pg->nFaceGroup = tg->nBFaceGroup + 1;
00859   PXErrorReturnPXCreateFaceGroup(pg, pg->nFaceGroup) );
00860 
00861   /*****************************************************************************************/
00862   /*          Put the faces in the tg's boundary face groups into the hash table           */
00863   /*****************************************************************************************/
00864   /* loop over the boundary face groups (they will be 1 <-> nFaceGroup) */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXReadGriFile
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXReadWriteGrid.c:1779
Code
01769     printf("Error, running total for number of elements exceeds specified total.\n");
01770     return PXError(PX_READWRITE_ERROR);
01771   }
01772 
01773 
01774   fclosefgri);
01775 
01776   /*****************************************************************************************/
01777   /*                          take our text grid and make a px grid                        */
01778   /*****************************************************************************************/
01779   PXErrorReturnPXTextGrid2Gridpg, tg ) );
01780 
01781   /******************/
01782   /* Release Memory */
01783   /******************/
01784   PXErrorReturnPXDestroyTextGrid(tg) );

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:1737
Code
1727     PXErrorReturnPXReadGridFile(pxa->pg, GridFile) );
1728     break;
1729 
1730   case PXE_FileType_pxa:
1731     /* Read .pxa file */
1732     PXErrorReturnPXReadPxaFile(pxa, GridFile, "PXGrid") );
1733     break;
1734 
1735   case PXE_FileType_gri:
1736     /* Read gri file */
1737     PXErrorReturnPXReadGriFile(pxa->pg, GridFile) );
1738     break;
1739 
1740   case PXE_FileType_grm:
1741     /* Read gri file */
1742     PXErrorReturnPXReadGrmFile(pxa->pg, GridFile) );

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