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 ID0xadb
Text48 bytes in 1 blocks are still reachable in loss record 2,778 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateLocAttachGlobRealInteriorFace
   fun:PXCreateAttachGlobRealInteriorFace
   fun:PXViscEta
   fun:PXGetViscEtaAttach
   fun:PXJumpResidual.isra.14
   fun:PXCalculateResidual
   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
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
FunctionPXCreateLocAttachGlobRealInteriorFace
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:3494
Code
3484   if (PXGridIsParallelpg, NULL)|| pg->SubGridFlag == PXE_True nghostfgrp = nfgrp;
3485 
3486   /* Allocate Attachment */
3487   PXErrorReturnPXAllocate1, sizeof(PX_AttachmentGlobRealInteriorFace)(void **)&((*GlobRealInteriorFaceData)) ) );
3488 
3489   /* Set Rank */
3490   (*GlobRealInteriorFaceData)->rank = rank;
3491 
3492   /* Allocate space for Value */
3493   (*GlobRealInteriorFaceData)->value = NULL;
3494   PXErrorReturnPXAllocatenfgrp+nghostfgrp, sizeof(PX_REAL **)(void **)&((*GlobRealInteriorFaceData)->value) ) );
3495 
3496   for (fgrp = 0; fgrp < nfgrp+nghostfgrp; fgrp++) {
3497     if (pg->FaceGroup[fgrp%nfgrp].FaceGroupFlag==PXE_InteriorFG
3498         || pg->FaceGroup[fgrp%nfgrp].FaceGroupFlag==PXE_EmbeddedInteriorFG){
3499       (*GlobRealInteriorFaceData)->value[fgrp= NULL;

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCreateAttachGlobRealInteriorFace
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:3655
Code
3645 PXCreateAttachGlobRealInteriorFacePX_Grid *pg, const char title[]int rank, PX_AttachmentGlobRealInteriorFace **GlobRealInteriorFaceData ){
3646   int an;     // attachment number
3647 
3648   /* Create Generic Attachment */
3649   PXErrorReturnPXCreateGenAttachpg, title, &an ) );
3650 
3651   /* Set Attachment Type */
3652   pg->Attachment[an].type = PXE_AttachmentGlobRealInteriorFace;
3653 
3654   /* Create Local Attachment */
3655   PXErrorReturnPXCreateLocAttachGlobRealInteriorFacepg, rank, (PX_AttachmentGlobRealInteriorFace **&(pg->Attachment[an].data)) );
3656 
3657   /* Set Reader and Write */
3658   pg->Attachment[an].Writer = PXWriteLocAttachGlobRealInteriorFace;
3659   pg->Attachment[an].Reader = PXReadLocAttachGlobRealInteriorFace;
3660 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXViscEta
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXAuxVariable.c:215
Code
0205 
0206 
0207   /* get periodic flag */
0208   for (fgrp=0; fgrp < nfgrp; fgrp++){
0209     if (pg->FaceGroup[fgrp].PeriodicFlag==PXE_True){
0210       PeriodicFlag=PXE_True;
0211     }
0212   }
0213 
0214   /* Create real face attachment to hold eta */
0215   PXErrorReturnPXCreateAttachGlobRealInteriorFace(pg, "Eta"1, &eta_Data) );
0216 
0217   /* Get Eta parameter */
0218   PXErrorReturnPXGetKeyValueReal(pxa->Parameter, "ViscEtaParameter", &ViscEtaParameter) );
0219 
0220   /* Get Solution order */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXGetViscEtaAttach
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXAuxVariable.c:421
Code
0411   PX_Grid *pg = NULL;
0412 
0413   /* Get Grid */
0414   pg = pxa->pg;
0415 
0416   /* Look for Eta attachment */
0417   ierr = PXAttachSearch(pg, "Eta", NULL, (void **&Eta_Data);
0418   ifunlikely(ierr != PX_NO_ERROR) ){
0419 
0420     /* If not found create visc eta attachment */
0421     PXErrorReturnPXViscEtapxa ) );
0422 
0423     /* Find eta attachment */
0424     PXErrorReturnPXAttachSearch(pg, "Eta", NULL, (void **&Eta_Data) );
0425   }
0426 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXJumpResidual.isra.14
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXResidual.c:11462
Code
11452   // Get generalized length scale
11453   PXErrorReturn(PXAttachSearch(pg,"GeneralizedH",NULL,(void**)&GenH));
11454   ResIFaceData.nbfHmax=0;
11455   for (egL=0; egL<pg->nElementGroup; egL++){
11456     PXErrorReturn(PXOrder2nbf(GenH->order[egL],&nbfH));
11457     ResIFaceData.nbfHmax = MAX(ResIFaceData.nbfHmax,nbfH);
11458   }
11459 
11460   if((pxa->EqnSetEntryStruct->CalcA != NULL||
11461      (pxa->EqnSetEntryStruct->CalcAns != NULL))
11462     PXErrorReturnPXGetViscEtaAttach(pxa, &ResIFaceData.Eta_Data) );
11463 
11464 
11465   /*------------------------------*/
11466   /* Loop through interior faces  */
11467   /*------------------------------*/

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCalculateResidual
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXResidual.c:16337
Code
16327 
16328   //PXErrorReturn( PXPrecalcFaceThings(pxa, State->order) );
16329 #if PREALLOC == 1
16330   PXErrorReturnPXPreAllocateIFaceThings(pxa, &ResJobParams, State->order, -1, -1, calcJacobianFlag) );
16331 #endif
16332 
16333 #ifdef PX_TIMING
16334   //c6 = PXclock();
16335 #endif
16336   /* Interior faces */
16337   PXErrorReturnPXJumpResidualpxa, &ResJobParams, PXE_False, State, AdjState, TanState,
16338                                  Res, AdjRes, TanRes, DGSolverStruct));
16339 #ifdef PX_TIMING
16340   //c7 = PXclock();
16341 #endif
16342 

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:6898
Code
06888     /*--------------------------*/
06889     /* Compute Spatial Residual */
06890     /*--------------------------*/
06891 
06892     if unlikely(PingFlag == PXE_PingLocal) ) {
06893       PXErrorReturn(PXPingResidualFast(pxa, State));
06894     }else ifunlikely(PingFlag == PXE_PingGlobal) ){
06895       PXErrorReturn(PXPingResidualFull(pxa, State));
06896     }
06897 
06898     terr =  PXCalculateResidual(pxa, mode, State, NULL, NULL, Residual, NULL, NULL,
06899                                 DGSolverStruct);
06900     /* Check that the flow state does not need to be rewound */
06901     PXErrorReturnPXCheckRewindpxa, terr, UpdateState, State, ValidState,
06902                                   NULL, NULL, &CFL, &CFLValid,
06903                                   &RewindFlag ) );

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