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
PID26354
PPID16382
Unique ID0xee1
Text144 bytes in 1 blocks are still reachable in loss record 3,808 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate2
   fun:PXReAllocate2Copy
   fun:PXTextGrid2Grid
   fun:PXReadMshFile
   fun:PXCallBamg
   fun:PXRefineGridHMetric2d
   fun:PXGeometricAdaptMesh
   fun:ReadCutGridInputFiles
   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
FunctionPXReAllocate2Copy
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Fundamentals/PXMemory.c:377
Code
367   //So this allows p2 > 0 even with an initial NULL pointer
368   //this is needed if an array of NULL pointers gets passed in
369   if _po == NULL && p1 != ){
370     printf("Error, trying to copy memory from a NULL pointer.\n"); fflush(stdout);
371     *po = NULL;
372     return PXError(PX_MEMORY_ERROR);
373   }
374 
375   m1 = p1<n1 ? p1 : n1;
376   m2 = p2<n2 ? p2 : n2;
377   PXErrorReturnPXAllocate2n1, n2, size,(void **&repo ) );
378   ifm2 > )
379     for i=; i<m1; i++ )
380       repo[i(char *)memcpy((void *)(repo[i])(void *)(_po[i]), m2*size);
381 
382   PXRelease2*po );

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:1325
Code
01315                                         pg->ElementGroup[2*tgegrp+0].nFace, sizeof(int)(void **)&(pg->ElementGroup[2*tgegrp+0].Face) ) );
01316     }
01317 
01318     if (pg->ElementGroup[2*tgegrp+1].nElement > 0){
01319       // reallocate element group size only if added elements
01320       PXErrorReturnPXReAllocate2CopynElement, pg->ElementGroup[2*tgegrp+1].nNode, pg->ElementGroup[2*tgegrp+1].nElement,
01321                                         pg->ElementGroup[2*tgegrp+1].nNode, sizeof(int)(void **)&(pg->ElementGroup[2*tgegrp+1].Node) ) );
01322 
01323       PXErrorReturnPXReAllocate2CopynElement, pg->ElementGroup[2*tgegrp+1].nFace, pg->ElementGroup[2*tgegrp+1].nElement,
01324                                         pg->ElementGroup[2*tgegrp+1].nFace, sizeof(int)(void **)&(pg->ElementGroup[2*tgegrp+1].FaceGroup) ) );
01325       PXErrorReturnPXReAllocate2CopynElement, pg->ElementGroup[2*tgegrp+1].nFace, pg->ElementGroup[2*tgegrp+1].nElement,
01326                                         pg->ElementGroup[2*tgegrp+1].nFace, sizeof(int)(void **)&(pg->ElementGroup[2*tgegrp+1].Face) ) );
01327     }
01328 
01329     /* sanity check */
01330     if ((tg->ElementGroup[tgegrp].nElement != 0&&

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXReadMshFile
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXReadWriteGrid.c:4209
Code
04199 /*       for (node=0; node<tg->ElementGroup[egrp].nNode; node++){ */
04200 /*   printf(" %d",tg->ElementGroup[egrp].Node[elem][node]); */
04201 /*       } */
04202 /*       printf("]\n"); */
04203 /*     } */
04204 /*   } */
04205 
04206   /*****************************************************************************************/
04207   /*                          take our text grid and make a px grid                        */
04208   /*****************************************************************************************/
04209   PXErrorReturnPXTextGrid2Gridpg, tg ) );
04210 
04211 
04212   /******************/
04213   /* Release Memory */
04214   /******************/

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCallBamg
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Adaptation/PXWriteMesherFiles.c:477
Code
0467   /* Read new Grid */
0468   /*---------------*/
0469 
0470   printf("creating new q1 mesh\n");fflush(stdout);
0471 
0472   /* create new grid structure: newpg will store the new grid */
0473   PXErrorReturnPXCreateGrid&pg_bamgQ1mesh ) );
0474 
0475   /* read in new grid */
0476   printf("Reading BAMG output: %s\n", outfile);fflush(stdout);
0477   PXErrorReturnPXReadMshFile(pg_bamgQ1mesh, outfile) );
0478 
0479   /* set output */
0480   (*ppg_bamgQ1mesh= pg_bamgQ1mesh;
0481 
0482   /****************************************************************************************/

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXRefineGridHMetric2d
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Adaptation/PXMetricAdapt2d.c:504
Code
494   /* Refine Grid  */
495   /*--------------*/
496   
497 
498   switch (Mesher) {
499     
500   case PXE_Mesher_Bamg:
501     /* Call Bamg */
502 
503 
504     PXErrorReturnPXCallBamg(pxa, pg_meshing, &pg_Q1mesh, PXE_False) );
505 
506     
507     printf("Bamg Done.\n");
508     printf("****************************************************************************************\n");
509     fflush(stdout);

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXGeometricAdaptMesh
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXAdapt.c:485
Code
475       }
476       
477       PXErrorReturnPXReAllocatecount, sizeof(PX_FaceGroup)(void **)&(pgback->FaceGroup) ) )
478       pgback->nFaceGroup = count;
479     
480 
481 /*       sprintf(title,"geom_%d.pxa",giter); */
482 /*       PXWritePxaFile(pxa, title); */
483       
484       if(Dim == 2)
485   PXErrorReturnPXRefineGridHMetric2d(pxa, 3) );
486       else
487   PXErrorReturn(PXRefineGridHMetric3d(pxa, 00) )//Note: refinelevel not working for 3D yet
488       pgback = pxa->pg;
489 
490       

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionReadCutGridInputFiles
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXCDAll.c:1294
Code
1284     /* read in patches */
1285     /* we don't need to match backgrid and surfgrid now, because they will
1286        be changed to PX_Mesh and changed back to PX_Grid*/
1287     PXErrorReturnPXReadEb3Filepgsurf, 0, InputFile));
1288 
1289   }
1290 
1291 
1292   /* attemp geometric adaptation */
1293   pxa->pg = pg;
1294   PXErrorReturnPXGeometricAdaptMesh(pxa) );
1295   pg = pxa->pg;
1296   pgback = pg->pgback;
1297   pgsurf = pg->pgsurf;
1298 
1299   /* fet the face and element quad order */

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:1710
Code
1700 
1701   /* Copy InputFile to GridFile */
1702   strcpy(GridFile, InputFile);
1703   GridFileType = FileType;
1704 
1705   /*-------------------------*/
1706   /* Check for embedded mesh */
1707   /*-------------------------*/
1708   if ((FileType == PXE_FileType_ebg|| (FileType == PXE_FileType_eb3)) {
1709     /* get the background and surface grids */
1710     PXErrorReturnReadCutGridInputFiles(pxa, InputFile) );
1711 
1712     return PX_NO_ERROR;
1713   }
1714 
1715 

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