[mesa-users] debugging modified code

Kenny Van kvan at ualberta.ca
Wed Aug 5 13:13:17 EDT 2015


Hi, I am currently trying to modify some parts of MESA codes and the code
compiles. However the test fails during the star phase of installing MESA
with a SIGSEGV.

run_star_extras.o run_star.o  run.o -L../../make -lstar -L../../../lib
-lionization -latm -lcolors -lmlt -lnse -lnet -leos -lkap -lrates -lneu
-lchem -linterp_2d -linterp_1d -lnum -lf2crlibm -lcrlibm -lmtx -lconst
-lutils -lmesaklu -lmesalapack -lmesablas


Program received signal SIGSEGV: Segmentation fault - invalid memory
reference.

Backtrace for this error:
#0  0x7FE3A4E00777
#1  0x7FE3A4E00D7E
#2  0x7FE3A40F1D3F
#3  0x42ABCC in __star_utils_MOD_em1
#4  0x66A327 in __hydro_eqns_MOD_do1_dlnt_dm_eqn
#5  0x670ED4 in __hydro_eqns_MOD_eval_equ_for_solver._omp_fn.0 at
hydro_eqns.f90:?
#6  0x7FE3A48DA349
#7  0x7FE3A3EA5181
#8  0x7FE3A41B547C
#9  0xFFFFFFFFFFFFFFFF
./test_star: line 6: 24055 Segmentation fault      (core dumped) ./star >
log
0a1
> stop because star_age >= max_age

Judging from the error the problem is in my hydro_eqns.f90 code. Does
anyone know a way to narrow down the approximate line where the code fails?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20150805/a918682d/attachment.html>


More information about the Mesa-users mailing list