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 ID0xed8
Text1,024 bytes in 1 blocks are still reachable in loss record 3,799 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate2
   fun:PXReAllocate2Copy
   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
FunctionPXAllocate2
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Fundamentals/PXMemory.c:140
Code
130     printf("Error, requesting allocation of negative memory size.\n"); fflush(stdout);
131     *po=NULL;
132     return PXError(PX_MEMORY_ERROR);
133   }
134 
135   if unlikelyn1 == ) ){
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){

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:1314
Code
01304       //end loop over lface
01305     //close loop over tgelem
01306 
01307     /* Resize two element groups face and node arrays */
01308     if (pg->ElementGroup[2*tgegrp+0].nElement > 0){
01309       // reallocate element group size only if added elements
01310       PXErrorReturnPXReAllocate2CopynElement, pg->ElementGroup[2*tgegrp+0].nNode, pg->ElementGroup[2*tgegrp+0].nElement,
01311                                         pg->ElementGroup[2*tgegrp+0].nNode, sizeof(int)(void **)&(pg->ElementGroup[2*tgegrp+0].Node) ) );
01312       PXErrorReturnPXReAllocate2CopynElement, pg->ElementGroup[2*tgegrp+0].nFace, pg->ElementGroup[2*tgegrp+0].nElement,
01313                                         pg->ElementGroup[2*tgegrp+0].nFace, sizeof(int)(void **)&(pg->ElementGroup[2*tgegrp+0].FaceGroup) ) );
01314       PXErrorReturnPXReAllocate2CopynElement, pg->ElementGroup[2*tgegrp+0].nFace, pg->ElementGroup[2*tgegrp+0].nElement,
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

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();