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 ID0x5b9
Text16 bytes in 1 blocks are still reachable in loss record 1,464 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateLocAttachGlobIntElem
   fun:PXCreateAttachGlobIntElem
   fun:PXInitHPAdaptDirectAttach
   fun:PXInitializeAdaptIter
   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
FunctionPXCreateLocAttachGlobIntElem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:1179
Code
1169     /* Get Number of basis functions */
1170     PXErrorReturnPXOrder2nbf((*GlobIntElemData)->order[egrp], &nbf) );
1171 
1172     /* Set rank */
1173     (*GlobIntElemData)->rank[egrp= nbf*StateRank;
1174   }
1175 
1176   /*--------------------------*/
1177   /* Allocate space for Value */
1178   /*--------------------------*/
1179   PXErrorReturnPXAllocatenegrp+nghostegrp, sizeof(int **)(void **)&((*GlobIntElemData)->value) ) );
1180 
1181   for (egrp = 0; egrp < negrp+nghostegrp; egrp++) {
1182     (*GlobIntElemData)->value[egrp= NULL;
1183     PXErrorReturnPXAllocate2pg->ElementGroup[egrp].nElement, (*GlobIntElemData)->rank[egrp%negrp], sizeof(int)(void **)&((*GlobIntElemData)->value[egrp]) ) );
1184     forelem = 0; elem < pg->ElementGroup[egrp].nElement; elem++ )

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:1442
Code
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 */
1442   PXErrorReturnPXCreateLocAttachGlobIntElempg, order, StateRank, (PX_AttachmentGlobIntElem **&(pg->Attachment[an].data)) );
1443 
1444   /* Set Reader and Write */
1445   pg->Attachment[an].Writer = PXWriteLocAttachGlobIntElem;
1446   pg->Attachment[an].Reader = PXReadLocAttachGlobIntElem;
1447 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitHPAdaptDirectAttach
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXHPAdaptDirect.c:3354
Code
3344   tmpAttach=NULL;
3345   PXErrorReturnPXCreateAttachGREInitpgmesh, LocFlag, title, NULL,
3346           1, time, stepIndex,
3347           DataType, SaveToFileFlag, TransferFlag,
3348           NULL, &tmpAttach ) );
3349 
3350   if (CutFlag == PXE_True) {
3351     /* ElemNull - whether the element is outside computational domain */
3352     sprintf(title, "ElemNull");
3353     PXErrorReturnPXAttachSearchAndDestroypgmesh, title ) );
3354     PXErrorReturn(PXCreateAttachGlobIntElempgmesh, title, NULL, 1, NULL));
3355     PXErrorReturnPXAttachSearchpgmesh, title, &an, NULL ) );
3356     pgmesh->Attachment[an].SaveToFile = SaveToFileFlag;
3357   }
3358 
3359   sprintf(title,"ElemMetricSample");

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitializeAdaptIter
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXInit.c:1963
Code
1953                                         (PX_REAL)CurrentDOF ) );
1954     }
1955   }
1956 
1957   PXErrorReturnPXGetKeyValueEnumpxa->Parameter, "AdaptMethod",
1958                                     PXE_AdaptMethodName, PXE_AdaptMethod_Last,
1959                                     (int*)&AdaptMethod ) );
1960 
1961   /* Allocate (direct) error estimate attachments */
1962   if AdaptMethod == PXE_AdaptMethod_Direct ){
1963     PXErrorReturnPXInitHPAdaptDirectAttach(pxa->pg) );
1964   }
1965 
1966   /* Initialize Truth Surrogate State Vector -- Reinitialize every step */
1967   /* -- unlike primal state init which is done once, then handled by the adaptive routines */
1968   if UnsteadyStruct != NULL ){

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:989
Code
0979 
0980   /* Outermost adaptation loop */
0981   for aiter = ; aiter <= AdaptIter ; aiter++) {
0982 
0983 #ifdef PX_TIMING
0984     PXBarrier();
0985     c1=PXclock();
0986 #endif
0987 
0988     /* Initialize for adaptation iteration     */
0989     PXErrorReturnPXInitializeAdaptIterpxa, aiter ) );
0990     //pg = pxa->pg;
0991 
0992 #ifdef PX_TIMING
0993     PXBarrier();
0994     c2=PXclock();