Crash when splitting gas particles when stars are enabled
On COSMA7 using the Intel/2018 compiler I see a crash just after particle splitting:
8 1.220703e-06 1.0000000 0.0000000 1.525879e-07 40 43 3588 25644 17634 0 15432.063 0
[00102.7] engine_split_gas_particles: Splitting 8 particles above the mass threshold
Segmentation fault (core dumped)
it is somewhat repeatable, that is always fails on this step, but can progress past and other messages have been seen, like:
[00189.3] engine_split_gas_particles: Splitting 8 particles above the mass threshold
[00190.3] timestep.h:get_part_timestep():191: part (id=3981436947709) wants a time-step (0.000000e+00) below dt_min (1.000000e-10)
The configure line is:
./configure --enable-debug=yes --disable-mpi --with-tbbmalloc --with-parmetis --disable-optimization
and command:
../../swift --hydro --self-gravity --stars --threads=4 eagle_6.yml
Using EAGLE_6 low z volume and default yml file. Note only seen with the Intel compiler, GCC has never failed, although the undefined sanitizer does give a warning about a shift of 20 in the random number generator not being representable in an int.