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 ID0xd01
Text64 bytes in 1 blocks are still reachable in loss record 3,328 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateLocAttachGlobRealElem
   fun:PXCreateAttachGlobRealElem
   fun:PXRetrieveTimeStepState
   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
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:1478
Code
1468   enum PXE_Boolean ParallelFlag; // Flag indicating grid is parallel
1469 
1470   /* Get negrgp */
1471   negrp = pg->nElementGroup;
1472 
1473   /* Check for parallel grid */
1474   ParallelFlag = PXGridIsParallel(pg, NULL);
1475   if (ParallelFlag || pg->SubGridFlag == PXE_Truenghostegrp = negrp;
1476 
1477   /* Allocate Attachment */
1478   PXErrorReturnPXAllocate1, sizeof(PX_AttachmentGlobRealElem)(void **)&((*GlobRealElemData)) ) );
1479 
1480   /* Set everything to NULL */
1481   (*GlobRealElemData)->DataType = PXE_AttachmentDataType_Last;
1482   (*GlobRealElemData)->order = NULL;
1483   (*GlobRealElemData)->StateRank = 0;

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
FunctionPXRetrieveTimeStepState
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXUnsteady.c:1943
Code
1933       ierr = PXErrorPXRetrieveTimeStepState(pxa, index, -1, nameSuffixIn, &PreviousState, NULL) );
1934       if ierr == PX_SEARCH_NOT_FOUND ){
1935         /* Couldn't find concurrent state, how about initial state? */
1936         PXErrorReturnPXRetrieveTimeStepState(pxa, 0, -1, nameSuffixIn, &PreviousState, NULL) );
1937       }
1938 
1939       /* Create Current Adjoint State */
1940       for iAdjOutput=; iAdjOutput<nAdjOutput ; iAdjOutput++ ){
1941         if AdjCreateFlag[iAdjOutput== PXE_False continue;
1942         sprintf(title,"AdjState_%s_%s",pxa->AdjOutputName[iAdjOutput],titleSuffix);
1943         PXErrorReturnPXCreateAttachGlobRealElem(pg, title,  PreviousState->order, PreviousState->StateRank, &((*pAdjState)[iAdjOutput])) );
1944         PXErrorReturnPXAttachGRESetZeropg, (*pAdjState)[iAdjOutput] ) );
1945 
1946         (*pAdjState)[iAdjOutput]->time      = time;
1947         (*pAdjState)[iAdjOutput]->stepIndex = stepIndex;
1948         (*pAdjState)[iAdjOutput]->DataType  = PXE_AttachmentDataType_AdjState;

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:10791
Code
10781                                              "TS", NULL, NULL, NULL, NULL,
10782                                              NULL, NULL,
10783                                              &TSStageAdjState, &TSNextStageAdjState ) );
10784         }
10785       }
10786     }
10787     else{
10788       /* Set the stage state 0 to the state retrieved earlier */
10789       StageState[0= State;
10790       /* Retrieve the adjoint state(s) */
10791       PXErrorReturnPXRetrieveTimeStepStatepxa, currentIndex, -1, NULL, NULL,
10792                                               &StageAdjState[0] ) );
10793     }
10794 
10795     /* Initialize convergence flag */
10796     ConvergedFlag = PXE_False;

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