Skip to content

Valgrind Error Details

back to process details
back to processes overview
Executable/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
PID30674
PPID30673
Unique ID0xcd6
Text72 bytes in 1 blocks are still reachable in loss record 3,286 of 4,094
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:realloc
   fun:PXReAllocate
   fun:PXAddegrpelem
   fun:CanonicalShape2ElementGroup
   fun:ConvertCanonicalShapes2ElementGroups
   fun:PXIntersect2DCutGrid
   fun:PXBuildCutGrid2D
   fun:PXCutGrid_Circle_MultiCut
   fun:Test_Circle_MultiCut
   fun:CuTestRun
   fun:CuSuiteRun
   fun:RunAllTests1
   fun:main
}

Stacktrace

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

Object/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
FunctionPXReAllocate
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/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_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
FunctionPXAddegrpelem
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/src/Grid/PXModifyGrid.c:3471
Code
3461       pg->ElementGroup[egrp].nNode         = nbf;
3462       pg->ElementGroup[egrp].nFace         = nFace;
3463       pg->ElementGroup[egrp].bflag         = bflag;
3464       pg->ElementGroup[egrp].type          = type;
3465       pg->ElementGroup[egrp].CutFlag       = CutFlag;
3466       pg->ElementGroup[egrp].MergeFlag     = MergeFlag;
3467       pg->ElementGroup[egrp].CanonicalFlag = CanonicalFlag;
3468 
3469       /* add to TwoD if it is there */
3470       if (TwoD!=NULL){
3471         PXErrorReturnPXReAllocatepg->nElementGroup, sizeof(int  *)(void **)&(TwoD->egrpelem2nTwoD) ) );
3472         PXErrorReturnPXReAllocatepg->nElementGroup, sizeof(int **)(void **)&(TwoD->egrpelem2twod) ) );
3473         TwoD->egrpelem2nTwoD[egrp(int  *)NULL;
3474         TwoD->egrpelem2twod [egrp(int **)NULL;
3475       }
3476 

Object/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
FunctionCanonicalShape2ElementGroup
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/src/Grid/PXIntersect2d.c:12012
Code
12002       }
12003     }
12004 
12005     if (nCanonical==0){
12006       continue;
12007     }
12008 
12009   /****************************************************************************************/
12010   /*                               Add the element group                                  */
12011   /****************************************************************************************/
12012   PXErrorReturnPXAddegrpelem(pg, pg->ElementGroup[egrpCut].bflag, canonicaltype, PXE_False, PXE_False, PXE_True, nFace, &egrpCan, NULL) );
12013 
12014 
12015 
12016   /* initialize array to mark cut elements for deletion */
12017   PXErrorReturnPXAllocatepg->ElementGroup[egrpCut].nElement, sizeof(enum PXE_Boolean)(void **)&(CutElement2Remove) ) );

Object/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
FunctionConvertCanonicalShapes2ElementGroups
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/src/Grid/PXIntersect2d.c:12817
Code
12807   /****************************************************************************************/
12808   NodeDistribution = PXE_SpectralNodeDistribution;
12809   BasisShape       = PXE_QuadShape;
12810   CanonicalShape   = PXE_2D_Canonical_Quad;
12811 
12812   /* just in case we have any canonical 1 order elements */
12813   PXErrorReturnPXEnumeratedType1, Dim, NodeDistribution, BasisShape, &CanonicalType ) );
12814   PXErrorReturnCanonicalShape2ElementGroup(pg, CanonicalType, CanonicalShape) );
12815   /* now the rest of them */
12816   PXErrorReturnPXEnumeratedTypecanonicalqorder, Dim, NodeDistribution, BasisShape, &CanonicalType ) );
12817   PXErrorReturnCanonicalShape2ElementGroup(pg, CanonicalType, CanonicalShape) );
12818 
12819 
12820   /****************************************************************************************/
12821   /*              so do we have any 4 sided cut elements with 0 spline faces?             */
12822   /****************************************************************************************/

Object/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
FunctionPXIntersect2DCutGrid
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/src/Grid/PXIntersect2d.c:13445
Code
13435 /*       printf("    ];\n"); */
13436 /*       printf("plotQelem2d(ps,'r');\n"); */
13437 /*     } */
13438 /*   } */
13439 
13440   /* move to canonical if requested */
13441   if (MoveToCanonicalFlag==PXE_True){
13442     if (PrintCutGridInfoToScreen==PXE_True){
13443       printf("Converting to Canonical Grid . . . "); fflush(stdout);
13444     }
13445     PXErrorReturnConvertCanonicalShapes2ElementGroups(pg, TwoD, qorder) );
13446     if (PrintCutGridInfoToScreen==PXE_True){
13447       printf("Done\n"); fflush(stdout);
13448     }
13449   }
13450 

Object/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
FunctionPXBuildCutGrid2D
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/src/Grid/PXCutQuad.c:6717
Code
6707   //PX_REAL *xref = NULL;
6708   //PX_REAL xglobal[3];
6709 
6710   /* seed the random number generator */
6711   PXErrorReturnPXRandNumGen(2, &rand_num, PXE_True) );
6712 //  PXErrorReturn( PXRandNumGen(0, &rand_num, PXE_False) );
6713 /*   printf("rand_num = %.15e\n",rand_num); */
6714 
6715 
6716   /* intersect our grid and generate our TwoD intersection Structure */
6717   PXErrorReturnPXIntersect2DCutGrid(pg, &TwoD, MoveToCanonicalFlag, RemoveDoubleSplineFace, PrintCutGridInfoToScreen) );
6718   pg->TwoD = TwoD;
6719 
6720   /* generate the quadrature rules for all the cut elements and faces */
6721 
6722   PXErrorReturnGenerate2DCutQuadRules(pg, TwoD, FaceQuadOrder, ElemQuadOrder, TotalDegreeFlag) );

