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 ID0x43e
Text9 bytes in 1 blocks are still reachable in loss record 1,085 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateGenAttach
   fun:PXCreateAttachGlobIntElem
   fun:PXAddChildrenAttachment2pgback
   fun:PXTransferAttachSetToBackground
   fun:PXFillAttachmentSet
   fun:PXAdaptHPDirectSingleStep
   fun:PXAdaptHPDirectSingleStepWrapper
   fun:PXSolveUnsteadyDualProblem
   fun:PXSolveDual
   fun:PXPSequencing
   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
FunctionPXCreateGenAttach
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:158
Code
0148 
0149       return PXErrorPX_GRID_ERROR );
0150     }
0151   }
0152 
0153   /* ReAllocate memory for attachments */
0154   PXErrorReturnPXReAllocatenAttach+1, sizeof(PX_Attachment)(void **)&(pg->Attachment) ) );
0155 
0156   /* Allocate and copy Title */
0157   pg->Attachment[nAttach].title = NULL;
0158   PXErrorReturnPXAllocatestrlen(title)+1, sizeof(char)(void **)&(pg->Attachment[nAttach].title) ) );
0159   strcpy(pg->Attachment[nAttach].title, title);
0160 
0161   /* Set data to NULLL */
0162   pg->Attachment[nAttach].data = NULL;
0163 

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:1436
Code
1426   return PX_NO_ERROR;
1427 /* End PXDestroyLocAttachGlobIntElem */
1428 
1429 /******************************************************************/
1430 //   FUNCTION Definition: PXCreateAttachGlobIntElem
1431 int
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 */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXAddChildrenAttachment2pgback
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXCutCell.c:356
Code
0346     for (elem=0; elem<pgback->ElementGroup[egrp].nElement; elem++){
0347       MaxnChildren = MAX(MaxnChildren, nChildren->value[egrp][elem][0]);
0348     }
0349   }
0350 
0351   /* now create Children attachment */
0352   sprintf(title,"Children");
0353   /* make sure the attachment doesn't exist */
0354   PXErrorReturnPXAttachSearchAndDestroy(pgback, title) );
0355   /* Create Attachment on on pgback  */
0356   PXErrorReturnPXCreateAttachGlobIntElem(pgback, title, NULL, MaxnChildren*2, &Children) );
0357 
0358   /* initialize Children */
0359   for (egrp=0; egrp<pgback->nElementGroup; egrp++){
0360     for (elem=0; elem<pgback->ElementGroup[egrp].nElement; elem++){
0361       for (k=0; k<MaxnChildren*2; k++){

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXTransferAttachSetToBackground
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXHPAdaptDirect.c:2058
Code
2048   int nStage,     iStage;
2049   int nPrevState, iState;
2050   int maxNStage, maxNPrevState;
2051 
2052   /* Allocate background grid attachset */
2053   PXErrorReturn(PXAllocate(1, sizeof(struct AttachmentSet)(void**)&(AttachSet->bgAttachSet)));
2054   bgAttachSet = AttachSet->bgAttachSet;
2055   PXErrorReturn(PXInitAttachSet(bgAttachSet));
2056 
2057   /* Create children attachment on pgback */
2058   PXErrorReturn(PXAddChildrenAttachment2pgback(pg));
2059 
2060   /* Copy nstage */
2061   bgAttachSet->nAdjState = AttachSet->nAdjState;
2062   nStage = bgAttachSet->nStage = AttachSet->nStage;
2063   nPrevState = bgAttachSet->nPrevState = AttachSet->nPrevState;

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXFillAttachmentSet
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXHPAdaptDirect.c:2333
Code
2323 
2324   /* Find QnDistanceFunction and set pointer (if exists) */
2325   ierr = PXAttachSearch(pxa->pg,"QnDistanceFunction",NULL,(void**)&AttachSet->QnDistFun);
2326   if ((ierr != PX_NO_ERROR&& (ierr != PX_SEARCH_NOT_FOUND)) {
2327     return PXError(ierr);
2328   }
2329 
2330   /* If cut grid, need to transfer these attachments to pgback */
2331   PXErrorReturn(PXGetCutFlag(pxa->pg, &CutFlag));
2332   if(CutFlag == PXE_True)
2333     PXErrorReturn(PXTransferAttachSetToBackground(pxa->pg, AttachSet));
2334 
2335   return PX_NO_ERROR;
2336 }
2337 
2338 /******************************************************************/

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXAdaptHPDirectSingleStep
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXHPAdaptDirect.c:7757
Code
7747   /* compute truth surrogate and error indicator*/
7748   PXErrorReturn(PXInitAttachSet(AttachSet));
7749 #ifdef PX_TIMING
7750   PXBarrier();
7751   c0 = PXclock();
7752 #endif
7753 
7754 #ifPX_UNIT_TEST==)
7755   PXErrorReturn(PXFillAttachmentSetDummy(pxa,AttachSet,pErrorEstSum,pErrorEstAbsSum));
7756 #else
7757   PXErrorReturn(PXFillAttachmentSet(pxa,AttachSet,UnsteadyIndex,pErrorEstSum,pErrorEstAbsSum));
7758 #endif
7759 
7760   if porder0 != NULL *porder0 = AttachSet->StageState[0]->order[0];
7761 #ifdef PX_TIMING
7762   PXBarrier();

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXAdaptHPDirectSingleStepWrapper
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXHPAdaptDirect.c:7869
Code
7859   else {
7860     pgmesh = pg->pgback;
7861     if (pgmesh == NULLPXErrorReturn(PX_BAD_INPUT);
7862   }
7863   PXErrorReturn(PXConvertGrid2Mesh(pgmesh,meshback,Mesh2GridMap));
7864 
7865   /* Initialize elemerror */
7866   PXErrorReturn(PXAllocateElementError(meshback,ElemError));
7867 
7868   /* Fill element error for this single step */
7869   PXErrorReturnPXAdaptHPDirectSingleSteppxa, UnsteadyIndex,
7870                                             meshback, Mesh2GridMap, ElemError, NULL,
7871                                             pErrorEstSum, pErrorEstAbsSum ) );
7872 
7873   /* Retrieve error and metric GRE attachments */
7874   PXErrorReturnPXAttachSearch(pgmesh,"ElemError0",NULL,(void *)&ElemError0) );

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXSolveUnsteadyDualProblem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXSolver.c:10865
Code
10855                                                               &ErrorEstSum, &ErrorEstAbsSum) );
10856 
10857       }
10858       else
10859       {
10860 
10861 #ifdef PX_TIMING
10862         c0 = PXclock();
10863 #endif
10864         /* Build grid and fill ElemError structure */
10865         PXErrorReturnPXAdaptHPDirectSingleStepWrapper(pxa, currentIndex,
10866                                                         &ErrorEstSum, &ErrorEstAbsSum) );
10867 #ifdef PX_TIMING
10868         c1 = PXclock();
10869         PXPrintf("Time : (DualSolve(P+1andLocSolve)) = %f\n", c1-c0 );
10870 #endif

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXSolveDual
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXRunSolver.c:529
Code
0519   PXErrorReturnPXGetKeyValueIntpxa->Parameter, "AdaptIter", &AdaptIter ) );
0520 
0521   /*--------------------*/
0522   /* Solve Dual Problem */
0523   /*--------------------*/
0524 
0525   PXPrintf("\n*************\n");
0526   PXPrintf(  " Dual Solver \n");
0527   PXPrintf(  "*************\n");
0528 
0529   PXErrorReturnPXSolveUnsteadyDualProblem(pxa, &AdaptFlag, &ConvergedFlag) );
0530 
0531   /*-------------------*/
0532   /* Write Output File */
0533   /*-------------------*/
0534 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXPSequencing
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXRunSolver.c:710
Code
0700       if iSolOrder == SolOrder ){
0701   iAdaptFlag = AdaptFlag;
0702       else {
0703   iAdaptFlag = PXE_False;
0704       }
0705 
0706 #ifdef PX_TIMING
0707     PXBarrier();
0708     c0 = PXclock();
0709 #endif
0710       PXErrorReturnPXSolveDual(pxa, iAdaptFlag, aiter, &ConvergedFlag, &iSolOrder) );
0711 #ifdef PX_TIMING
0712     PXBarrier();
0713     c1 = PXclock();
0714     PXPrintf("Time : (DualSolveTotal) = %f\n", c1-c0 );
0715 #endif

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:999
Code
0989     PXErrorReturnPXInitializeAdaptIterpxa, aiter ) );
0990     //pg = pxa->pg;
0991 
0992 #ifdef PX_TIMING
0993     PXBarrier();
0994     c2=PXclock();
0995     PXPrintf("Time : (InitializeAdaptIter) = %f\n", c2 - c1 );
0996 #endif
0997 
0998     /* Perform PSequencing */
0999     PXErrorReturnPXPSequencingpxa, AdaptFlag, aiter, &ConvergedFlag ) );
1000 
1001 #ifdef PX_TIMING
1002     PXBarrier();
1003     c1=PXclock();
1004     PXPrintf("Time : (PXPSequencing) = %f\n",  c1 - c2);