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 ID0x112c
Text2,352 bytes in 1 blocks are still reachable in loss record 4,395 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:realloc
   fun:PXReAllocate
   fun:PXCreateGenAttach
   fun:PXCreateAttachGlobIntElem
   fun:PXAddegrpelem2splineAttach
   fun:PXLocalSampling
   fun:PXPerformLocalSampling
   fun:PXAdaptHPDirectSingleStep
   fun:PXAdaptHPDirectSingleStepWrapper
   fun:PXSolveUnsteadyDualProblem
   fun:PXSolveDual
   fun:PXPSequencing
   fun:main
}

Stacktrace

Object/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
Functionrealloc
File/Line
CodeSource code not available

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXReAllocate
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Fundamentals/PXMemory.c:326
Code
316     PXErrorReturnPXAllocate(n,size,(void **repo) );
317     return PX_NO_ERROR;
318   }
319   else{
320     tot = n*size;
321     if tot == ){
322       PXRelease(_repo);
323       _repo = NULL;
324     }
325     else{
326       if ( (_repo = (char *)realloc( (void *)_repo, tot)) == NULL ) {
327         myerr = errno;
328         printf("In PXReAllocate: totalsize = %lu, errno = %d\n"(long unsignedtot, myerr);
329         if (myerr == ENOMEM){ printf("ENOMEM\n")}
330         if (myerr == EAGAIN){ printf("EAGAIN\n")}
331         *repo=NULL;

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:154
Code
0144     if (strcmptitle, pg->Attachment[an].title== 0) {
0145       printf("Attachment with title = %s already exists\n", title);
0146 
0147       PXErrorReturnPXPrintAttachmentInfo(pg) );
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);

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCreateAttachGlobIntElem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:1436
Code
1426   return PX_NO_ERROR;
1427 /* End PXDestroyLocAttachGlobIntElem */
1428 
1429 /******************************************************************/
1430 //   FUNCTION Definition: PXCreateAttachGlobIntElem
1431 int
1432 PXCreateAttachGlobIntElemPX_Grid *pg, const char title[]enum PXE_SolutionOrder *order, int StateRank, PX_AttachmentGlobIntElem **GlobIntElemData ){
1433   int an;     // attachment number
1434 
1435   /* Create Generic Attachment */
1436   PXErrorReturnPXCreateGenAttachpg, title, &an ) );
1437 
1438   /* Set Attachment Type */
1439   pg->Attachment[an].type = PXE_AttachmentGlobIntElem;
1440 
1441   /* Create Local Attachment */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXAddegrpelem2splineAttach
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXCutCell.c:1026
Code
1016       /*Update number*/
1017       egrpelem2nspline->value[egrp][elem][0= nspline;
1018       //printf("egrp = %d, elem = %d, nspline = %d\n", egrp, elem, nspline);
1019       maxnspline = MAX(maxnspline, nspline);
1020     }//elem
1021   }//egrp
1022 
1023   /*Now create and initialize egrpelem2sgrpseg*/
1024   strcpy(title,"egrpelem2sgrpseg");
1025   PXErrorReturnPXAttachSearchAndDestroy(pg, title) );
1026   PXErrorReturnPXCreateAttachGlobIntElem(pg, title, NULL, maxnspline*2, &egrpelem2sgrpseg));
1027   for (egrp=0; egrp<negrp; egrp++){
1028     for (elem=0; elem<pg->ElementGroup[egrp].nElement; elem++){
1029       for (k=0; k<maxnspline; k++){
1030   egrpelem2sgrpseg->value[egrp][elem][k*2]
1031     = egrpelem2sgrpseg->value[egrp][elem][k*2+1= -1;

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXLocalSampling
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXHPAdaptDirect.c:4542
Code
4532   if (CutGrid) {
4533     if (pg->Dim == 2) {
4534 
4535       /* For cut cases, the split subgrid will have two more fgrp than pgback
4536          because of two dummy ones added (see PXTurnSubMeshToFullMesh)
4537          pgsurf need to match that before calling intersection (only issue in 2D) */
4538 
4539       //PXErrorReturn(PXModifypgsurfToMatchNClosure(pg->pgsurf, pg->pgback->nFaceGroup+2));
4540 
4541       /* Need egrpelem2spline information */
4542       PXErrorReturn(PXAddegrpelem2splineAttach(pg));
4543     }
4544     else {
4545       /* Need egrpelem2patch information */
4546       printf("Haven't implemented yet\n");
4547       PXErrorReturn(PX_BAD_INPUT);

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXPerformLocalSampling
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXHPAdaptDirect.c:4665
Code
4655   /* Get cut flag*/
4656   PXErrorReturn(PXGetCutFlag(pxa->pg, &CutFlag));
4657 
4658   /* Copy current state */
4659   if(CutFlag == PXE_False)
4660     PXErrorReturn(PXCopyCurrentSample(pxa,meshback,AttachSet,ElemError));
4661   else
4662     PXErrorReturn(PXCopyCurrentSample(pxa,meshback,AttachSet->bgAttachSet,ElemError));
4663 
4664   /* Local sampling */
4665   PXErrorReturn(PXLocalSampling(pxa,UnsteadyIndex,meshback,Mesh2GridMap,AttachSet,ElemError));
4666 
4667   /* Reset parameters */
4668   PXErrorReturn(PXSetKeyValue(pxa->Parameter,"Verbosity",VerbosityStr));
4669   PXErrorReturn(PXSetKeyValue(pxa->Parameter,"Preconditioner",PCStr));
4670   PXErrorReturn(PXSetKeyValue(pxa->Parameter,"LineSearchFlag",LineSearchStr));

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXAdaptHPDirectSingleStep
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXHPAdaptDirect.c:7778
Code
7768   if(CutFlag == PXE_False)
7769     PXErrorReturn(PXCopyAttachSetToMesh(Mesh2GridMap,AttachSet));
7770   else //for cut cell, mesh2gridmap stores mapping for background mesh
7771     PXErrorReturn(PXCopyAttachSetToMesh(Mesh2GridMap,AttachSet->bgAttachSet));
7772 
7773   /* perform local sampling */
7774 #ifdef PX_TIMING
7775   PXBarrier();
7776   c0 = PXclock();
7777 #endif
7778   PXErrorReturn(PXPerformLocalSampling(pxa,UnsteadyIndex,meshback,Mesh2GridMap,AttachSet,ElemError));
7779 #ifdef PX_TIMING
7780   PXBarrier();
7781   c1 = PXclock();
7782   PXPrintf("Time : (LocalSolve) = %f\n", c1-c0 );
7783 #endif

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXAdaptHPDirectSingleStepWrapper
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXHPAdaptDirect.c:7869
Code
7859   else {
7860     pgmesh = pg->pgback;
7861     if (pgmesh == NULLPXErrorReturn(PX_BAD_INPUT);
7862   }
7863   PXErrorReturn(PXConvertGrid2Mesh(pgmesh,meshback,Mesh2GridMap));
7864 
7865   /* Initialize elemerror */
7866   PXErrorReturn(PXAllocateElementError(meshback,ElemError));
7867 
7868   /* Fill element error for this single step */
7869   PXErrorReturnPXAdaptHPDirectSingleSteppxa, UnsteadyIndex,
7870                                             meshback, Mesh2GridMap, ElemError, NULL,
7871                                             pErrorEstSum, pErrorEstAbsSum ) );
7872 
7873   /* Retrieve error and metric GRE attachments */
7874   PXErrorReturnPXAttachSearch(pgmesh,"ElemError0",NULL,(void *)&ElemError0) );

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:10865
Code
10855                                                               &ErrorEstSum, &ErrorEstAbsSum) );
10856 
10857       }
10858       else
10859       {
10860 
10861 #ifdef PX_TIMING
10862         c0 = PXclock();
10863 #endif
10864         /* Build grid and fill ElemError structure */
10865         PXErrorReturnPXAdaptHPDirectSingleStepWrapper(pxa, currentIndex,
10866                                                         &ErrorEstSum, &ErrorEstAbsSum) );
10867 #ifdef PX_TIMING
10868         c1 = PXclock();
10869         PXPrintf("Time : (DualSolve(P+1andLocSolve)) = %f\n", c1-c0 );
10870 #endif

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