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 ID0x5b5
Text16 bytes in 1 blocks are still reachable in loss record 1,460 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:PXCreateContinuousMetricFromNodal
   fun:PXCreateContinuousMetric
   fun:PXCreateContinuousImpliedMetricAttach
   fun:PXCreateContinuousGeneralizedHAttach
   fun:PXInitializeGridData
   fun:PXInitializeGrid
   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:1529
Code
1519 
1520   /* Initialize time */
1521   (*GlobRealElemData)->time = 0.0;
1522 
1523   /* Initialize stepIndex */
1524   (*GlobRealElemData)->stepIndex = 0;
1525 
1526   /*--------------------------*/
1527   /* Allocate space for Value */
1528   /*--------------------------*/
1529   PXErrorReturnPXAllocatenegrp+nghostegrp, sizeof(PX_REAL **)(void **)&((*GlobRealElemData)->value) ) );
1530 
1531   for (egrp = 0; egrp < negrp+nghostegrp; egrp++) {
1532     /* printf("egrp = %d, allocated (nelem x rank) = (%d,%d)\n",egrp,pg->ElementGroup[egrp].nElement,(*GlobRealElemData)->rank[egrp%negrp]); */
1533     (*GlobRealElemData)->value[egrp= NULL;
1534     PXErrorReturnPXAllocate2pg->ElementGroup[egrp].nElement, (*GlobRealElemData)->rank[egrp%negrp], sizeof(PX_REAL)(void **)&((*GlobRealElemData)->value[egrp]) ) );

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
FunctionPXCreateContinuousMetricFromNodal
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXMeshMetric.c:725
Code
0715   /* create continuous elemental metric */
0716   PXErrorReturn(PXAllocate(pg->nElementGroup, sizeof(enum PXE_SolutionOrder)(void**)&orderarr));
0717   for (egrp = 0; egrp < pg->nElementGroup; egrp++) {
0718     PXErrorReturn(PXGetTypeBasisShape(pg->ElementGroup[egrp].type,&basisshape));
0719     PXErrorReturn(PXGetTypeBasisNodeDistribution(pg->ElementGroup[egrp].type,&nodedistribution));
0720     PXErrorReturn(PXEnumeratedOrder(1,Dim,PXE_Lagrange,nodedistribution,basisshape,orderarr+egrp));
0721   }
0722 
0723   /* create continuous metric attachment */
0724   PXErrorReturnPXAttachSearchAndDestroy(pg, "ElementMetricC") );
0725   PXErrorReturnPXCreateAttachGlobRealElem(pg,"ElementMetricC",orderarr,metricrank,&EMetricC));
0726 
0727   negrp = pg->nElementGroup;
0728   if (PXGridIsParallel(pg,NULL)||pg->SubGridFlagnghostegrp = negrp;
0729 
0730   for (egrp = 0; egrp < negrp + nghostegrp; egrp++) {

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCreateContinuousMetric
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXMeshMetric.c:793
Code
0783   /* locate piecewise constant metric field */
0784   PXErrorReturn(PXAttachSearch(pg,"ElementMetric",NULL,(void**)&EMetric));
0785 
0786   /* Allocate nodal metric */
0787   PXErrorReturnPXCreateLocAttachRealNode(pg, EMetric->StateRank, &NMetric) );
0788 
0789   /* Create a local nodal metric from the elemental metric */
0790   PXErrorReturnPXCreateNodalMetric(pg, EMetric, &NMetric, MetricTransferMode) );
0791 
0792   /* Create continuous metric from nodal metric */
0793   PXErrorReturnPXCreateContinuousMetricFromNodal(pg, NMetric) );
0794 
0795   /* release */
0796   PXErrorReturn(PXDestroyLocAttachRealNode(pg, &NMetric));
0797 
0798   return PX_NO_ERROR;

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCreateContinuousImpliedMetricAttach
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXMeshMetric.c:824
Code
0814     /* create "ElementMetric" attachment */
0815     PXErrorReturnPXCreateElementImpliedMetricAttach(pg, NULL) );
0816 
0817     /* create continous metric */
0818     PXErrorReturnPXCreateContinuousMetric(pg,PXE_MetricTransferMode_Average) );
0819   }
0820   else{
0821     /* create "ElementMetric" attachment on pgback */
0822     PXErrorReturnPXCreateElementImpliedMetricAttach(pg->pgback, NULL) );
0823     /* create continuous metric on pgback */
0824     PXErrorReturnPXCreateContinuousMetric(pg->pgback, PXE_MetricTransferMode_Average) );
0825     /* now we need to move the continuous metric from pgback to pg */
0826     PXErrorReturnPXTransferContinousMetricFrompgback2pg(pg) );
0827   }
0828 
0829 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCreateContinuousGeneralizedHAttach
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXMeshMetric.c:886
Code
0876 
0877   dim = pg->Dim;
0878   metricrank = (dim*(dim+1))/2;
0879 
0880   /* find continous metric field */
0881   ierr = PXAttachSearch(pg,"ElementMetricC",NULL,(void**)&MetricC);
0882   if (ierr == PX_NO_ERROR) {
0883     /* found continuous metric field; nothing to be done */
0884   else if (ierr == PX_SEARCH_NOT_FOUND) {
0885     /* if continuous metric field does not exist, create one */
0886     PXErrorReturn(PXCreateContinuousImpliedMetricAttach(pg));
0887     PXErrorReturn(PXAttachSearch(pg,"ElementMetricC",NULL,(void**)&MetricC));
0888   else {
0889     return PXError(ierr);
0890   }
0891 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitializeGridData
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXMeshSize.c:813
Code
0803   }
0804 
0805   if (PrintGridDataToScreen==PXE_True){
0806     if(pg->SubGridFlag == PXE_False){
0807       PXPrintf("Domain Size is      : %22.15e\n",DomainSize);
0808       PXPrintf("Min Volume Ratio is : %22.15e\n",minVR);
0809     }
0810   }
0811 
0812   if (pg->SubGridFlag == PXE_False) {
0813     PXErrorReturn(PXCreateContinuousGeneralizedHAttach(pg));
0814   }
0815 //  PXErrorReturn(PXCreateContinuousGeneralizedHAttachDummy(pg));
0816 
0817   return PX_NO_ERROR;
0818   

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitializeGrid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXInit.c:1719
Code
1709   PXErrorReturnPXParallelizeGrid&pg, pxa->Parameter ) );
1710   pxa->pg = pg;
1711 
1712 #ifdef PX_TIMING
1713   PXBarrier();
1714   c3 = PXclock();
1715   PXPrintf("Time : (ParallelizeGrid) = %f\n", c3 - c2 );
1716 #endif
1717 
1718   /* Initialize grid data */
1719   PXErrorReturnPXInitializeGridData(pg, PXE_True) );
1720 
1721 #ifdef PX_TIMING
1722   PXBarrier();
1723   c4 = PXclock();
1724   PXPrintf("Time : (InitializeGridData) = %f\n", c4 - c3 );

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:1932
Code
1922   memsetvalues, '\0', PX_MAXSTRLEN );
1923 
1924   /* Initialize the unsteady structure (marked for change) */
1925   PXErrorReturnPXInitializeUnsteadypxa ) );
1926   UnsteadyStruct = pxa->UnsteadyStruct;
1927 
1928   /* Carry out special initialization for the first adaptation iteration */
1929   if aiter == ) {
1930 
1931     /* Initialize grid for all processes (including parallelizing) */
1932     PXErrorReturnPXInitializeGridpxa ) );
1933     pg = pxa->pg;
1934 
1935     /* Get Restart flag */
1936     PXErrorReturnPXGetKeyValueBool(pxa->Parameter, "Restart", &Restart) );
1937 

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