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 ID0xfaf
Text13,696 bytes in 1 blocks are still reachable in loss record 4,014 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXLinAlgMat_CreateRowIndexing
   fun:PXLinAlgMat_PermutePointers
   fun:PXLinearSolver_MatZero
   fun:PXDGSolver_InitializeMatToZero
   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
FunctionPXLinAlgMat_CreateRowIndexing
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/LinearSolver/PXMat.c:138
Code
0128   ColumnValue = mat->ColumnValue;
0129   nnzBlock    = mat->nnzBlock;
0130 
0131   /* Allocate nRow and Row */
0132   PXErrorReturnPXAllocate(   nBlock, sizeof(int)  (void **&nRow    ) );
0133   PXErrorReturnPXAllocate(   nBlock, sizeof(int *)(void **&Row     ) );
0134   PXErrorReturnPXAllocatennzBlock, sizeof(int)  (void **&RowStart) );
0135 
0136   /* Allocate RowValue and RowValuePointerStart */
0137   PXErrorReturnPXAllocate(   nBlock, sizeof(PX_REAL **)(void **&RowValue     ) );
0138   PXErrorReturnPXAllocatennzBlock, sizeof(PX_REAL *(void **&RowValuePointerStart) );
0139 
0140   /*--------------------------------------*/
0141   /* Count number of rows for each column */
0142   /*--------------------------------------*/
0143 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXLinAlgMat_PermutePointers
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/LinearSolver/PXMat.c:1049
Code
1039   /*----------------------*/
1040   /* Permute Row indexing */
1041   /*----------------------*/
1042 
1043   PXReleasemat->nRow );
1044   PXReleasemat->Row  );
1045   PXReleasemat->RowStart );
1046   PXReleasemat->RowValue );
1047   PXReleasemat->RowValuePointerStart );
1048 
1049   PXErrorReturnPXLinAlgMat_CreateRowIndexingLinAlgStruct_PCmat, mat) );
1050 
1051   return PX_NO_ERROR;
1052 }
1053 
1054 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXLinearSolver_MatZero
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/LinearSolver/PXLinearSolver.c:448
Code
438   Amat  = LinearSolverStruct->Amat;
439   PCmat = LinearSolverStruct->PCmat;
440 
441   LinAlg_to_PCmat = LinearSolverStruct->LinAlg_to_PCmat;
442   PCmat_to_LinAlg = LinearSolverStruct->PCmat_to_LinAlg;
443 
444   /* Transform A back to original numbering */
445   if LinearSolverStruct->Amat_reordered ) {
446     switch LinearSolverStruct->ParallelPreconditioner ) {
447     case PXE_ParallelPreconditioner_None:
448       PXErrorReturnPXLinAlgMat_PermutePointersLinAlgStruct_PCmat, PCmat_to_LinAlg, LinAlg_to_PCmat, LinAlgStruct, Amat) );
449       break;
450     case PXE_ParallelPreconditioner_ASM:
451     case PXE_ParallelPreconditioner_ASM_Additive:
452     case PXE_ParallelPreconditioner_ASM_Multiplicative:
453       /* transform overlapping matrix */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXDGSolver_InitializeMatToZero
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXDGSolver.c:580
Code
570   //PXRelease( RL_URtemp );
571 
572   return PX_NO_ERROR;
573 }
574 
575 
576 /******************************************************************/
577 //   FUNCTION Definition: PXDGSolverStruct_InitializeToZero
578 int PXDGSolver_InitializeMatToZeroPX_DGSolverStruct *DGSolverStruct )
579 {
580   PXErrorReturnPXLinearSolver_MatZeroDGSolverStruct->LinearSolverStruct ) );
581 
582   return PX_NO_ERROR;
583 }
584 
585 /******************************************************************/

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:6858
Code
06848   /* Nonlinear iterations */
06849   /*----------------------*/
06850 
06851   iter = 0;
06852   while ( ( iter<=MaxIter && ConvergedFlag == PXE_False &&
06853       PXUserHalt(pg,PXE_True,PXE_False,PXE_False,mode== PXE_False ) ){
06854 
06855     UpdateState = PXE_NoUpdate;
06856 
06857     /* Zero Out Jacobian matrix */
06858     PXErrorReturnPXDGSolver_InitializeMatToZeroDGSolverStruct) );
06859 
06860     /*--------------------------------------------------------------*/
06861     /*  Set residuals equal to source (or zero for steady problems) */
06862     /*--------------------------------------------------------------*/
06863 

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