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 ID0x1091
Text1,032 bytes in 1 blocks are still reachable in loss record 4,240 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXSurfaceGrid2Splines
   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
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
FunctionPXSurfaceGrid2Splines
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXSpline.c:2453
Code
2443 
2444 
2445       /* Copy nodes into spline attachment.  Note, the order of the
2446    "elements" (segments) in a pgsurf group is assumed to be such
2447    that the nodes form a contiguous spline.  Error if this is
2448    not the case. */
2449       SplineData->N = N = nseg+1;
2450 
2451       PXErrorReturnPXAllocateN, sizeof(int)(void **)&(SplineData->NodeIndex) ) );
2452 
2453       PXErrorReturnPXAllocateN, sizeof(PX_REAL)(void **)&(SplineData->X) ) );
2454 
2455       PXErrorReturnPXAllocateN, sizeof(PX_REAL)(void **)&(SplineData->Y) ) );
2456 
2457       SplineData->NodeIndex[0= inode0 = pgsurf->ElementGroup[fgrp].Node[0][0];
2458       SplineData->X[0= pgsurf->coordinate[inode0][0];

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:497
Code
487   PXErrorReturn(PXRefineGridHMetric3d(pxa, 00) )//Note: refinelevel not working for 3D yet
488       pgback = pxa->pg;
489 
490       
491       if(Dim == 2){
492   /* add pgsurf to our newpg */
493   PXErrorReturnPXModifypgbackToMatchExistingpgsurf(pgback, pg->pgsurf) );
494   //for 3D, this will be done after cut, because all meshes will be converted to PX_Mesh data structure for cut
495   
496   /* turn the surface grid into splines */
497   PXErrorReturnPXSurfaceGrid2Splines(pgback, pg->pgsurf, CornerAngleThreshold, PXE_False) );
498       }
499 
500     // i
501 
502     // Reset AnisotropyMethod to original value

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