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 ID0x3bd
Text8 bytes in 1 blocks are still reachable in loss record 957 of 4,094
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:BuildElem2OneD
   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
FunctionBuildElem2OneD
File/Line/home1/jenkins/workspace/ProjectX_Nightly/PX_ARC/debug_gnu49/buildnode/reynolds/src/Grid/PXIntersect2d.c:7542
Code
07532 /*     for (elem=0; elem<pgback->ElementGroup[egrp].nElement; elem++){ */
07533 /*       printf("TwoD->Elem2nOneD[%d][%d] = %d\n",egrp,elem,TwoD->Elem2nOneD[egrp][elem]); */
07534 /*     } */
07535 /*   } */
07536 
07537   /****************************************************************************************/
07538   /*                   Now that we have Elem2nOneD we can make Elem2OneD                  */
07539   /****************************************************************************************/
07540 
07541   /* allocate memory for Elem2OneD */
07542   PXErrorReturnPXAllocatepgback->nElementGroup, sizeof(int **)(void **)&(TwoD->Elem2OneD) ) );
07543   for (egrp=0; egrp<pgback->nElementGroup; egrp++){
07544     TwoD->Elem2OneD[egrp= NULL;
07545     PXErrorReturnPXAllocatepgback->ElementGroup[egrp].nElement, sizeof(int *)(void **)&(TwoD->Elem2OneD[egrp]) ) );
07546     for (elem=0; elem<pgback->ElementGroup[egrp].nElement; elem++){
07547       TwoD->Elem2OneD[egrp][elem= NULL;

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:13391
Code
13381   /* identify the null one d edges */
13382   PXErrorReturnIdentifyNullOneD(pg, TwoD) );
13383   if (PrintCutGridInfoToScreen==PXE_True){
13384     printf("Done\n"); fflush(stdout);
13385   }
13386   /* build pointer form bg egrp,elem to oneds in/on it */
13387   if (PrintCutGridInfoToScreen==PXE_True){
13388     printf("Building TwoD . "); fflush(stdout);
13389   }
13390 
13391   PXErrorReturnBuildElem2OneD(pg, TwoD) );
13392   if (PrintCutGridInfoToScreen==PXE_True){
13393     printf(". . "); fflush(stdout);
13394   }
13395   /* build twod objects */
13396   PXErrorReturnBuildTwoD(pg, TwoD) );

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