Project

General

Profile

Actions

Bug #1826

open

bad save game file results in infinite loop

Added by John Robertson 14 days ago. Updated 9 days ago.

Status:
In Review
Priority:
Normal
Category:
Server
Target version:
Start date:
12/19/2025
Due date:
% Done:

0%

Estimated time:

Description

`freeciv-server -d n -f fc.sh`

This was a typo, that resulted in the following infinite loop:

This is the server for Freeciv version 3.3.90.8-dev
You can learn a lot about Freeciv at https://www.freeciv.org/
This freeciv-server program has player authentication support, but it's currently not in use.

THIS IS A DEVELOPMENT VERSION

1: End-of-file not in line of its own
  file "./fc.sh", line 1, pos 0
  looking at: '$(which freeciv-qt) -a -p 5556'
1: Missing savefile options. Can not load the savegame.
1: in send_ruleset_game() [../../../server/ruleset/ruleload.c::9351]: assertion 'game.veteran != ((void *)0)' failed.
1: Please report this message at https://redmine.freeciv.org/projects/freeciv
3: Now accepting new client connections on port 5556.

For introductory help, type 'help'.
> 
1: in luascript_signal_emit_valist() [../../../common/scriptcore/luascript_signal.c::175]: assertion 'fcl' failed.
1: Please report this message at https://redmine.freeciv.org/projects/freeciv
> 
1: in luascript_signal_emit_valist() [../../../common/scriptcore/luascript_signal.c::175]: assertion 'fcl' failed.
1: Please report this message at https://redmine.freeciv.org/projects/freeciv
> 
1: in luascript_signal_emit_valist() [../../../common/scriptcore/luascript_signal.c::175]: assertion 'fcl' failed.
1: Please report this message at https://redmine.freeciv.org/projects/freeciv
> 
…

The last message repeats until the process is killed from outside.


Files

fc.sh (43 Bytes) fc.sh John Robertson, 12/19/2025 10:45 PM
1826.patch (759 Bytes) 1826.patch John Robertson, 12/19/2025 10:59 PM
0044-savegame-Restore-sane-state-after-failures-in-savega.patch (4.2 KB) 0044-savegame-Restore-sane-state-after-failures-in-savega.patch main, S3_3 Marko Lindqvist, 12/25/2025 09:31 AM
0024-savegame-Restore-sane-state-after-failures-in-savega.patch (4.26 KB) 0024-savegame-Restore-sane-state-after-failures-in-savega.patch S3_2 Marko Lindqvist, 12/25/2025 09:31 AM
Actions #1

Updated by John Robertson 14 days ago

Updated by Marko Lindqvist 9 days ago

Other savegame loading failures restore server to a sane state. Let's do it here also. Patches attached.

Actions

Also available in: Atom PDF