Page 1 of 1

server crash due to issue in dai_manage_airunit ()

Posted: Sun May 03, 2026 1:50 pm
by gusrestrepo
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?

Re: server crash due to issue in dai_manage_airunit ()

Posted: Sun May 03, 2026 1:52 pm
by gusrestrepo

Re: server crash due to issue in dai_manage_airunit ()

Posted: Sun May 03, 2026 4:42 pm
by cazfi

Re: server crash due to issue in dai_manage_airunit ()

Posted: Sun May 03, 2026 5:07 pm
by gusrestrepo
@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).