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 ID0x3d3
Text8 bytes in 1 blocks are still reachable in loss record 978 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateLocAttachGlobRealElem
   fun:PXCreateAttachGlobRealElem
   fun:PXInitializeShockSwitch
   fun:PXCalculateShockSwitch
   fun:PXNonLocalPreResidual
   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
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
FunctionPXCreateAttachGlobRealElem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:1897
Code
1887 
1888   /* Create Generic Attachment */
1889   PXErrorReturnPXCreateGenAttachpg, title, &an ) );
1890 
1891 /*   printf("                                                                                                   title = %s\n",title); */
1892 
1893   /* Set Attachment Type */
1894   pg->Attachment[an].type = PXE_AttachmentGlobRealElem;
1895 
1896   /* Create Local Attachment */
1897   PXErrorReturnPXCreateLocAttachGlobRealElempg, order, StateRank, (PX_AttachmentGlobRealElem **&(pg->Attachment[an].data)) );
1898 
1899   /* Set Reader and Write */
1900   pg->Attachment[an].Writer = PXWriteLocAttachGlobRealElem;
1901   pg->Attachment[an].Reader = PXReadLocAttachGlobRealElem;
1902 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitializeShockSwitch
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXShockCapture.c:282
Code
0272 
0273     /*--------------------------------------------*/
0274     /* Linearization attachments- for the element */
0275     /*--------------------------------------------*/
0276     strcpy(ShockSwitch_UName, "ShockSwitch_U" );
0277 
0278     /* Destroy existing attachments */
0279     PXErrorReturnPXAttachSearchAndDestroypg, ShockSwitch_UName ) );
0280 
0281     /* Create new attachment */
0282     PXErrorReturnPXCreateAttachGlobRealElempg, ShockSwitch_UName, StateData->order, StateRank, &tempGRE ) );
0283     PXErrorReturnPXAttachSearch(pg, ShockSwitch_UName, &iAttach, NULL));
0284     pg->Attachment[iAttach].Writer = NULL;
0285     pg->Attachment[iAttach].Reader = NULL;
0286 
0287     /* Change data type */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCalculateShockSwitch
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXShockCapture.c:1888
Code
1878     }
1879   }
1880   else if (ierr == PX_SEARCH_NOT_FOUND) {
1881     /* Create Attachments if not found */
1882     if (GhostFlag == PXE_True) {
1883       printf("Calling PXCalculateShockSwitch, with GhostFlag set to True, but no shock attachments found\n");
1884       return PXError(PX_PARALLEL_ERROR);
1885     }
1886 
1887     /* Reinitialize shock switch */
1888     PXErrorReturnPXInitializeShockSwitchpxa, StateData) );
1889 
1890     /* Find shock switch */
1891     PXErrorReturnPXGetShockSwitchAttachmentspg, &ShockSwitchData, &ShockSwitch_UData, &ShockSwitch_UfacesData ) );
1892   }
1893   else {

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXNonLocalPreResidual
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXResidual.c:1698
Code
01688 /*   PXErrorReturn( PXGetKeyValueEnum(pxa->Parameter, "ShockModel", PXE_ShockModelName,  */
01689 /*                                    PXE_ShockModel_Last, (int *)&ShockModel) ); */
01690 
01691 /*   /\* Get the shock indicator *\/ */
01692 /*   PXErrorReturn( PXGetKeyValueEnum(pxa->Parameter, "ShockIndicator", PXE_ShockIndicatorName,  */
01693 /*                            PXE_ShockIndicator_Last, (int *)&SIndicator) ); */
01694 
01695   if ResJobParams->ShockModel == PXE_ShockModel_PDE) {
01696     if (ResJobParams->SIndicator == PXE_ShockIndicator_Jump) {
01697       /* Evaluate Shock Switch */
01698       PXErrorReturnPXCalculateShockSwitch(pxa, -1, -1, GhostFlag, State) );
01699     }
01700   }
01701 
01702   return PX_NO_ERROR;
01703 }

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:16354
Code
16344 
16345   /* Finish Ghost update */
16346   PXErrorReturnPXAttachGREGhostUpdateEnd(pg, State) );
16347   for (outputrank = 0; outputrank < NAdjOutput; outputrank++) {
16348     PXErrorReturnPXAttachGREGhostUpdateEnd(pg, AdjState[outputrank]) );
16349   }
16350   for (iSensParam = 0; iSensParam < nSensParam; iSensParam++)
16351     PXErrorReturnPXAttachGREGhostUpdateEnd(pg, TanState[iSensParam]) );
16352 
16353   /* Non-local Pre-residual calculation functions */
16354   PXErrorReturn(PXNonLocalPreResidual(pxa, &ResJobParams, PXE_False, State));
16355 
16356 #if PREALLOC == 1
16357   PXErrorReturnPXPreAllocateNonLocalThings(pxa, &ResJobParams, State->order, NULL, -1, -1, calcJacobianFlag, calcJacobianFlag) );
16358   //printf("prealloc_NonLocal_Flag = %d\n",prealloc_NonLocal_Flag);
16359 #endif

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