Project

General

Profile

Actions

Bug #1382

open

Loading tileset-demo.sav scenario file crashes the server

Added by Marko Lindqvist 3 days ago. Updated 2 days ago.

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

0%

Estimated time:

Description

Seen on S3_2.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6a21e3f in terrain_has_resource (pterrain=0x0, presource=0x7ffff6b01f08 <extras+25544>)
at ../../src/common/terrain.c:258
258 struct extra_type **r = pterrain->resources;
(gdb) bt
#0 0x00007ffff6a21e3f in terrain_has_resource (pterrain=0x0, presource=0x7ffff6b01f08 <extras+25544>)
at ../../src/common/terrain.c:258
#1 0x00005555556e2252 in sg_load_player_vision (loading=0x555555a689f0, plr=0x5555565e9360)
at ../../src/server/savegame/savegame3.c:7078
#2 0x00005555556d0c4b in sg_load_players (loading=0x555555a689f0)
at ../../src/server/savegame/savegame3.c:3980
#3 0x00005555556c2be6 in savegame3_load (file=0x555555a9acc0) at ../../src/server/savegame/savegame3.c:489
#4 0x00005555555ea324 in savegame_load (sfile=0x555555a9acc0) at ../../src/server/savegame/savemain.c:64
#5 0x000055555559f851 in load_command (caller=0x0,
filename=0x55555580f798 <srvarg+568> "../../src/data/scenarios/tileset-demo.sav", check=false,
cmdline_load=true) at ../../src/server/stdinhand.c:3902
#6 0x0000555555591524 in srv_prepare () at ../../src/server/srv_main.c:3110
#7 0x0000555555592ec2 in srv_main () at ../../src/server/srv_main.c:3534
#8 0x0000555555581997 in main (argc=3, argv=0x7fffffffde58) at ../../src/server/civserver.c:388


Files


Related issues 1 (1 open0 closed)

Related to Bug #1385: tileset-demo.sav content illegal (corrupted scenario)New05/11/2025

Actions
Actions #1

Updated by Marko Lindqvist 2 days ago

  • Category set to Server
  • Target version set to 3.2.0-RC1

tileset-demo.sav content is illegal -> #1385
Server crashes because of that (this ticket)

Actions #2

Updated by Marko Lindqvist 2 days ago

  • Related to Bug #1385: tileset-demo.sav content illegal (corrupted scenario) added
Actions #3

Updated by Marko Lindqvist 2 days ago

Actions

Also available in: Atom PDF