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 ID0x118d
Text3,960 bytes in 1 blocks are still reachable in loss record 4,492 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate2
   fun:PXCreateLocAttachGlobRealElem
   fun:PXCreateAttachGRE1DInit
   fun:PXUnsteadyAdjointAllocations
   fun:PXSolveUnsteadyDualProblem
   fun:PXSolveDual
   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
FunctionPXCreateAttachGRE1DInit
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:2221
Code
2211         PXErrorReturnPXAttachSearchpg, title, &an, NULL) );
2212         pg->Attachment[an].SaveToFile = SaveToFileFlag;
2213       }
2214       else {
2215         PXErrorReturn(ierr);
2216 
2217         pg->Attachment[an].SaveToFile = SaveToFileFlag;
2218       }
2219 
2220     else {
2221       PXErrorReturn(
2222         PXCreateLocAttachGlobRealElempg, order, StateRank,
2223                                        &(GREDArray[iGRE1]) ) );
2224     }
2225 
2226     GREData1 = GREDArray[iGRE1];

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXUnsteadyAdjointAllocations
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXSolver.c:5519
Code
05509   /* Allocate source attachment (steady and unsteady) */
05510   /*--------------------------------------------------*/
05511 
05512   if pAdjSource != NULL &&
05513       *pAdjSource == NULL ){
05514     LocFlag = PXE_True;
05515     SaveToFileFlag = PXE_False;
05516     DataType = PXE_AttachmentDataType_TemporarySolver;
05517     Init1Flag = PXE_True;
05518     TransferFlag = PXE_False;
05519     PXErrorReturnPXCreateAttachGRE1DInitpg, LocFlag, NULL, order,
05520                                             StateRank, currentTime,
05521                                             stepIndex,
05522                                             DataType, SaveToFileFlag,
05523                                             nAdjOutput, NULL,
05524                                             Init1Flag, TransferFlag,

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXSolveUnsteadyDualProblem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXSolver.c:10642
Code
10632   StateRank = State->StateRank;
10633 
10634   /* Allocate local primal attachments (just need primal stages) */
10635   PXErrorReturn(
10636       PXUnsteadyPrimalAllocationspxa, UnsteadyStruct,
10637                                    -1, PXE_True, StateRank, order, &StageState, &PrevState,
10638                                    NULL, NULL, NULL, NULL, NULL ) );
10639 
10640 
10641   /* Adjoint GRE allocations (steady and unsteady) */
10642   PXErrorReturnPXUnsteadyAdjointAllocationspxa, UnsteadyStruct,
10643                                                -1, PXE_False, StateRank, order,
10644                                                &StageAdjState, &StageAdjRes,
10645                                                &AdjSource,
10646                                                &NextStageAdjState ) );
10647 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXSolveDual
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXRunSolver.c:529
Code
0519   PXErrorReturnPXGetKeyValueIntpxa->Parameter, "AdaptIter", &AdaptIter ) );
0520 
0521   /*--------------------*/
0522   /* Solve Dual Problem */
0523   /*--------------------*/
0524 
0525   PXPrintf("\n*************\n");
0526   PXPrintf(  " Dual Solver \n");
0527   PXPrintf(  "*************\n");
0528 
0529   PXErrorReturnPXSolveUnsteadyDualProblem(pxa, &AdaptFlag, &ConvergedFlag) );
0530 
0531   /*-------------------*/
0532   /* Write Output File */
0533   /*-------------------*/
0534 

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:710
Code
0700       if iSolOrder == SolOrder ){
0701   iAdaptFlag = AdaptFlag;
0702       else {
0703   iAdaptFlag = PXE_False;
0704       }
0705 
0706 #ifdef PX_TIMING
0707     PXBarrier();
0708     c0 = PXclock();
0709 #endif
0710       PXErrorReturnPXSolveDual(pxa, iAdaptFlag, aiter, &ConvergedFlag, &iSolOrder) );
0711 #ifdef PX_TIMING
0712     PXBarrier();
0713     c1 = PXclock();
0714     PXPrintf("Time : (DualSolveTotal) = %f\n", c1-c0 );
0715 #endif

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