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 ID0x5b0
Text16 bytes in 1 blocks are still reachable in loss record 1,455 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXCreateLocAttachIntNode
   fun:PXCreateAttachIntNode
   fun:PXIntersectSplineNode
   fun:BuildZeroD
   fun:PXIntersect2DCutGrid
   fun:PXBuildCutGrid2D
   fun:ReadCutGridInputFiles
   fun:PXReadInputFile
   fun:PXReadGridBcFuncFiles
   fun:PXInitializePre
   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
FunctionPXCreateLocAttachIntNode
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:241
Code
0231 /*                IntNode attachment functions                         */
0232 /************************************************************************/
0233 
0234 
0235 /******************************************************************/
0236 //   FUNCTION Definition: PXCreateLocAttachIntNode
0237 int PXCreateLocAttachIntNodePX_Grid *pg, int rank, PX_AttachmentIntNode **IntNodeData ){
0238   int nNode;  // number of nodes
0239 
0240   /* Allocate Attachment */
0241   PXErrorReturnPXAllocate1, sizeof(PX_AttachmentIntNode)(void **)&((*IntNodeData)) ) );
0242 
0243   /* Set Rank */
0244   (*IntNodeData)->rank = rank;
0245 
0246   /* Get number of nodes */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXCreateAttachIntNode
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXGridAttachments.c:371
Code
0361 PXCreateAttachIntNodePX_Grid *pg, const char title[]int rank, PX_AttachmentIntNode **IntNodeData ){
0362   int an;     // attachment number
0363 
0364   /* Create Generic Attachment */
0365   PXErrorReturnPXCreateGenAttachpg, title, &an ) );
0366 
0367   /* Set Attachment Type */
0368   pg->Attachment[an].type = PXE_AttachmentIntNode;
0369 
0370   /* Create Local Attachment */
0371   PXErrorReturnPXCreateLocAttachIntNodepg, rank, (PX_AttachmentIntNode **&(pg->Attachment[an].data)) );
0372 
0373   /* Set Reader and Write */
0374   pg->Attachment[an].Writer = PXWriteLocAttachIntNode;
0375   pg->Attachment[an].Reader = PXReadLocAttachIntNode;
0376 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXIntersectSplineNode
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXIntersect2d.c:2221
Code
02211   /* the "NodeIntersect" attachment indicates for each node which spline
02212   it intersects (-1 for none), and, if applicable, which knot in the
02213   spline it is coincident with (-1 for none).  Instead of storing the
02214   local spline knot number, store the common pgsurf global node
02215   numbers pointed to by NodeIndex. */
02216 
02217   sprintf(title, "NodeIntersect");
02218   ierr = PXAttachSearchpgback, title, NULL, NULL );
02219   if (ierr != PX_SEARCH_NOT_FOUNDreturn PXError(PX_GRID_ERROR);
02220 
02221   PXErrorReturnPXCreateAttachIntNodepgback, title, 2, &NodeIntersect) );
02222 
02223   /* initialize NodeIntersect */
02224   for (node=0; node<pgback->nNode; node++){
02225     NodeIntersect->value[node][0= -1// index: which spline this node intersects
02226     NodeIntersect->value[node][1= -1// which knot - global point in pgsurf this node intersects if it does

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionBuildZeroD
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXIntersect2d.c:3961
Code
03951 /*       } */
03952 /*     } */
03953 /*   } */
03954 
03955   /* Before we find any of the zerod points we are going to estimate how many zerod points there will be and allocate all of them at once */
03956   nZeroD_Estimate = pgback->nNode + pgsurf->nNode;
03957   PXErrorReturnCreateZeroD(TwoD, nZeroD_Estimate) );
03958 
03959 
03960   /* intersect spline with pg's nodes */
03961   PXErrorReturnPXIntersectSplineNode(pg, PrintCutGridInfoToScreen) );
03962 
03963   /* get Node and Knot Intersect Attachments */
03964   sprintf(title, "NodeIntersect");
03965   PXErrorReturnPXAttachSearchpgback, title, NULL, (void **&NodeIntersect) );
03966   sprintf(title, "KnotIntersect");

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXIntersect2DCutGrid
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/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_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXBuildCutGrid2D
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/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_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionReadCutGridInputFiles
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXCDAll.c:1324
Code
1314   PXErrorReturnPXGetKeyValueBool(pxa->Parameter, "MoveToCanonical", &MoveToCanonicalFlag) );
1315   PXErrorReturnPXGetKeyValueBool(pxa->Parameter, "CanonicalBasis", &CanonicalBasisFlag) );
1316   PXErrorReturnPXGetKeyValueBool(pxa->Parameter, "RemoveDoubleSplineFace", &RemoveDoubleSplineFace) );
1317 
1318   /*Get merging flag*/
1319   PXErrorReturnPXGetKeyValueBool(pxa->Parameter, "MergeFlag", &MergeFlag) );
1320   PXErrorReturnPXGetKeyValueReal(pxa->Parameter, "CriticalMinVR", &CriticalMinVR) );
1321 
1322   if(Dim == 2){
1323     /* we are now ready to intersect our geometry and generate quadrature rules */
1324     PXErrorReturnPXBuildCutGrid2D(pg, &TwoD, MoveToCanonicalFlag, CanonicalBasisFlag, RemoveDoubleSplineFace, FaceQuadOrder, ElemQuadOrder, TotalDegreeFlag, PrintCutGridInfoToScreen) );
1325     /* set pointer to TwoD */
1326     pg->TwoD = TwoD;
1327   }
1328   else{
1329     PXErrorReturn(PXOutputFileName(pxa->Parameter, -1, NULL, NULL, "cc3d", cutFileName));

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXReadInputFile
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXCDAll.c:1710
Code
1700 
1701   /* Copy InputFile to GridFile */
1702   strcpy(GridFile, InputFile);
1703   GridFileType = FileType;
1704 
1705   /*-------------------------*/
1706   /* Check for embedded mesh */
1707   /*-------------------------*/
1708   if ((FileType == PXE_FileType_ebg|| (FileType == PXE_FileType_eb3)) {
1709     /* get the background and surface grids */
1710     PXErrorReturnReadCutGridInputFiles(pxa, InputFile) );
1711 
1712     return PX_NO_ERROR;
1713   }
1714 
1715 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXReadGridBcFuncFiles
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXInit.c:1310
Code
1300   /*----------------*/
1301   /* Read grid file */
1302   /*----------------*/
1303 
1304   /*  Read grid on process 0 */
1305   if myRank == ) {
1306     /* Retrieve input file name */
1307     PXErrorReturnPXGetKeyValuepxa->Parameter, "InputFile", InputFile ) );
1308 
1309     /* Read in grid */
1310     PXErrorReturnPXReadInputFilepxa, InputFile) );
1311 
1312     /* Check grid validity */
1313     PXErrorReturnPXCheckGridpxa->pg ) );
1314 
1315     /* Get Restart flag */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXInitializePre
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXRunSolver.c:255
Code
0245   PXErrorReturnPXDestroyParameter&KnobFileParameter) );
0246 
0247   /* Initialize EqnSetStruct */
0248   PXErrorReturnPXInitEqnSetStructpxa->Parameter, pxa->pRegionAttribute, &(pxa->EqnSetStruct) ) );
0249 
0250   /* Initialize Equation Set Entry Point Structure */
0251   PXErrorReturnPXFillEqnSetEntryStructpxa->EqnSetStruct,
0252             pxa->EqnSetEntryStruct ) );
0253 
0254   /* Read grid, .bc file, and .func file (marked for change) */
0255   PXErrorReturnPXReadGridBcFuncFilespxa ) );
0256 
0257   /* Initialize Polynomial precalc struct */
0258   /* Only proc0 reads the Grid in PXReadGridBcFuncFiles, but
0259      pg->Dim is needed by ALL processors, so Bcast it
0260 

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:956
Code
0946     PXPrintf("Where casename is the name of the job file.\n");
0947     PXPrintf("\n");
0948     return PX_READWRITE_ERROR;
0949   }
0950 
0951 #ifdef PX_SHADOW
0952   printf("\nWARNING: You Are Running With Shadow Basis Turned On.\n\n");
0953 #endif
0954 
0955   /* Perform non-repeated initializations */
0956   PXErrorReturnPXInitializePreJobFile, &pxa ) );
0957 #ifdef PX_TIMING
0958   PXBarrier();
0959   c1=PXclock();
0960   PXPrintf("Time : (InitializePre) = %f\n",  c1 - c0 );
0961 #endif