Hello!
I ported a map from civ2 - ww79 and I am testing it with a standalone freeciv server (v3.2.1). I always get crash after end turn (i think after turn 1 or 2) when picking Americans.
I ran the freeciv server using gdb and I get this from the terminal:
Thread 1 received signal SIGFPE, Arithmetic exception.
0x00007ff7d3c3bd77 in dai_manage_airunit ()
When typing "bt" in gdb I get this stack trace:
#0 0x00007ff7d3c3bd77 in dai_manage_airunit ()
#1 0x00007ff7d3c3ab80 in dai_manage_units ()
#2 0x00007ff7d3c14c26 in dai_do_first_activities ()
#3 0x00007ff7d3c0c707 in cai_do_first_activities ()
#4 0x00007ff7d3b0bda1 in srv_main ()
#5 0x00007ff7d3c4ddd0 in main ()
However I don't know how to debug further to get to the bottom of this issue.
Since this is a ported map I want to trace the problematic unit causing this crash so I can get rid of it. Any help I can get debugging this?
server crash due to issue in dai_manage_airunit ()
-
gusrestrepo
- Posts: 5
- Joined: Mon Sep 29, 2025 9:07 pm
-
gusrestrepo
- Posts: 5
- Joined: Mon Sep 29, 2025 9:07 pm
-
gusrestrepo
- Posts: 5
- Joined: Mon Sep 29, 2025 9:07 pm
Re: server crash due to issue in dai_manage_airunit ()
@cazfi - thank you for reporting this. I also did not know if this was a legitimate server-side issue or if I had placed some units wrong on the map, either in an invalid state or with invalid parameters that the server did not like (health, movement points, fuel, etc).