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 ID0xed4
Text1,024 bytes in 1 blocks are still reachable in loss record 3,795 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate2
   fun:PXCreateLocAttachGlobIntElem
   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
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
FunctionPXCreateLocAttachGlobIntElem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:1183
Code
1173     (*GlobIntElemData)->rank[egrp= nbf*StateRank;
1174   }
1175 
1176   /*--------------------------*/
1177   /* Allocate space for Value */
1178   /*--------------------------*/
1179   PXErrorReturnPXAllocatenegrp+nghostegrp, sizeof(int **)(void **)&((*GlobIntElemData)->value) ) );
1180 
1181   for (egrp = 0; egrp < negrp+nghostegrp; egrp++) {
1182     (*GlobIntElemData)->value[egrp= NULL;
1183     PXErrorReturnPXAllocate2pg->ElementGroup[egrp].nElement, (*GlobIntElemData)->rank[egrp%negrp], sizeof(int)(void **)&((*GlobIntElemData)->value[egrp]) ) );
1184     forelem = 0; elem < pg->ElementGroup[egrp].nElement; elem++ )
1185       fori = 0; i < (*GlobIntElemData)->rank[egrp%negrp]; i++ )
1186         (*GlobIntElemData)->value[egrp][elem][i0;
1187   }
1188 

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:1442
Code
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 */
1442   PXErrorReturnPXCreateLocAttachGlobIntElempg, order, StateRank, (PX_AttachmentGlobIntElem **&(pg->Attachment[an].data)) );
1443 
1444   /* Set Reader and Write */
1445   pg->Attachment[an].Writer = PXWriteLocAttachGlobIntElem;
1446   pg->Attachment[an].Reader = PXReadLocAttachGlobIntElem;
1447 

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