Loading savegame from #44419 to master segfaults. (Noticed when testing #44809, but this seem unrelated)
---
3: Run post load compatibility function for version: <50 (save file: 30; server: 60).
Program received signal SIGSEGV, Segmentation fault.
0x000055555571e612 in mapstep (nmap=0x555555b97ce0 <wld>, ptile=0x0, dir=DIR8_NORTHWEST) at ../../../src/common/map.c:380
380 index_to_map_pos(&tile_x, &tile_y, tile_index(ptile));
(gdb) bt #0 0x000055555571e612 in mapstep (nmap=0x555555b97ce0 <wld>, ptile=0x0,
dir=DIR8_NORTHWEST) at ../../../src/common/map.c:380
#1 0x00005555556e6168 in upgrade_unit_order_targets (
act_unit=act_unit@entry=0x55555ade9700)
at ../../../../src/server/savegame/savecompat.c:1771
#2 0x00005555556e643a in upgrade_unit_order_targets (act_unit=0x55555ade9700)
at ../../../../src/server/savegame/savecompat.c:1734
at ../../../../src/server/savegame/savecompat.c:1812
#5 0x00005555556e96ea in sg_load_post_load_compat (
loading=loading@entry=0x55555aaac060, format_class=format_class@entry=SAVEGAME_2)
at ../../../../src/server/savegame/savecompat.c:208
#6 0x00005555556819e2 in savegame2_load (file=file@entry=0x5555565ea990)
at ../../../../src/server/savegame/savegame2.c:433
#7 0x00005555555e6252 in savegame_load (sfile=sfile@entry=0x5555565ea990)
at ../../../../src/server/savegame/savemain.c:68
#8 0x00005555555b2c2a in load_command (caller=caller@entry=0x0,
filename=filename@entry=0x555555982eb8 <srvarg+568> "./../../../saves/44419-freeciv-T0501-Y02076-auto.sav.bz2", check=check@entry=false, cmdline_load=cmdline_load@entry=true)
at ../../../src/server/stdinhand.c:3894
#9 0x00005555555a33dc in srv_prepare () at ../../../src/server/srv_main.c:3052 #10 0x00005555555a3a0b in srv_main () at ../../../src/server/srv_main.c:3466 #11 0x00005555555992fe in main (argc=<optimized out>, argv=0x7fffffffe0d8)
Loading savegame from #44419 to master segfaults. (Noticed when testing #44809, but this seem unrelated)
3: Run post load compatibility function for version: <50 (save file: 30; server: 60).
Program received signal SIGSEGV, Segmentation fault.
0x000055555571e612 in mapstep (nmap=0x555555b97ce0 <wld>, ptile=0x0, dir=DIR8_NORTHWEST) at ../../../src/common/map.c:380
380 index_to_map_pos(&tile_x, &tile_y, tile_index(ptile));
(gdb) bt
#0 0x000055555571e612 in mapstep (nmap=0x555555b97ce0 <wld>, ptile=0x0,
#1 0x00005555556e6168 in upgrade_unit_order_targets (
at ../../../../src/server/savegame/savecompat.c:1771
#2 0x00005555556e643a in upgrade_unit_order_targets (act_unit=0x55555ade9700)
#3 compat_post_load_030100 (loading=<optimized out>, format_class=<optimized out>)
#4 compat_post_load_030100 (loading=<optimized out>, format_class=<optimized out>)
#5 0x00005555556e96ea in sg_load_post_load_compat (
at ../../../../src/server/savegame/savecompat.c:208
#6 0x00005555556819e2 in savegame2_load (file=file@entry=0x5555565ea990)
#7 0x00005555555e6252 in savegame_load (sfile=sfile@entry=0x5555565ea990)
#8 0x00005555555b2c2a in load_command (caller=caller@entry=0x0,
at ../../../src/server/stdinhand.c:3894
#9 0x00005555555a33dc in srv_prepare () at ../../../src/server/srv_main.c:3052
#10 0x00005555555a3a0b in srv_main () at ../../../src/server/srv_main.c:3466
#11 0x00005555555992fe in main (argc=<optimized out>, argv=0x7fffffffe0d8)