Project

General

Profile

Bug #714453

Crash after aiferry passenger death

Added by Martin Schröder over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
AI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

@> rpm -qi freeciv
Name : freeciv
Version : 2.5.9
Release : 8.1
Architecture: x86_64
Install Date: So 26 Nov 2017 21:01:10 CET
Group : Amusements/Games/Strategy/Turn Based
Size : 43949644
License : GPL-2.0+
Signature : DSA/SHA1, Mo 18 Sep 2017 15:10:30 CEST, Key ID 8f91b0e6c862b42c
Source RPM : freeciv-2.5.9-8.1.src.rpm
Build Date : Mo 18 Sep 2017 15:09:36 CEST
Build Host : lamb57
Relocations : (not relocatable)
Vendor : obs://build.opensuse.org/games
URL : http://www.freeciv.org
Summary : Free Civilization Clone

rpm -qi freeciv-gtk3

Name : freeciv-gtk3
Version : 2.5.9
Release : 8.1
Architecture: x86_64
Install Date: So 26 Nov 2017 21:01:08 CET
Group : Amusements/Games/Strategy/Turn Based
Size : 3596579
License : GPL-2.0+
Signature : DSA/SHA1, Mo 18 Sep 2017 15:10:31 CEST, Key ID 8f91b0e6c862b42c
Source RPM : freeciv-2.5.9-8.1.src.rpm
Build Date : Mo 18 Sep 2017 15:09:36 CEST
Build Host : lamb57
Relocations : (not relocatable)
Vendor : obs://build.opensuse.org/games

lsb_release -a

LSB Version: core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
Distributor ID: openSUSE Leap
Description: openSUSE Leap 42.3
Release: 42.3
Codename: 42.3
@

How to reproduce: Load the save game and advance to next round. The client will disconnect from the game.

History

#1 Updated by Anonymous over 2 years ago

  • Category set to AI
  • Target version set to 2.5.10

Segmentation fault in server.

Program terminated with signal SIGSEGV, Segmentation fault.
#0 aiferry_gobyboat (ait=ait@entry=0x905880 <ai_types>, pplayer=pplayer@entry=0xb86490, punit=punit@entry=0x1c372a0,
dest_tile=<optimized out>, with_bodyguard=with_bodyguard@entry=false) at aiferry.c:873
873 def_ai_unit_data(punit, ait)->done = TRUE;
(gdb) bt
#0 aiferry_gobyboat (ait=ait@entry=0x905880 <ai_types>, pplayer=pplayer@entry=0xb86490, punit=punit@entry=0x1c372a0,
dest_tile=<optimized out>, with_bodyguard=with_bodyguard@entry=false) at aiferry.c:873
#1 0x00000000004edf4a in dai_military_attack (ait=ait@entry=0x905880 <ai_types>, pplayer=pplayer@entry=0xb86490,
punit=punit@entry=0x1c372a0) at aiunit.c:1709
#2 0x00000000004eed22 in dai_manage_military (ait=ait@entry=0x905880 <ai_types>, pplayer=pplayer@entry=0xb86490,
punit=punit@entry=0x1c372a0) at aiunit.c:2348
#3 0x00000000004efe84 in dai_manage_unit (ait=ait@entry=0x905880 <ai_types>, pplayer=pplayer@entry=0xb86490,
punit=punit@entry=0x1c372a0) at aiunit.c:2546
#4 0x00000000004f16bb in dai_manage_units (ait=ait@entry=0x905880 <ai_types>, pplayer=pplayer@entry=0xb86490)
at aiunit.c:2694
#5 0x00000000004df577 in dai_do_first_activities (ait=0x905880 <ai_types>, pplayer=0xb86490) at aihand.c:733
#6 0x000000000040c7da in ai_start_phase () at srv_main.c:889
#7 begin_phase (is_new_phase=true) at srv_main.c:1051
#8 srv_running () at srv_main.c:2470
#9 srv_main () at srv_main.c:3055
#10 0x0000000000405411 in main (argc=1, argv=0x7ffe44f28228) at civserver.c:468

#2 Updated by Anonymous over 2 years ago

Another crash, might be related:
#0 tile_city (ptile=0x0) at ../../common/tile.c:83
pcity = <optimized out>
#1 0x00000000004e9cf5 in dai_manage_caravan (punit=<optimized out>,
pplayer=<optimized out>, ait=<optimized out>) at ../../../ai/default/aiunit.c:2120
parameter = {horizon = 177, discount = 3.522513013002352e-311,
consider_windfall = false, consider_trade = false, consider_wonders = false,
account_for_broken_routes = false, allow_foreign_trade = false,
ignore_transit_time = false, convert_trade = false,
callback = 0x4fc4c5 <improvement_obsolete+85>, callback_data = 0x261b}
help_wonder = 208
result = {src = 0x0, dest = 0x209ea90, arrival_time = 0, value = 0,
help_wonder = 96, required_boat = 116}
dest = 0x27993d0
#2 dai_manage_unit (ait=0x8f9580 <ai_types>, pplayer=0x3ae7460, punit=0x2799270)
at ../../../ai/default/aiunit.c:2515
bodyguard = 0x27993d0
is_ferry = 208
FUNCTION = "dai_manage_unit"
#3 0x00000000004eb4ad in dai_manage_units (ait=ait@entry=0x8f9580 <ai_types>,
pplayer=pplayer@entry=0x3ae7460) at ../../../ai/default/aiunit.c:2694
punit = 0x2799270
punit_numbers = 0x7ffea252c3c0
punit_index = <optimized out>
#4 0x00000000004d9407 in dai_do_first_activities (ait=0x8f9580 <ai_types>,
pplayer=0x3ae7460) at ../../../ai/default/aihand.c:733
No locals.
#5 0x000000000040bb1a in ai_start_phase () at ../../server/srv_main.c:889
plr = 0x3ae7460
MY_i = 3
pplayer = 0x3ae7460
#6 begin_phase (is_new_phase=true) at ../../server/srv_main.c:1051
No locals.
#7 srv_running () at ../../server/srv_main.c:2470
save_counter = 1
i = <optimized out>
is_new_turn = true
skip_mapimg = false
need_send_pending_events = false

#3 Updated by Marko Lindqvist about 2 years ago

  • Subject changed from Crash to Crash after aiferry passenger death
  • Status changed from New to In Progress

#5 Updated by Marko Lindqvist about 2 years ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

Also available in: Atom PDF