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 ID0xfd6
Text93,888 bytes in 1 blocks are still reachable in loss record 4,053 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate2
   fun:PXCreateLocAttachGlobRealElem
   fun:ComputePseudoUnsteadyResidual
   fun:ComputeLineSearchLimit
   fun:PXUpdateGlobalState.constprop.8
   fun:PXSolveNonlinearPrimalNewton
   fun:PXSolveNonlinearProblem
   fun:PXSolveUnsteadyStep
   fun:PXSolveUnsteadyProblem
   fun:PXSolvePrimal
   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
FunctionPXAllocate2
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Fundamentals/PXMemory.c:146
Code
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){
146     if ( (temp = (char  *)malloc(tot)                 ) == NULL ) {
147       free(_po;
148       *po=NULL;
149       return PXError(PX_MEMORY_ERROR);
150     }
151 

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:1534
Code
1524   (*GlobRealElemData)->stepIndex = 0;
1525 
1526   /*--------------------------*/
1527   /* Allocate space for Value */
1528   /*--------------------------*/
1529   PXErrorReturnPXAllocatenegrp+nghostegrp, sizeof(PX_REAL **)(void **)&((*GlobRealElemData)->value) ) );
1530 
1531   for (egrp = 0; egrp < negrp+nghostegrp; egrp++) {
1532     /* printf("egrp = %d, allocated (nelem x rank) = (%d,%d)\n",egrp,pg->ElementGroup[egrp].nElement,(*GlobRealElemData)->rank[egrp%negrp]); */
1533     (*GlobRealElemData)->value[egrp= NULL;
1534     PXErrorReturnPXAllocate2pg->ElementGroup[egrp].nElement, (*GlobRealElemData)->rank[egrp%negrp], sizeof(PX_REAL)(void **)&((*GlobRealElemData)->value[egrp]) ) );
1535   }
1536 
1537   /* Parallel Data */
1538   (*GlobRealElemData)->recv_request = NULL;
1539   if ParallelFlag == PXE_True ) {

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionComputePseudoUnsteadyResidual
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXSolver.c:288
Code
00278       PXErrorReturnPXCreateLocAttachGlobRealElempg, State->order,
00279                                                     State->StateRank,
00280                                                     &PseudoResidual ) );
00281       /* add the PseudoResidual to the grid */
00282       PXErrorReturnPXAttachAddtoGridpg, "PseudoResidual",
00283                                         PXE_AttachmentGlobRealElem,
00284                                         (void *PseudoResidual, NULL ) );
00285     }
00286   }
00287   else if (ierr == PX_SEARCH_NOT_FOUND){
00288     PXErrorReturnPXCreateLocAttachGlobRealElempg, State->order,
00289                                                   State->StateRank,
00290                                                   &PseudoResidual ) );
00291     /* add the PseudoResidual to the grid */
00292     PXErrorReturnPXAttachAddtoGridpg, "PseudoResidual",
00293                                       PXE_AttachmentGlobRealElem,

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionComputeLineSearchLimit
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXSolver.c:1062
Code
01052   PXErrorReturnPXCreateLocAttachGlobRealElempg, State->order,
01053                                                 State->StateRank,
01054                                                 &PseudoUnsteadyResidual ) );
01055 
01056   /* set our LineSearchLimit to 1.0 */
01057   LineSearchLimit = 1.0;
01058   iter = 0;
01059   ResidualDown = PXE_False;
01060   while ( (ResidualDown==PXE_False&& (iter<50&& (LineSearchLimit > UpdateFractionMin) ){
01061     /* compute the PseudoUnsteadyResidual */
01062     PXErrorReturnComputePseudoUnsteadyResidualpxa, mode, State, dState, Source,
01063                                                   unsteadyWeight, ioDeltaT,
01064                                                   LineSearchLimit,
01065                                                   &ResidualNorm1,
01066                                                   &PseudoUnsteadyResidualNorm1,
01067                                                   PseudoUnsteadyResidual ) );

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXUpdateGlobalState.constprop.8
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXSolver.c:1704
Code
01694 
01695     }// numProcs == 1 && SubGridFlag == PXE_False
01696     /*^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
01697 
01698 
01699     /*--------------------------------------------------------------------------------------*/
01700     /*          Now, we may want to perform a line search on our solution update            */
01701     /*--------------------------------------------------------------------------------------*/
01702     if (LineSearchFlag!=PXE_LineSearchFlag_None){
01703       /* compute state update limit based on PseudoUnsteadyResidual */
01704       PXErrorReturnComputeLineSearchLimit(pxa, mode, State, dState, Source, unsteadyWeight, Residual, CFL, &LineSearchLimit) );
01705 
01706       /* update update fraction */
01707       (*UpdateFraction*= LineSearchLimit;
01708 
01709       /* update dstate */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXSolveNonlinearPrimalNewton
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXSolver.c:7121
Code
07111 
07112     /*-----------------------------------------*/
07113     /*        State = State + dState           */
07114     /*-----------------------------------------*/
07115 
07116     /* update state data if no error has occurred */
07117     if (terr == PX_NO_ERROR){
07118       /* update not attempted if dState is NULL */
07119 
07120       /* jm added the error return here - before we didn't check the error code at all */
07121       PXErrorReturnPXUpdateGlobalState(pxa, mode, State, ValidState, dState,
07122                                          NULL, NULL, NULL,
07123                                          Residual, Source, unsteadyWeight,
07124                                          CFL, PXE_True, PXE_True, PXE_False, &UpdateFraction, &UpdateState) );
07125     }
07126 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXSolveNonlinearProblem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXSolver.c:8862
Code
08852     /* Set number of adjoint outputs */
08853     nSensParam = pxa->SensitivityStruct->nSensParam;
08854     /* Allocate adjoint residual norm array */
08855     PXErrorReturnPXAllocatenSensParam, sizeof(PX_REAL),
08856                                (void **)&(TanResidualNorm) ) );
08857   }
08858 
08859   switch NonlinearSolver ){
08860   case PXE_Newton:
08861     if FlowFlag == PXE_True ){
08862       ierr = PXSolveNonlinearPrimalNewtonpxa, MaxIter, unsteadyWeight,
08863                                            mode, CFLStart,
08864                                            &ResidualTol, &ResidualNorm,
08865                                            State0, Source, State, Residual, &smResIter);
08866       if ierr !=PX_NO_ERROR && ierr !=PX_NOT_CONVERGED PXErrorReturn(ierr);
08867     }

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXSolveUnsteadyStep
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXSolver.c:9320
Code
09310                                                            TanSpatialRes ) );
09311 
09312         /* Set flag to converged for this stage */
09313         ConvergedFlag = PXE_True;
09314       }
09315       else
09316       {
09317         /*----------------------------------------------*/
09318         /* Solve the problem using the nonlinear solver */
09319         /*----------------------------------------------*/
09320         PXErrorReturn(
09321             PXSolveNonlinearProblempxa, unsteadyWeight, mode,
09322                                      NULL, Source, State, StageRes[iStage],
09323                                      NULL, NULL, NULL, NULL, /* No Adjoint */
09324                                      NULL, TanSource, TanState, TanRes,
09325                                      &ResidualNorm, NULL, NULL,

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXSolveUnsteadyProblem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXSolver.c:9855
Code
09845 
09846 
09847     }
09848     else{
09849 
09850       StageState[0= State;
09851 
09852     }
09853 
09854     /* Call time step solver */
09855     PXErrorReturnPXSolveUnsteadyStep(pxa, currentIndex, UnsteadyStruct,
09856                                        UnsteadyFlag, PXE_Mode_Solve,
09857                                        StageState,
09858                                        (PrevState!=NULL)?PrevState[0]:NULL,
09859                                            PrevState,
09860                                            StageResidual, Source, StateSource,

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXSolvePrimal
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXRunSolver.c:386
Code
0376   PXPrintf("\n***************\n");
0377   PXPrintf(  " Primal Solver \n");
0378   PXPrintf(  "***************\n");
0379 
0380   if Discretization == PXE_Discretization_HDG ) {
0381     /* HDG discretization */
0382     PXErrorReturnPXHDGSolve(pxa, &ConvergedFlag) );
0383   }
0384   else {
0385     /* DG discretization */
0386     PXErrorReturnPXSolveUnsteadyProblem(pxa, &ConvergedFlag) );
0387   }
0388 
0389   /*-------------------*/
0390   /* Write Output File */
0391   /*-------------------*/

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:681
Code
0671 
0672     /*----------------------*/
0673     /* Solve Primal Problem */
0674     /*----------------------*/
0675 
0676 #ifdef PX_TIMING
0677     PXBarrier();
0678     c0 = PXclock();
0679 #endif
0680 
0681     PXErrorReturnPXSolvePrimal(pxa, AdaptFlag, aiter, &ConvergedFlag, &iSolOrder) );
0682 
0683 
0684 #ifdef PX_TIMING
0685     PXBarrier();
0686     c1 = PXclock();

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