Segmentation Fault and Lost Connection to Server in Freeciv GTK4

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
Post Reply
manouchk
Posts: 2
Joined: Sat Oct 19, 2024 9:39 pm

Segmentation Fault and Lost Connection to Server in Freeciv GTK4

Post by manouchk »

Hello Freeciv Community,

I am experiencing an issue with Freeciv GTK4. Whenever I try to end my turn, I receive the following message in the command line:

Code: Select all

Lost connection to server: serveur déconnecté.
I noticed segmentation faults in dmesg when ending my turn:

Code: Select all

[109038.014584] freeciv-server[92307]: segfault at 0 ip 00005599c9d847cd sp 00007ffdb2ad0d90 error 4 in freeciv-server[1577cd,5599c9c4c000+148000] likely on CPU 2 (core 0, socket 0)
[109145.207553] freeciv-server[92594]: segfault at 0 ip 0000560f718f67cd sp 00007ffc8cb522f0 error 4 in freeciv-server[1577cd,560f717be000+148000] likely on CPU 3 (core 1, socket 0)
I noticed a warning when starting the game:

Code: Select all

(freeciv-gtk4:91300): Gtk-WARNING **: 17:17:40.272: Trying to snapshot GtkGizmo 0x55ed0cd781e0 without a current allocation
This warning seems to be unrelated to the connection issue, but I’m including it for context.



System Info: OS: Arch Linux. Freeciv version: 3.2.1 using available package in archlinux.

The game that trigger this can be found there:
https://u.pcloud.link/publink/show?code ... JB7Rf9PbS7
cazfi
Elite
Posts: 3433
Joined: Tue Jan 29, 2013 6:54 pm

Re: Segmentation Fault and Lost Connection to Server in Freeciv GTK4

Post by cazfi »

I can reproduce with 3.2.1, but not with the latest S3_2 (freeciv-3.2 branch).

The server crash occurs in invasion_funct(), for which we've fixed several such crashes since 3.2.1 release.
cazfi
Elite
Posts: 3433
Joined: Tue Jan 29, 2013 6:54 pm

Re: Segmentation Fault and Lost Connection to Server in Freeciv GTK4

Post by cazfi »

3.2.1 + fix from RM #1741 seems to work with this savegame.
Post Reply