tilespec.c:6486:58: runtime error: index 6 out of bounds for type citizen_graphic 4
Likely introduced in commit 040ae83 / hrm Feature #683532. The given citizen type, which may be either a regular citizen or specialist, is used before determining which of the two it is.
This likely works correctly otherwise, since the citizen and specialist graphics are right next to each other in the struct, so reading past the end of the citizen array correctly reads from the specialist array.
tilespec.c:6486:58: runtime error: index 6 out of bounds for type 'citizen_graphic 4'
Freeciv version 3.1.91.2-dev gui-gtk-3.22
freeciv version current git, which is commit e150f546d996c607d2da5fe6ddc398d57b105a15
found with gcc 11.2.0 -fsanitize=address,undefined