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 ID0x3db
Text8 bytes in 1 blocks are still reachable in loss record 986 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateLocAttachGlobRealElem
   fun:PXTransferRealElemToBackground.isra.9.constprop.36
   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
FunctionPXCreateLocAttachGlobRealElem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:1493
Code
1483   (*GlobRealElemData)->StateRank = 0;
1484   (*GlobRealElemData)->rank = NULL;
1485   (*GlobRealElemData)->time = 0;
1486   (*GlobRealElemData)->stepIndex = 0;
1487   (*GlobRealElemData)->value = NULL;
1488   (*GlobRealElemData)->recv_request = NULL;
1489 
1490 
1491   /* Allocate order and rank */
1492   PXErrorReturnPXAllocatenegrp+nghostegrp, sizeof(enum PXE_SolutionOrder)(void **)&((*GlobRealElemData)->order) ) );
1493   PXErrorReturnPXAllocatenegrp+nghostegrp, sizeof(int)(void **)&((*GlobRealElemData)->rank) ) );
1494 
1495   /* Initialize DataType */
1496   (*GlobRealElemData)->DataType = PXE_AttachmentDataType_Temporary;
1497 
1498   /* Set order */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXTransferRealElemToBackground.isra.9.constprop.36
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXHPAdaptDirect.c:1948
Code
1938 
1939   //assign
1940   order[bgegrp= order1;
1941   Assigned = PXE_True;
1942       }//child
1943     }//bgelem
1944   }//bgegrp
1945 
1946 
1947   /* Create the attachment on pgback */
1948   PXErrorReturn(PXCreateLocAttachGlobRealElem(pgback,order,GRE0->StateRank,&GRE1));
1949   PXErrorReturn(PXAttachGRESetZero(pgback, GRE1));
1950 
1951   /* Copy attachment over from pg to pgback */
1952   for(bgegrp = 0; bgegrp < pgback->nElementGroup; bgegrp ++){
1953     for(bgelem = 0; bgelem < pgback->ElementGroup[bgegrp].nElement; bgelem ++){

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:2089
Code
2079       PXErrorReturn(PXTransferRealElemToBackgroundpg, PXE_False,
2080               AttachSet->StageAdjState[iStage][0],
2081               &(bgAttachSet->StageAdjState[iStage][0]) ));
2082     }
2083   }
2084   if (AttachSet->TSStageAdjState != NULL) {
2085     PXErrorReturnPXAllocatenStage, sizeof(PX_AttachmentGlobRealElem **)(void **)&(bgAttachSet->TSStageAdjState) ) );
2086     for iStage=0; iStage<nStage ; iStage++ ){
2087       bgAttachSet->TSStageAdjState[iStage= NULL;
2088       PXErrorReturn(PXAllocate(1,sizeof(PX_AttachmentGlobRealElem*),(void**)&(bgAttachSet->TSStageAdjState[iStage])));
2089       PXErrorReturn(PXTransferRealElemToBackgroundpg, PXE_False,
2090               AttachSet->TSStageAdjState[iStage][0],
2091               &(bgAttachSet->TSStageAdjState[iStage][0]) ));
2092     }
2093   }
2094   if (AttachSet->PrevState != NULL) {

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