Hello,
I just updated and recompiled Aspect last week and I decided to rerun a model that I new
was working last fall when I last got to work on Aspect things. Unfortunately, I get a segmentation fault during the rebuilding of the preconditioner on time step 726 (see below). This is not the first time I’ve had a similar segmentation fault… the same thing happened many months ago when I had my own version of the visco-plastic module, and so I stopped using that and this model just uses what is in the main branch of Aspect. In that case, this was happening at different points in model run and did not always happen (ah yes, this is the best kind of bug!).
Can I get some advice/help to figure out the source of the segmentation fault…
I’ve attached the parameter file and the stdout/stderr file with the segfault error, and below is the snippet from the log file showing where the segmentation fault occurs.
test1.prm (12.0 KB)
test1-604-c12-7.txt (381.1 KB)
*** Timestep 726: t=2.85897e+07 years
Solving temperature system… 8 iterations.
Solving spcrust system … 6 iterations.
Solving spharz system … 6 iterations.
Solving opcrust system … 3 iterations.
Solving opharz system … 4 iterations.
Rebuilding Stokes preconditioner…
[c12-11:30781] *** Process received signal ***
[c12-11:30781] Signal: Segmentation fault (11)
[c12-11:30781] Signal code: (128)
[c12-11:30781] Failing at address: (nil)
[c12-11:30781] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f544d8cb890]
[c12-11:30781] [ 1] /share/apps/openmpi-3.1.0/gcc7/lib/openmpi/mca_btl_vader.so(+0x4780)[0x7f54356da780]
[c12-11:30781] [ 2] /share/apps/openmpi-3.1.0/gcc7/lib/libopen-pal.so.40(opal_progress+0x2c)[0x7f54475995bc]
[c12-11:30781] [ 3] /share/apps/openmpi-3.1.0/gcc7/lib/libopen-pal.so.40(ompi_sync_wait_mt+0xc5)[0x7f54475a0055]
[c12-11:30781] [ 4] /share/apps/openmpi-3.1.0/gcc7/lib/libmpi.so.40(ompi_request_default_wait+0x1e7)[0x7f544db23507]
[c12-11:30781] [ 5] /share/apps/openmpi-3.1.0/gcc7/lib/libmpi.so.40(PMPI_Wait+0x61)[0x7f544db6b231]
[c12-11:30781] [ 6] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libml.so.12(ML_Comm_CheapWait+0x36)[0x7f544a684f46]
[c12-11:30781] [ 7] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libml.so.12(ML_exchange_bdry+0x237)[0x7f544a68a0a7]
[c12-11:30781] [ 8] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libml.so.12(CSR_matvec+0x211)[0x7f544a6dcb41]
[c12-11:30781] [ 9] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libml.so.12(ML_Operator_ApplyAndResetBdryPts+0x31)[0x7f544a6c9cf1]
[c12-11:30781] [10] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libml.so.12(ML_Cycle_MG+0x41f)[0x7f544a67bc8f]
[c12-11:30781] [11] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libml.so.12(ML_Cycle_MG+0x556)[0x7f544a67bdc6]
[c12-11:30781] [12] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libml.so.12(ML_Cycle_MG+0x556)[0x7f544a67bdc6]
[c12-11:30781] [13] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libml.so.12(ZNK9ML_Epetra24MultiLevelPreconditioner12ApplyInverseERK18Epetra_MultiVectorRS1+0x822)[0x7f544a740ba2]
[c12-11:30781] [14] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libaztecoo.so.12(Epetra_Aztec_precond+0x208)[0x7f544ecb9c08]
[c12-11:30781] [15] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libaztecoo.so.12(AZ_pcg_f+0x8c4)[0x7f544ece3544]
[c12-11:30781] [16] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libaztecoo.so.12(AZ_oldsolve+0x4de)[0x7f544ed08bde]
[c12-11:30781] [17] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libaztecoo.so.12(AZ_iterate+0x147)[0x7f544ed097f7]
[c12-11:30781] [18] /share/apps/cig/dealii/v9.0.0/install/trilinos-release-12-10-1/lib/libaztecoo.so.12(_ZN7AztecOO7IterateExd+0xdc)[0x7f544ecb43ac]
[c12-11:30781] [19] /share/apps/cig/dealii/v9.0.0/install/deal.II-v9.0.0/lib/libdeal_II.g.so.9.0.0(ZN6dealii16TrilinosWrappers10SolverBase8do_solveINS0_16PreconditionBaseEEEvRKT+0xc1)[0x7f545693f6c9]
[c12-11:30781] [20] /share/apps/cig/dealii/v9.0.0/install/deal.II-v9.0.0/lib/libdeal_II.g.so.9.0.0(_ZN6dealii16TrilinosWrappers10SolverBase5solveERKNS0_12SparseMatrixERNS0_3MPI6VectorERKS6_RKNS0_16PreconditionBaseE+0x8d)[0x7f545693d1dd]
[c12-11:30781] [21] /home/billen/AspectProjects/aspect/build/aspect(ZNK6aspect8internal24BlockSchurPreconditionerIN6dealii16TrilinosWrappers15PreconditionAMGENS3_16PreconditionBaseEE5vmultERNS3_3MPI11BlockVectorERKS8+0x2b5)[0x55adcfff0711]
[c12-11:30781] [22] /home/billen/AspectProjects/aspect/build/aspect(ZN6dealii12SolverFGMRESINS_16TrilinosWrappers3MPI11BlockVectorEE5solveIN6aspect8internal11StokesBlockENS7_24BlockSchurPreconditionerINS1_15PreconditionAMGENS1_16PreconditionBaseEEEEEvRKT_RS3_RKS3_RKT0+0x5a9)[0x55adcfff1851]
[c12-11:30781] [23] /home/billen/AspectProjects/aspect/build/aspect(_ZN6aspect9SimulatorILi2EE12solve_stokesEv+0x1bb6)[0x55adcfff477c]
[c12-11:30781] [24] /home/billen/AspectProjects/aspect/build/aspect(_ZN6aspect9SimulatorILi2EE25assemble_and_solve_stokesEbPd+0x9f)[0x55adcfff8fbb]
[c12-11:30781] [25] /home/billen/AspectProjects/aspect/build/aspect(_ZN6aspect9SimulatorILi2EE36solve_single_advection_single_stokesEv+0x5c)[0x55adcfffa442]
[c12-11:30781] [26] /home/billen/AspectProjects/aspect/build/aspect(_ZN6aspect9SimulatorILi2EE14solve_timestepEv+0x168)[0x55adcfedf082]
[c12-11:30781] [27] /home/billen/AspectProjects/aspect/build/aspect(_ZN6aspect9SimulatorILi2EE3runEv+0x1019)[0x55adcff00de9]