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 ID0x977
Text40 bytes in 1 blocks are still reachable in loss record 2,423 of 4,094
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:BuildZeroD
   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
Functionmalloc
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
FunctionPXAllocate
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/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_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/platforms/debug_gnu49/src/Grid/PXUnitCutGrids_PXU
FunctionBuildZeroD
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/src/Grid/PXIntersect2d.c:4117
Code
04107 
04108   PXErrorReturnCleanKnotEdgeIntersection(pg, TwoD) );
04109 
04110   // merge all knots at a multi-spline intersection to a single node by marking the others are 'Duplicates'
04111   PXErrorReturnCleanKnotSplineIntersection(pg, TwoD) );
04112 
04113   /* we also want to be able to go from each cut edge to the zero d points on it */
04114   PXErrorReturnGetNodeEdge2ZeroD(pg, TwoD) );
04115 
04116   /* allocate memory for CutZeroD2nOneD */
04117   PXErrorReturnPXAllocateTwoD->nZeroD, sizeof(int)(void **)&(TwoD->CutZeroD2nOneD) ) );
04118   for (zerod=0; zerod<TwoD->nZeroD; zerod++){
04119     TwoD->CutZeroD2nOneD[zerod0;
04120   }
04121 
04122 

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:13369
Code
13359   if(pg->pgback->Node == NULL)
13360     PXErrorReturnPXCreateNodeStructure(pg->pgback) );
13361 
13362   /* create TwoD intersect structure */
13363   PXErrorReturnCreateTwoDIntersectStructure(pg,&TwoD) );
13364 
13365   /* Build all the zero d points */
13366   if (PrintCutGridInfoToScreen==PXE_True){
13367     printf("Building ZeroD . . .");  fflush(stdout);
13368   }
13369   PXErrorReturnBuildZeroD(pg, TwoD, PrintCutGridInfoToScreen) );
13370   if (PrintCutGridInfoToScreen==PXE_True){
13371     printf("Done \n"); fflush(stdout);
13372   }
13373   /* build all the one d edges */
13374   if (PrintCutGridInfoToScreen==PXE_True){

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 */