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 ID0x48a
Text11 bytes in 1 blocks are still reachable in loss record 1,161 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateGenAttach
   fun:PXCreateAttachGlobRealElem
   fun:PXCreateAttachGREInit
   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
FunctionPXCreateGenAttach
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:158
Code
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);
0160 
0161   /* Set data to NULLL */
0162   pg->Attachment[nAttach].data = NULL;
0163 

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:1889
Code
1879   return PX_NO_ERROR;
1880 /* End PXDestroyLocAttachGlobRealElem */
1881 
1882 /******************************************************************/
1883 //   FUNCTION Definition: PXCreateAttachGlobRealElem
1884 int
1885 PXCreateAttachGlobRealElemPX_Grid *pg, const char title[]enum PXE_SolutionOrder *order, int StateRank, PX_AttachmentGlobRealElem **GlobRealElemData ){
1886   int an;     // attachment number
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;

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCreateAttachGREInit
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:2089
Code
2079   if StateRankIn != )
2080     StateRank = StateRankIn;
2081   else if GREDInit != NULL )
2082     StateRank = GREDInit->StateRank;
2083 
2084   /* Create GRE as (local) attachments */
2085   if LocFlag == PXE_False ){
2086     ierr = PXAttachSearchpg, titleIn, &an, (void**pGREData );
2087 
2088     if ierr == PX_SEARCH_NOT_FOUND ){
2089       PXErrorReturnPXCreateAttachGlobRealElempg, titleIn, order, StateRank,
2090                                                  pGREData ) );
2091 
2092       /* set SaveToFile flag */
2093       PXErrorReturnPXAttachSearchpg, titleIn, &an, NULL) );
2094       pg->Attachment[an].SaveToFile = SaveToFileFlag;

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:3345
Code
3335           mrank, time, stepIndex,
3336           DataType, SaveToFileFlag, TransferFlag,
3337           NULL, &tmpAttach ) );
3338 
3339   /* error0 - original element error */
3340   sprintf(title, "ElemError0");
3341   PXErrorReturnPXAttachSearchAndDestroypgmesh, title ) );
3342 
3343   DataType = PXE_AttachmentDataType_ElemErr;
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) {

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