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
PID26196
PPID16382
Unique ID0xef1
Text1,032 bytes in 1 blocks are still reachable in loss record 3,824 of 4,065
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXSplinePoints
   fun:PXSurfaceGrid2Splines
   fun:PXReadSurfaceMesh
   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
FunctionPXSplinePoints
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXSpline.c:1160
Code
1150 
1151     PXErrorReturnPXCornerCheck(p0,p1,p2,ca,&CornerCheckFlag) );
1152     if (CornerCheckFlag == PXE_True){
1153       ncorner++;
1154       nodeflag[k1;
1155     }
1156   // k
1157 
1158   if (SplineData->S  == NULLPXErrorReturnPXAllocateN, sizeof(PX_REAL)(void **)&(SplineData->S) ) );
1159   if (SplineData->XS == NULLPXErrorReturnPXAllocateN, sizeof(PX_REAL)(void **)&(SplineData->XS) ) );
1160   if (SplineData->YS == NULLPXErrorReturnPXAllocateN, sizeof(PX_REAL)(void **)&(SplineData->YS) ) );
1161 
1162   /* repeat nodes at corners */
1163   if (ncorner > 0){
1164 
1165     /* new list */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXSurfaceGrid2Splines
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/Grid/PXSpline.c:2509
Code
2499           printf("Consider:\n");
2500           printf(" - adding more resolution for the spline\n");
2501           printf(" - splitting the embedded bfg (if really want the corner)\n");
2502           printf(" - increasing CornerAngleThreshold (currently %.2E deg)\n", CornerAngleThreshold);
2503           printf("Proceeding assuming corner should not be there.\n");
2504         }
2505       }
2506 
2507 
2508       /* Spline nodes.  Not a cut grid so allow corners. */
2509       PXErrorReturnPXSplinePoints(SplineData, CornerAngleThreshold) );
2510 
2511     }
2512 
2513   // fgrp
2514 

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXReadSurfaceMesh
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXCDAll.c:1467
Code
1457     PXErrorReturnPXReadEb3Filepgsurf, 1, SurfaceMesh));
1458     break;
1459 
1460   default:
1461     return PXError(PX_BAD_INPUT);
1462     break;
1463   }
1464 
1465   if Dim == ) {
1466     /* turn the surface grid into splines */
1467     PXErrorReturnPXSurfaceGrid2Splines(pg, pg->pgsurf, CornerAngleThreshold, PXE_False) );
1468   }
1469 
1470 
1471   return PX_NO_ERROR;
1472 }

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:1855
Code
1845   }
1846 
1847   /*------------------------*/
1848   /* Check For Surface Mesh */
1849   /*------------------------*/
1850 
1851   /* Get surface mesh (if it exists) */
1852   ierr = PXGetKeyValue(pxa->Parameter, "SurfaceMesh", SurfaceMesh);
1853   if (ierr == PX_NO_ERROR) {
1854     if (PXNotNull(SurfaceMesh)) {
1855       PXErrorReturnPXReadSurfaceMesh(pg, SurfaceMesh) );
1856     }
1857   }
1858   else if ierr != PX_SEARCH_NOT_FOUND) {
1859     return PXError(ierr);
1860   }

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