Object/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
FunctionPXCutGrid_Circle_MultiCut
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/src/Grid/PXUnitCutGrids.c:1431
Code
1421 
1422   /* make sure the flags don't contradict themselves */
1423   if ( (QuadFlag==PXE_True&& (IntersectFlag!=PXE_True) ){
1424     printf("ERROR: you cant have quad points if you havent intersected\n");
1425     return PXError(PX_CODE_FLOW_ERROR);
1426   }
1427 
1428   /* if requested intersect the background grid with the embedded surface */
1429   if (IntersectFlag == PXE_True){
1430     if (QuadFlag==PXE_True){
1431       PXErrorReturnPXBuildCutGrid2D(pg, &TwoD, MoveToCanonicalFlag, PXE_True,  RemoveDoubleSplineFace, FaceQuadOrder, ElemQuadOrder, PXE_False, PrintCutGridInfoToScreen) );
1432     }
1433     else{
1434       PXErrorReturnPXIntersect2DCutGrid(pg, &TwoD, MoveToCanonicalFlag, RemoveDoubleSplineFace, PrintCutGridInfoToScreen) );
1435     }
1436     if (pTwoD!=NULL){

Object/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
FunctionTest_Circle_MultiCut
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/src/Grid/PXUnitCutGrids_PXU.c:1057
Code
1047   ierr = PXErrorPXCutGrid_Circle_MultiCut(&pg, PXE_True, PXE_False, PXE_True, NULL) );
1048   PXAssertIntEquals(PX_NO_ERROR, ierr);
1049 
1050   /* Destroy Grid */
1051   ierr = PXErrorPXDestroyGrid(&pg) );
1052   PXAssertIntEquals(PX_NO_ERROR, ierr);
1053 
1054   /****************************************************************************************/
1055   /*                       Do everything - make the final cut grid                        */
1056   /****************************************************************************************/
1057   ierr = PXErrorPXCutGrid_Circle_MultiCut(&pg, PXE_True, PXE_True, PXE_True, NULL) );
1058   PXAssertIntEquals(PX_NO_ERROR, ierr);
1059 
1060   /* Destroy Grid */
1061   ierr = PXErrorPXDestroyGrid(&pg) );
1062   PXAssertIntEquals(PX_NO_ERROR, ierr);

Object/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
FunctionCuTestRun
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/src/Test/CuTest.c:154
Code
144   return tc;
145 }
146 
147 void CuTestRun(CuTest* tc)
148 {
149   jmp_buf buf;
150   tc->jumpBuf = &buf;
151   if (setjmp(buf== 0)
152   {
153     tc->ran = 1;
154     (tc->function)(tc);
155   }
156   tc->jumpBuf = 0;
157 }
158 
159 static void CuFailInternal(CuTest* tc, const char* file, int line, CuString* string)

Object/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
FunctionCuSuiteRun
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/src/Test/CuTest.c:304
Code
294     CuSuiteAdd(testSuite, testCase);
295   }
296 }
297 
298 void CuSuiteRun(CuSuite* testSuite)
299 {
300   int i;
301   for (i = ; i < testSuite->count ; ++i)
302   {
303     CuTest* testCase = testSuite->list[i];
304     CuTestRun(testCase);
305     if (testCase->failed) { testSuite->failCount += 1}
306   }
307 }
308 
309 void CuSuiteSummary(CuSuite* testSuite, CuString* summary)

Object/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
FunctionRunAllTests1
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_cutest.c:48
Code
038   SUITE_ADD_TEST(suite,  Test_OneSegment_Curved );
039   SUITE_ADD_TEST(suite,  Test_TwoSegment_Curved );
040   SUITE_ADD_TEST(suite,  Test_CircleBoundaryLayer );
041   SUITE_ADD_TEST(suite,  Test_CircleBoundaryLayer_ForMerging );
042   SUITE_ADD_TEST(suite,  Test_Joukowski_LE );
043   SUITE_ADD_TEST(suite,  Test_InterfaceGrid_TwoReg_Embed );
044   SUITE_ADD_TEST(suite,  Test_CutGrid_Tadpole_Embedded );
045   
046 
047   if (suite->count > 0) {
048     CuSuiteRun(suite)
049     PXBarrier();  
050 
051     failcount = suite->failCount;
052 
053     if ((failcount > 0|| (myRank == 0)) {

Object/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
Functionmain
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_cutest.c:91
Code
081 
082   printf("----------------------------------------------------------------\n");
083   PXErrorReturnPXInitializeMPI(&argc, &argv)) ;  
084 
085   {
086     enum PXE_Boolean ActiveFlag = PXE_False;
087 
088     /* Tests using 4 processors */
089     PXErrorReturnPXStartRunWithnumProcs1, &ActiveFlag) );
090     if (ActiveFlag ) {
091       terr += RunAllTests1();   
092     }
093     PXErrorReturnPXEndRunWithnumProcs() );
094   }
095 
096   /* Finish MPI */