チケット #45963

Segfault when starting game with current SlowScience version

登録: 2022-10-25 07:53 最終更新: 2022-11-05 11:48

報告者:
担当者:
(未割り当て)
チケットの種類:
状況:
オープン
コンポーネント:
(未割り当て)
マイルストーン:
(未割り当て)
優先度:
5 - 中
重要度:
5 - 中
解決法:
なし
ファイル:
なし

詳細

S3_0 server segfaults when starting a game with SlowScience ruleset. It loads fine.

Reported by 3plus4i in https://forum.freeciv.org/f/viewtopic.php?p=106610#p106610

チケットの履歴 (6 件中 3 件表示)

2022-10-25 07:53 更新者: cazfi
  • 新しいチケット "Segfault when starting game with current SlowScience version" が作成されました
2022-10-25 07:58 更新者: cazfi
コメント

Seems to be some kind of infinite recursion with these three functions:

#6 0x0000555555703770 in improvement_obsolete (pplayer=pplayer@entry=0x0,

pimprove=pimprove@entry=0x555555a06a38 <improvement_types+16728>, pcity=pcity@entry=0x0)
at ../../../src/common/improvement.c:384

#7 0x00005555557c8b2a in is_building_in_range (target_player=target_player@entry=0x0,

target_city=target_city@entry=0x0, target_building=0x555555a06a38 <improvement_types+16728>,
range=REQ_RANGE_PLAYER, survives=<optimized out>, source=0x555555a06a38 <improvement_types+16728>)
at ../../../src/common/requirements.c:1373

#8 0x00005555557cb3ae in is_req_active (target_player=target_player@entry=0x0,

other_player=other_player@entry=0x0, target_city=target_city@entry=0x0,
target_building=target_building@entry=0x555555a06a38 <improvement_types+16728>,
target_tile=target_tile@entry=0x0, target_unit=target_unit@entry=0x0, target_unittype=<optimized out>,
target_output=0x0, target_specialist=0x0, target_action=0x0, req=0x555556d0cd08, prob_type=RPT_CERTAIN)
at ../../../src/common/requirements.c:2836
2022-10-25 08:05 更新者: cazfi
コメント

That's because in the buildings.ruleset Colossus is made obsolete by its own non-existence (no idea what that tries to achieve)

2022-10-25 23:59 更新者: no0815
コメント

That line was supposed to be in reqs, not obsolete_by. I made that error when I added that line to all small wonders, already suspected that I did, because I already slipped in the line several times then. Didn't expect that to be the cause of the crash, because I didn't get an error. Had to correct it on two occasions, now it loads again

2022-10-26 11:07 更新者: cazfi
コメント

Created a meta-ticket about the infinite-recursion with requirements cases we have -> #45974

2022-11-05 11:48 更新者: cazfi

添付ファイルリスト

添付ファイルはありません

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする