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 ID0xeaf
Text128 bytes in 8 blocks are still reachable in loss record 3,758 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateGenAttach
   fun:PXCreateAttachRealElem
   fun:PXComputeMassMatrix
   fun:PXPreComputeMassMatrix
   fun:PXCalculateOutput
   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
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
FunctionPXCreateAttachRealElem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:1100
Code
1090   return PX_NO_ERROR;
1091 /* End PXDestroyLocAttachRealElem */
1092 
1093 /******************************************************************/
1094 //   FUNCTION Definition: PXCreateAttachRealElem
1095 int
1096 PXCreateAttachRealElemPX_Grid *pg, const char title[]int egrp, enum PXE_SolutionOrder order, int StateRank, PX_AttachmentRealElem **RealElemData ){
1097   int an;     // attachment number
1098 
1099   /* Create Generic Attachment */
1100   PXErrorReturnPXCreateGenAttachpg, title, &an ) );
1101 
1102   /* Set Attachment Type */
1103   pg->Attachment[an].type = PXE_AttachmentRealElem;
1104 
1105   /* Create Local Attachment */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXComputeMassMatrix
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXBasis.c:531
Code
0521   memsettitle, '\0', PX_MAXSTRLEN );
0522 
0523   /* Get Dim */
0524   Dim = pg->Dim;
0525 
0526   /* Get number of basis functions */
0527   PXErrorReturnPXOrder2nbf(order, &nbf) );
0528 
0529   /* Create Mass Matrix Attachment */
0530   sprintf(title, "%s_%d_%d""MassMatrix", order, egrp);
0531   PXErrorReturnPXCreateAttachRealElempg, title, egrp, order, nbf, &MMData ));
0532   MMData->DataType = PXE_AttachmentDataType_TemporarySolver;
0533 
0534   /*---------------------*/
0535   /* Compute Mass Matrix */
0536   /*---------------------*/

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXPreComputeMassMatrix
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXBasis.c:946
Code
0936   for (egrp = 0; egrp < negrp+nghostegrp; egrp++) {
0937     /* Get element type */
0938     //type = pg->ElementGroup[egrp].type;
0939 
0940     //if ( ( type != PXE_UniformTriangleQ1) && ( type != PXE_UniformTetQ1 ) ) {
0941     if(1){
0942       /* Search for existing mass matrix */
0943       ierr = PXSearchMassMatrix(pg, egrp, order[egrp%negrp], &MMData);
0944       if (ierr == PX_SEARCH_NOT_FOUND) {
0945         /* If not found compute mass matrix */
0946         PXErrorReturnPXComputeMassMatrix(pg, egrp, order[egrp%negrp]));
0947       }
0948       else{
0949         PXErrorReturn(ierr);
0950       }
0951 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCalculateOutput
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXOutputFunctional.c:4910
Code
4900   int GenericType;    // generic output type
4901   PX_Grid *pg;        // grid
4902 
4903   /* Get Grid */
4904   pg = pxa->pg;
4905 
4906   /* Output Type */
4907   GenericType = OutputData.GenericType;
4908 
4909   /* PrecomputeMassMatrix (needed for outputs) */
4910   PXErrorReturnPXPreComputeMassMatrix(pg, State->order) );
4911 
4912   /* switch on generic type */
4913   switch(GenericType){
4914 
4915   case PXE_GenericOutput_VolumeIntegral:

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:6883
Code
06873     /* Get pseudo timestep */
06874     terr = PXErrorPXGetPseudoTimeStep(pxa, State, CFL, DeltaT, &pdt) );
06875     /* WARNING: Do we need to do something with this error code? CheckRewind? */
06876 
06877     /*-----------------*/
06878     /* Compute Outputs */
06879     /*-----------------*/
06880     if (pg->SubGridFlag == PXE_False) {
06881       /* no need to compute output on subgrid */
06882       for (iOutput = 0; iOutput < nOutput; iOutput++){
06883         PXErrorReturnPXCalculateOutputpxa, pxa->poutput[iOutput], State,
06884                                           NULL, CalcOutput[iOutput], NULL ) );
06885       }
06886     }
06887 
06888     /*--------------------------*/

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