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 ID0x4b5
Text12 bytes in 1 blocks are still reachable in loss record 1,204 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateGenAttach
   fun:PXCreateAttachGlobIntElem
   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
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
FunctionPXCreateGenAttach
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:158
Code
0148 
0149       return PXErrorPX_GRID_ERROR );
0150     }
0151   }
0152 
0153   /* ReAllocate memory for attachments */
0154   PXErrorReturnPXReAllocatenAttach+1, sizeof(PX_Attachment)(void **)&(pg->Attachment) ) );
0155 
0156   /* Allocate and copy Title */
0157   pg->Attachment[nAttach].title = NULL;
0158   PXErrorReturnPXAllocatestrlen(title)+1, sizeof(char)(void **)&(pg->Attachment[nAttach].title) ) );
0159   strcpy(pg->Attachment[nAttach].title, title);
0160 
0161   /* Set data to NULLL */
0162   pg->Attachment[nAttach].data = NULL;
0163 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCreateAttachGlobIntElem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:1436
Code
1426   return PX_NO_ERROR;
1427 /* End PXDestroyLocAttachGlobIntElem */
1428 
1429 /******************************************************************/
1430 //   FUNCTION Definition: PXCreateAttachGlobIntElem
1431 int
1432 PXCreateAttachGlobIntElemPX_Grid *pg, const char title[]enum PXE_SolutionOrder *order, int StateRank, PX_AttachmentGlobIntElem **GlobIntElemData ){
1433   int an;     // attachment number
1434 
1435   /* Create Generic Attachment */
1436   PXErrorReturnPXCreateGenAttachpg, title, &an ) );
1437 
1438   /* Set Attachment Type */
1439   pg->Attachment[an].type = PXE_AttachmentGlobIntElem;
1440 
1441   /* Create Local Attachment */

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:5949
Code
05939   pgsurf->type = PXE_SurfaceGrid;
05940 
05941 
05942   /****************************************************************************************/
05943   /*               read in the reagion information for aech pgsurf element                */
05944   /****************************************************************************************/
05945   /* For each pgsurf element, it should separates two materials
05946      if this information is not provided, we assume single material is involved*/
05947 
05948   /*Create the attachment for region indices on each element*/
05949   PXErrorReturn(PXCreateAttachGlobIntElempgsurf, "RegionIndex", NULL, 2, &RegionIndex));
05950   rewind(febg);
05951   done = PXE_False;
05952   do{
05953     iffgets(line, 80, febg== NULL break;
05954     if (strncmp(line, "Regions on Faces"16== 0)

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