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 ID0x3ba
Text8 bytes in 1 blocks are still reachable in loss record 953 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateLocAttachGlobRealElem
   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
FunctionPXCreateLocAttachGlobRealElem
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:1493
Code
1483   (*GlobRealElemData)->StateRank = 0;
1484   (*GlobRealElemData)->rank = NULL;
1485   (*GlobRealElemData)->time = 0;
1486   (*GlobRealElemData)->stepIndex = 0;
1487   (*GlobRealElemData)->value = NULL;
1488   (*GlobRealElemData)->recv_request = NULL;
1489 
1490 
1491   /* Allocate order and rank */
1492   PXErrorReturnPXAllocatenegrp+nghostegrp, sizeof(enum PXE_SolutionOrder)(void **)&((*GlobRealElemData)->order) ) );
1493   PXErrorReturnPXAllocatenegrp+nghostegrp, sizeof(int)(void **)&((*GlobRealElemData)->rank) ) );
1494 
1495   /* Initialize DataType */
1496   (*GlobRealElemData)->DataType = PXE_AttachmentDataType_Temporary;
1497 
1498   /* Set order */

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