[petsc-dev] http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2013/12/2 0/examples_master_arch-linux-c89_thrash.log

Barry Smith bsmith at mcs.anl.gov
Sat Dec 21 22:08:15 CST 2013


   Hmm, based on my limited checking the drand48 prototypes may be turned off with -std=c89 which of course means that configure should detect no drand48 in that case and turn off drand48, but since configure still does the silly “check for symbol in library” it still finds drand48() in the library and hence turns it on.

   Perhaps a custom drand48() test in configure that checks a few values and makes sure they are not all zero?

  Barry

request-assigned: Satish, nightly build crash in KSPChebyshevComputeExtremeEigenvalues_Private()

On Dec 21, 2013, at 9:17 PM, Satish Balay <balay at mcs.anl.gov> wrote:

> Hm - the issue appears to be incomatibility with drand48() and  -std=c89
> 
> I'm not sure what the correct behavior here should be.. [configure not use drand48?]
> But -std=c89 is more for testing purposes only..
> 
> Satish
> 
> -----
> 
> petsc at thrash:/sandbox/petsc/petsc.test/src/ksp/ksp/examples/tests$ cat x.c
> #include <stdlib.h>
> #include <stdio.h>
> int main()
> {
>  double x = drand48();
>  printf("%e\n",x);
> }
> petsc at thrash:/sandbox/petsc/petsc.test/src/ksp/ksp/examples/tests$ gcc x.c 
> petsc at thrash:/sandbox/petsc/petsc.test/src/ksp/ksp/examples/tests$ ./a.out 
> 3.907985e-14
> petsc at thrash:/sandbox/petsc/petsc.test/src/ksp/ksp/examples/tests$ gcc -std=c89 x.c
> petsc at thrash:/sandbox/petsc/petsc.test/src/ksp/ksp/examples/tests$ ./a.out 
> 0.000000e+00
> petsc at thrash:/sandbox/petsc/petsc.test/src/ksp/ksp/examples/tests$ 
> 
> 
> 
> On Sat, 21 Dec 2013, Barry Smith wrote:
> 
>> 
>>  Satish,
>> 
>>    This nightly build crashes in the below consistently but it is not clear why since it doesn’t seem to happen on other arches. Please try running in the debugger and see what is going on with it.
>> 
>>    Thanks
>> 
>>   Barry
>> 
>> Request-assign: Satish, nightly build crash in KSPChebyshevComputeExtremeEigenvalues_Private()
>> 
>> 
>>> [0]PETSC ERROR: --------------------- Error Message ------------------------------------
>>> [0]PETSC ERROR: Null argument, when expecting valid pointer!
>>> [0]PETSC ERROR: Null Pointer: Parameter # 3!
>>> [2]PETSC ERROR: --------------------- Error Message ------------------------------------
>>> [2]PETSC ERROR: Null argument, when expecting valid pointer!
>>> [2]PETSC ERROR: Null Pointer: Parameter # 3!
>>> [0]PETSC ERROR: ------------------------------------------------------------------------
>>> [0]PETSC ERROR: Petsc Development GIT revision: f8213c7e3bc8a06e86fe5d7cdfbcc444e7e20aeb  GIT Date: 2013-12-20 21:18:15 +0100
>>> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
>>> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
>>> [0]PETSC ERROR: See docs/index.html for manual pages.
>>> [0]PETSC ERROR: ------------------------------------------------------------------------
>>> [0]PETSC ERROR: ./ex19 on a arch-linux-c89 named thrash by petsc Fri Dec 20 15:33:43 2013
>>> [0]PETSC ERROR: Libraries linked from /sandbox/petsc/petsc.clone-2/arch-linux-c89/lib
>>> [0]PETSC ERROR: [1]PETSC ERROR: --------------------- Error Message ------------------------------------
>>> [1]PETSC ERROR: Null argument, when expecting valid pointer!
>>> [1]PETSC ERROR: Null Pointer: Parameter # 3!
>>> [1]PETSC ERROR: ------------------------------------------------------------------------
>>> [1]PETSC ERROR: Petsc Development GIT revision: f8213c7e3bc8a06e86fe5d7cdfbcc444e7e20aeb  GIT Date: 2013-12-20 21:18:15 +0100
>>> [1]PETSC ERROR: See docs/changes/index.html for recent updates.
>>> [1]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
>>> [1]PETSC ERROR: See docs/index.html for manual pages.
>>> [1]PETSC ERROR: ------------------------------------------------------------------------
>>> [1]PETSC ERROR: [2]PETSC ERROR: ------------------------------------------------------------------------
>>> [2]PETSC ERROR: Petsc Development GIT revision: f8213c7e3bc8a06e86fe5d7cdfbcc444e7e20aeb  GIT Date: 2013-12-20 21:18:15 +0100
>>> [2]PETSC ERROR: See docs/changes/index.html for recent updates.
>>> [2]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
>>> [2]PETSC ERROR: See docs/index.html for manual pages.
>>> [2]PETSC ERROR: ------------------------------------------------------------------------
>>> [2]PETSC ERROR: ./ex19 on a arch-linux-c89 named thrash by petsc Fri Dec 20 15:33:43 2013
>>> [2]PETSC ERROR: Libraries linked from /sandbox/petsc/petsc.clone-2/arch-linux-c89/lib
>>> [2]PETSC ERROR: Configure run at Fri Dec 20 15:31:22 2013
>>> Configure run at Fri Dec 20 15:31:22 2013
>>> [0]PETSC ERROR: Configure options CFLAGS="-std=c89 -pedantic -Wno-long-long -Wno-overlength-strings" --with-shared-libraries=1 --with-no-output -PETSC_ARCH=arch-linux-c89 -PETSC_DIR=/sandbox/petsc/petsc.clone-2
>>> [0]PETSC ERROR: ------------------------------------------------------------------------
>>> [0]PETSC ERROR: KSPComputeEigenvalues() line 118 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/interface/itfunc.c
>>> [0]PETSC ERROR: KSPChebyshevComputeExtremeEigenvalues_Private() line 361 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/impls/cheby/cheby.c
>>> ./ex19 on a arch-linux-c89 named thrash by petsc Fri Dec 20 15:33:43 2013
>>> [1]PETSC ERROR: Libraries linked from /sandbox/petsc/petsc.clone-2/arch-linux-c89/lib
>>> [1]PETSC ERROR: Configure run at Fri Dec 20 15:31:22 2013
>>> [1]PETSC ERROR: Configure options CFLAGS="-std=c89 -pedantic -Wno-long-long -Wno-overlength-strings" --with-shared-libraries=1 --with-no-output -PETSC_ARCH=arch-linux-c89 -PETSC_DIR=/sandbox/petsc/petsc.clone-2
>>> [1]PETSC ERROR: ------------------------------------------------------------------------
>>> [1]PETSC ERROR: [2]PETSC ERROR: Configure options CFLAGS="-std=c89 -pedantic -Wno-long-long -Wno-overlength-strings" --with-shared-libraries=1 --with-no-output -PETSC_ARCH=arch-linux-c89 -PETSC_DIR=/sandbox/petsc/petsc.clone-2
>>> [2]PETSC ERROR: ------------------------------------------------------------------------
>>> [2]PETSC ERROR: KSPComputeEigenvalues() line 118 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/interface/itfunc.c
>>> [0]PETSC ERROR: KSPSolve_Chebyshev() line 416 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/impls/cheby/cheby.c
>>> [0]PETSC ERROR: KSPSolve() line 432 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/interface/itfunc.c
>>> [0]PETSC ERROR: KSPComputeEigenvalues() line 118 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/interface/itfunc.c
>>> [1]PETSC ERROR: KSPChebyshevComputeExtremeEigenvalues_Private() line 361 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/impls/cheby/cheby.c
>>> [1]PETSC ERROR: [2]PETSC ERROR: KSPChebyshevComputeExtremeEigenvalues_Private() line 361 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/impls/cheby/cheby.c
>>> [2]PETSC ERROR: KSPSolve_Chebyshev() line 416 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/impls/cheby/cheby.c
>>> PCMGACycle_Private() line 25 in /sandbox/petsc/petsc.clone-2/src/ksp/pc/impls/mg/smg.c
>>> [0]PETSC ERROR: PCApply_MG() line 333 in /sandbox/petsc/petsc.clone-2/src/ksp/pc/impls/mg/mg.c
>>> [0]PETSC ERROR: PCApply() line 440 in /sandbox/petsc/petsc.clone-2/src/ksp/pc/interface/precon.c
>>> [0]PETSC ERROR: KSPSolve_Chebyshev() line 416 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/impls/cheby/cheby.c
>>> [1]PETSC ERROR: KSPSolve() line 432 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/interface/itfunc.c
>>> [1]PETSC ERROR: PCMGACycle_Private() line 25 in /sandbox/petsc/petsc.clone-2/src/ksp/pc/impls/mg/smg.c
>>> [2]PETSC ERROR: KSPSolve() line 432 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/interface/itfunc.c
>>> [2]PETSC ERROR: PCMGACycle_Private() line 25 in /sandbox/petsc/petsc.clone-2/src/ksp/pc/impls/mg/smg.c
>>> [2]PETSC ERROR: PCApply_MG() line 333 in /sandbox/petsc/petsc.clone-2/src/ksp/pc/impls/mg/mg.c
>>> KSP_PCApply() line 227 in /sandbox/petsc/petsc.clone-2/include/petsc-private/kspimpl.h
>>> [0]PETSC ERROR: KSPInitialResidual() line 64 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/interface/itres.c
>>> [0]PETSC ERROR: KSPSolve_GMRES() line 234 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/impls/gmres/gmres.c
>>> [0]PETSC ERROR: [1]PETSC ERROR: PCApply_MG() line 333 in /sandbox/petsc/petsc.clone-2/src/ksp/pc/impls/mg/mg.c
>>> [1]PETSC ERROR: PCApply() line 440 in /sandbox/petsc/petsc.clone-2/src/ksp/pc/interface/precon.c
>>> [1]PETSC ERROR: KSP_PCApply() line 227 in /sandbox/petsc/petsc.clone-2/include/petsc-private/kspimpl.h
>>> [2]PETSC ERROR: PCApply() line 440 in /sandbox/petsc/petsc.clone-2/src/ksp/pc/interface/precon.c
>>> [2]PETSC ERROR: KSP_PCApply() line 227 in /sandbox/petsc/petsc.clone-2/include/petsc-private/kspimpl.h
>>> [2]PETSC ERROR: KSPInitialResidual() line 64 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/interface/itres.c
>>> KSPSolve() line 432 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/interface/itfunc.c
>>> [0]PETSC ERROR: main() line 151 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/examples/tests/ex19.c
>>> [1]PETSC ERROR: KSPInitialResidual() line 64 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/interface/itres.c
>>> [1]PETSC ERROR: KSPSolve_GMRES() line 234 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/impls/gmres/gmres.c
>>> [1]PETSC ERROR: KSPSolve() line 432 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/interface/itfunc.c
>>> [2]PETSC ERROR: KSPSolve_GMRES() line 234 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/impls/gmres/gmres.c
>>> [2]PETSC ERROR: KSPSolve() line 432 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/interface/itfunc.c
>>> [2]PETSC ERROR: main() line 151 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/examples/tests/ex19.c
>>> application called MPI_Abort(MPI_COMM_WORLD, 85) - process 0
>>> [1]PETSC ERROR: main() line 151 in /sandbox/petsc/petsc.clone-2/src/ksp/ksp/examples/tests/ex19.c
>>> application called MPI_Abort(MPI_COMM_WORLD, 85) - process 1
>>> application called MPI_Abort(MPI_COMM_WORLD, 85) - process 2
>> /sandbox/petsc/petsc.clone-2/src/ksp/ksp/examples/tests
>> Possible problem with with ex19_2, diffs above
>> 
>> 




More information about the petsc-dev mailing list