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 ID0x1031
Text640 bytes in 4 blocks are still reachable in loss record 4,144 of 4,624
Auxiliary
Suppression{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:PXAllocate
   fun:PXInitOneOutput
   fun:PXReadFuncFile
   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
FunctionPXInitOneOutput
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXOutput.c:138
Code
0128 /*   OUTPUTS: pOutputData     Pointer to OutputData which is filled  */
0129 /*                                                                   */
0130 /*   RETURNS: error code                                             */
0131 /*-------------------------------------------------------------------*/
0132 
0133   /*-------------*/
0134   /* Output Name */
0135   /*-------------*/
0136 
0137   pOutputData->Name = NULL;
0138   PXErrorReturnPXAllocatePX_MAXSTRLEN, sizeof(char)(void **)&(pOutputData->Name) ) );
0139   memsetpOutputData->Name, '\0', PX_MAXSTRLEN );
0140   strncpy(pOutputData->Name, "None"4);
0141 
0142   /*-------------*/
0143   /* Output Type */

Object/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/platforms/relwithdebinfo_gnu/bin/ProjectXExec
FunctionPXReadFuncFile
File/Line/home1/jenkins/workspace/ProjectX_Weekly/PX_ARC/relwithdebinfo_gnu/buildnode/reynolds/src/PXOutput.c:1860
Code
1850 
1851     /* read key and value from line */
1852     PXErrorReturnPXReadKeyValuePairline, key, value) );
1853 
1854     /* Check for BFGroupTitle */
1855     if(strcmp(key, "Name"== 0){
1856       /* Increment outputrank */
1857       outputrank++;
1858 
1859       /* Create Output */
1860       PXErrorReturnPXInitOneOutput(&(poutput[outputrank])) );
1861 
1862       /* Copy output name to output structure */
1863       strncpy(poutput[outputrank].Name, value, PX_MAXSTRLEN);
1864 
1865       /* Set NBoundaryGroupFlag to False */

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:1358
Code
1348 
1349   /*-----------------*/
1350   /* Read .func file */
1351   /*-----------------*/
1352 
1353   /* Read output function file */
1354   PXErrorReturnPXGetKeyValuepxa->Parameter, "FuncFile", FuncFile) );
1355 
1356   /* Read in FuncFile on root processor */
1357   if ( (myRank == 0&& (PXNotNull(FuncFile) ) ) {
1358     PXErrorReturnPXReadFuncFilepxa, FuncFile) );
1359   }
1360 
1361   /* Parallelize Output structure in pxa structure */
1362   if (numProcs > 1) {
1363     PXErrorReturnPXParallelizeOutput(pxa) );

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