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 ID0x659
Text22 bytes in 1 blocks are still reachable in loss record 1,624 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXTextGrid2Grid
   fun:PXGridToSurfaceGrid
   fun:PXInitializeGrid
   fun:PXInitializeAdaptIter
   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
FunctionPXTextGrid2Grid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXReadWriteGrid.c:924
Code
00914 
00915     }//face
00916   }//bfgrp
00917 
00918 
00919   /*****************************************************************************************/
00920   /*        Allocate internal faces array (more than necessary, will resize at end)        */
00921   /*****************************************************************************************/
00922   fgrp = 0;
00923   sprintf(title, "%s%d%c""Interior Face Group ",0'\0');
00924   PXErrorReturnPXAllocatestrlen(title)+1, sizeof(char)(void **)&(pg->FaceGroup[fgrp].title) ) );
00925   memsetpg->FaceGroup[fgrp].title, '\0', strlen(title)+);
00926   strcpy(pg->FaceGroup[fgrp].title, title);
00927 
00928   pg->FaceGroup[fgrp].nFace = 0;
00929 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXGridToSurfaceGrid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXDistanceToSurface.c:480
Code
470   }
471   
472   /*----------------------------*/
473   /* Should be no Boundary info */
474   /*----------------------------*/
475   tg_surf->nBFaceGroup = 0;
476   tg_surf->BFaceGroup  = NULL;
477 
478   /* Create SurfaceMesh */
479   PXErrorReturnPXCreateGrid&pg_surf) );
480   ierr = PXTextGrid2Gridpg_surf, tg_surf );
481   if(ierr == PX_SYSTEM_ERROR){
482     /* Getting here means that TextGrid2Grid failed, most likely
483        b/c the SolidWall faces do not form a closed region in space.
484 
485        TextGrid2Grid attempted to add these boundaries in boundary

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitializeGrid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXInit.c:1664
Code
1654         CutCellFlag = PXE_True;
1655       }
1656     }
1657 
1658     // To calculate wall distances, cutcells do not use a solid wall grid
1659     // and instead uses spline projections in PXDistanceFunction.
1660     if( (pxa->EqnSetEntryStruct->SourceCalcWallDist == PXE_True&& (!CutCellFlag) ){
1661       int *nodeLocator=NULL, *nodeIndex=NULL;
1662 
1663       // if cut cell, will return with NO ERROR and perform distance calcs with splines in PXDistanceFunction
1664       ierr = PXGridToSurfaceGrid(pxa->pg, &(pxa->pg->SolidWallGrid), &nodeLocator, &nodeIndex, PXE_True );
1665       PXRelease(nodeIndex);
1666       PXRelease(nodeLocator);
1667 
1668       /* now compute distance function */
1669       if(ierr == PX_CODE_FLOW_ERROR){ //happens b/c cut cells found

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitializeAdaptIter
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXInit.c:1932
Code
1922   memsetvalues, '\0', PX_MAXSTRLEN );
1923 
1924   /* Initialize the unsteady structure (marked for change) */
1925   PXErrorReturnPXInitializeUnsteadypxa ) );
1926   UnsteadyStruct = pxa->UnsteadyStruct;
1927 
1928   /* Carry out special initialization for the first adaptation iteration */
1929   if aiter == ) {
1930 
1931     /* Initialize grid for all processes (including parallelizing) */
1932     PXErrorReturnPXInitializeGridpxa ) );
1933     pg = pxa->pg;
1934 
1935     /* Get Restart flag */
1936     PXErrorReturnPXGetKeyValueBool(pxa->Parameter, "Restart", &Restart) );
1937 

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:989
Code
0979 
0980   /* Outermost adaptation loop */
0981   for aiter = ; aiter <= AdaptIter ; aiter++) {
0982 
0983 #ifdef PX_TIMING
0984     PXBarrier();
0985     c1=PXclock();
0986 #endif
0987 
0988     /* Initialize for adaptation iteration     */
0989     PXErrorReturnPXInitializeAdaptIterpxa, aiter ) );
0990     //pg = pxa->pg;
0991 
0992 #ifdef PX_TIMING
0993     PXBarrier();
0994     c2=PXclock();