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 ID0xf9d
Text7,500 bytes in 1 blocks are still reachable in loss record 3,996 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:realloc
   fun:PXReAllocate
   fun:PXTextGrid2Grid
   fun:PXReadGriFile
   fun:PXReadInputFile
   fun:PXReadGridBcFuncFiles
   fun:PXInitializePre
   fun:main
}

Stacktrace

Object/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
Functionrealloc
File/Line
CodeSource code not available

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXReAllocate
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Fundamentals/PXMemory.c:326
Code
316     PXErrorReturnPXAllocate(n,size,(void **repo) );
317     return PX_NO_ERROR;
318   }
319   else{
320     tot = n*size;
321     if tot == ){
322       PXRelease(_repo);
323       _repo = NULL;
324     }
325     else{
326       if ( (_repo = (char *)realloc( (void *)_repo, tot)) == NULL ) {
327         myerr = errno;
328         printf("In PXReAllocate: totalsize = %lu, errno = %d\n"(long unsignedtot, myerr);
329         if (myerr == ENOMEM){ printf("ENOMEM\n")}
330         if (myerr == EAGAIN){ printf("EAGAIN\n")}
331         *repo=NULL;

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:1338
Code
01328 
01329     /* sanity check */
01330     if ((tg->ElementGroup[tgegrp].nElement != 0&&
01331         (pg->ElementGroup[2*tgegrp+0].nElement == 0&& (pg->ElementGroup[2*tgegrp+1].nElement == 0) )
01332       return PXError(PX_GRID_ERROR)// cannot have both element groups with zero elements
01333   // tgegrp
01334 
01335   /****************************************************************************************/
01336   /*                          Resize internal face face group                             */
01337   /****************************************************************************************/
01338   PXErrorReturnPXReAllocatepg->FaceGroup[0].nFace, sizeof(PX_Face)(void **)&(pg->FaceGroup[0].FaceL) ) );
01339   PXErrorReturnPXReAllocatepg->FaceGroup[0].nFace, sizeof(PX_Face)(void **)&(pg->FaceGroup[0].FaceR) ) );
01340 
01341   /*****************************************************************************************/
01342   /*                 Delete element groups that contain zero elements                      */
01343   /*****************************************************************************************/

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